Skip to content

Instantly share code, notes, and snippets.

View tuannvm's full-sized avatar
🇺🇲

Tommy Nguyen tuannvm

🇺🇲
View GitHub Profile
@tuannvm
tuannvm / Storage.md
Last active March 26, 2019 01:58
#gcp #cheatsheet

GCP

VPCs

  • Can share accross projects
  • 5 networks per project
  • 7000 instances per network
  • Mode
    • Auto mode
  • Single subnet per region by default
@tuannvm
tuannvm / convert
Created November 17, 2018 03:07
#blog #backup
It's fairly simple indeed.
Installation:
On Ubuntu:
apt-get install units
On Mac OSX:
brew install gnu-units
Example:
1024 bytes to MB
@tuannvm
tuannvm / Makefile
Last active January 10, 2024 14:38 — forked from isaacs/Makefile
#makefile #cheatsheet
# Hello, and welcome to makefile basics.
#
# You will learn why `make` is so great, and why, despite its "weird" syntax,
# it is actually a highly expressive, efficient, and powerful way to build
# programs.
#
# Once you're done here, go to
# http://www.gnu.org/software/make/manual/make.html
# to learn SOOOO much more.
@tuannvm
tuannvm / fluentd.md
Last active November 2, 2017 05:40
#fluentd #loggly #cheatsheet

Buffer plugin:

All buffered output plugins support the following parameters:

<match pattern>
  # omit the part about @type and other output parameters

  buffer_type memory
  buffer_chunk_limit 256m
 buffer_queue_limit 128
@tuannvm
tuannvm / 0.12.tf
Last active February 23, 2026 10:59
#terraform #hashicorp #cheatsheet #0.12
#### first class expresssion
variable "ami" {}
resource "aws_instance" "example" {
ami = var.ami
}
#### list & map
resource "aws_instance" "example" {
vpc_security_group_ids = var.security_group_id != "" ? [var.security_group_id] : []
}
@tuannvm
tuannvm / kubernetes.md
Last active July 27, 2017 22:57
#issue
  • Fail to remount ebs volume after pods re-scheduling link
@tuannvm
tuannvm / math.md
Created July 26, 2017 06:18
#math #cheatsheet
Phép cộng: Addition 
Phép trừ: Subtraction 
Phép nhân: Multiplication 
Nhân: Multiply 
Phép chia: Division 
Chia: Divide 
Lũy thừa: Exponent, Power
Phần trăm: Percent 
Căn bậc 2: Square root 
@tuannvm
tuannvm / postgres.md
Last active January 13, 2025 11:38
#postgres #cheatsheet