Skip to content

Instantly share code, notes, and snippets.

View ittus's full-sized avatar

Thang Minh Vu ittus

View GitHub Profile
@ittus
ittus / kustomize.md
Created March 4, 2020 09:20
Install kustomize command on Mac OS X
cd /usr/local/bin

curl -s "https://raw.githubusercontent.com/\
kubernetes-sigs/kustomize/master/hack/install_kustomize.sh"  | bash

cd -
@ittus
ittus / cleanup.sh
Created April 19, 2019 01:28 — forked from Aidurber/cleanup.sh
A handy script to clean up a mac thanks to - Gant Laborde's article: https://medium.freecodecamp.org/how-to-free-up-space-on-your-developer-mac-f542f66ddfb
# Cleanup old node_modules
echo "Cleaning node_modules in projects older than 30 days"
find . -name "node_modules" -type d -mtime +30 | xargs rm -rf
echo "Done cleaning node_modules"
# Clean up homebrew
echo "Clean homebrew"
brew update && brew upgrade && brew cleanup
echo "Done cleaning homebrew"
@ittus
ittus / MACconfig.md
Last active April 30, 2019 14:42
.zshrc

Zsh config

alias gbr="git branch --merged | egrep -v '(^\*|master|develop|staging|QA)' | xargs git branch -d"

Git config

git config --global push.default current
@ittus
ittus / command.MD
Last active April 8, 2019 02:29
[Postgresql] Copy data to csv file without admin permission
psql -h <hostname> -U <username> -d <dbname> -c "COPY <tablename> TO stdout DELIMITER ',' CSV HEADER;" > data.csv