AWS CLI for EC2
Examples Example 1: List All instances from Default Region aws ec2 describe-instances Example 2: List All instances with query With all informations aws ec2 describe-instances \ --region ...
Examples Example 1: List All instances from Default Region aws ec2 describe-instances Example 2: List All instances with query With all informations aws ec2 describe-instances \ --region ...
Prepare Dockerfile, image, container and IP address Dockerfile FROM ubuntu:22.10 RUN apt update && apt install -y openssh-server nano RUN mkdir /var/run/sshd # Aa@123456 is root pa...
NodeJS Checking memory usage const makeReadable = (value: number): string => `${Math.round((value / 1024 / 1024) * 100) / 100} MB`; export const memoryUsage = (): string => { const use...
Linux Install or update the AWS CLI *Linux x86 (64-bit): curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" unzip awscliv2.zip sudo ./aws/install *Linux ARM cur...
Debian/Ubuntu Useful Commands Check OS version cat /etc/os-release Search text from terminal grep -rnwi '/path/file.js' -e 'keyword_not_case_sensitive' Show some logs, contents from line X t...
Tips Everyday Git in twenty commands or so git help everyday Show helpful guides that come with Git git help -g Search change by content git log -S'<a term in the source>' Show chan...
Example // main.ts import { NestFactory } from '@nestjs/core'; import { AppModule } from './app.module'; import { bootstrapLogger } from './bootstrap-logger'; ... const app = await NestFactory....
Cơ bản 1. Closure là gì? Closure là một dạng function nằm trong một function khác. Function bên trong có quyền truy cập vào scope (phạm vi) và các tham số của function bên ngoài ngay cả khi funct...
Install Debian/Ubuntu For Ubuntu sudo add-apt-repository ppa:git-core/ppa sudo apt update sudo apt install git Alpine sudo apk add git References Download for Linux and Unix
POST method async function postData(url = '', data = {}) { // Default options are marked with * const response = await fetch(url, { method: 'POST', // *GET, POST, PUT, DELETE, etc. mod...