Skip to content

Instantly share code, notes, and snippets.

@houstondapaz
Last active February 8, 2021 16:26
Show Gist options
  • Save houstondapaz/821d803fc6970089a754e9da0b8714f1 to your computer and use it in GitHub Desktop.
Save houstondapaz/821d803fc6970089a754e9da0b8714f1 to your computer and use it in GitHub Desktop.
my bash files
alias g="git"
alias gs="git status"
alias gp="git pull"
alias gch="git checkout"
alias gpu="git push"
alias gpu-nv="git push --no-verify"
alias gc="git commit"
alias ga="git add"
alias gm="git merge"
alias gcleartags="git tag -l | xargs git tag -d && git fetch -p && git pull origin master"
alias k="kubectl"
alias copy="xclip -sel clip"
function encode() {
echo -n $1 | openssl base64
}
function decode() {
echo $1 | base64 --decode
}
function process_by_port() {
netstat -ltnp | grep $1
}
function kill_all_process() {
kill $(netstat -ltnp | awk '$7 ~ /\/node$/ {print $7}' | awk 'gsub(/\/node/,"")')
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment