Skip to content

Instantly share code, notes, and snippets.

View duyhenryer's full-sized avatar
🥦
Củ Cải Trắng

Duy nè duyhenryer

🥦
Củ Cải Trắng
View GitHub Profile

Máy ảo:

  • Hiểu nhanh là như 1 con VM server chạy trên GCP đó. Còn hiểu sâu hơn là nó có nguyên 1 cái tủ Rack, chứa 100CPU/1000RAM/1000Gi Disk
image
  • Rôi có 1 phần mêm chuyên dụng cài lên để quản lí đống Rack này.

  • Xong h như em vào công ty họ. họ bảo cấp cho 1 máy ảo, thì từ phần mềm kia, họ lên bấm tạo 1 con VM máy ảo như trên GCP gồm có RAM/CPU/DISK chạy ISO nào như Ubuntu, ... là xong 1 máy ảo

\documentclass[11pt, a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{geometry}
\usepackage{hyperref}
\usepackage{enumitem}
\usepackage{titlesec}
\usepackage{parskip}
\usepackage{setspace}
\usepackage{textcomp}

bootc

image
Transactional, in-place operating system updates using OCI/Docker container images.

What is a Bootable Container?

import re, sys, os
import logging
from time import sleep
import datetime
import boto3
from dateutil.relativedelta import relativedelta
# from googleapiclient import discovery
# from oauth2client.client import GoogleCredentials
from pprint import pprint
@duyhenryer
duyhenryer / haproxy.sh
Created February 12, 2025 06:54 — forked from trungv0/haproxy.sh
RabbitMQ cluster with HAProxy & Keepalived for high availability
# install haproxy
yum install -y haproxy
# config haproxy for rabbitmq
cat > /etc/haproxy/haproxy.cfg << "EOF"
global
log 127.0.0.1 local0 notice
maxconn 10000
user haproxy
@duyhenryer
duyhenryer / bash_strict_mode.md
Created November 28, 2024 10:22 — forked from mohanpedala/bash_strict_mode.md
set -e, -u, -o, -x pipefail explanation
@duyhenryer
duyhenryer / iptables.md
Created June 18, 2024 08:58 — forked from DominicBreuker/iptables.md
iptables firewall

iptables cheat sheet

Concepts

iptables defines tables, which group features:

  • filter: use it to filter traffic
  • nat: use it to implement NAT
  • raw: use it to define which connections iptables should track (stateful firewall)
  • mangle: use it to change some fields in packets (e.g., TTL)
  • security: use it to define access control
@duyhenryer
duyhenryer / KongJwt.md
Created December 7, 2021 09:10 — forked from martinheld/KongJwt.md
Short example to use JWT with Kong

JWT Kong Example

  • Get and Start Kong and Co
git clone [email protected]:Mashape/docker-kong.git
cd docker-kong/compose
docker-compose up
  • Create Kong API Route
@duyhenryer
duyhenryer / config
Created November 26, 2021 10:01 — forked from justinpawela/config
AWS CodeCommit Multiple Account Config
# This file is: ~/.ssh/config
# You may have other (non-CodeCommit) SSH credentials stored in this
# config file – in addition to the CodeCommit settings shown below.
# NOTE: Make sure to run [ chmod 600 ~/.ssh/config ] after creating this file!
# Credentials for Account1
Host awscc-account1 # 'awscc-account1' is a name you pick
Hostname git-codecommit.us-east-1.amazonaws.com # This points to CodeCommit in the 'US East' region