Skip to content

Instantly share code, notes, and snippets.

View tuannvm's full-sized avatar
🇺🇲

Tommy Nguyen tuannvm

🇺🇲
View GitHub Profile
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
creationTimestamp: null
name: test
spec:
replicas: 1
template:
metadata:
creationTimestamp: null
@tuannvm
tuannvm / python-cheatsheet.md
Last active September 11, 2022 00:05
python cheatsheet! #cheatsheet

Introduction

Set

a = {1, 2, 3}

a.add(1)

{1,2,3}

@tuannvm
tuannvm / Aircrack Commands
Created May 19, 2017 15:16 — forked from victorreyesh/Aircrack Commands
Cracking WPA2 / WEP Wifi / Aircrack 10 seconds guide. For Mac OSX
//Install Macports.
//Install aircrack-ng:
sudo port install aircrack-ng
//Install the latest Xcode, with the Command Line Tools.
//Create the following symlink:
sudo ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/sbin/airport
//Figure out which channel you need to sniff:
sudo airport -s
sudo airport en1 sniff [CHANNEL]

Keybase proof

I hereby claim:

  • I am tuannvm on github.
  • I am tuannvm (https://keybase.io/tuannvm) on keybase.
  • I have a public key ASAFktknf9szUf6ULrUjJu1Kw0ZFyddWdflICbesVM3Fpgo

To claim this, I am signing this object:

@tuannvm
tuannvm / aws-cheatsheet.md
Last active November 6, 2017 02:34
#AWS #cheatsheet

CLI

  • aws-cli cheatsheet @so0k link

  • find all instances on specific regions

aws ec2 describe-instances --region us-east-1 \
--query 'Reservations[].Instances[].[InstanceId,InstanceType,State.Name,PublicIpAddress,Placement.AvailabilityZone]'

ECR

@tuannvm
tuannvm / introduction.md
Last active July 18, 2017 09:20
#ruby #cheatsheet

Introduction

Best practice link

puts "abc"

irb(main):001:0> 1.class
=> Fixnum
@tuannvm
tuannvm / postgres.md
Last active January 13, 2025 11:38
#postgres #cheatsheet