Last active
February 8, 2021 16:26
-
-
Save houstondapaz/821d803fc6970089a754e9da0b8714f1 to your computer and use it in GitHub Desktop.
my bash files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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