Last active
August 22, 2019 13:57
-
-
Save veggiemonk/97d69972d8154df2a0b80d8b6d29ddab to your computer and use it in GitHub Desktop.
Shell alias
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 ez="vim ~/.zshrc && source ~/.zshrc" | |
alias c="clear" | |
alias path='echo -e ${PATH//:/\\n}' | |
alias dpsa="docker ps -a" | |
alias dcup="docker-compose up" | |
alias dcupd="docker-compose up -d" | |
alias dcdn="docker-compose down" | |
alias dclf="docker-compose logs -f" | |
alias server="python3 -m http.server" | |
alias gclean="git branch --merged | xargs git branch -d " | |
alias mb="docker run -it --rm -v "$PWD":/usr/src/mymaven -v "$HOME/.m2":/root/.m2 -w /usr/src/mymaven maven mvn clean package" | |
alias today="date -u +\"%Y.%m.%d\"" | |
alias sha="git rev-parse --short HEAD" | |
alias release="git tag -a $(date -u +\"%Y.%m.%d\")-$(git rev-parse --short HEAD) -m" |
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 watchcurl() { | |
while true; | |
do curl -s -o /dev/null -w "%{http_code}" @1; | |
echo ''; | |
sleep 1; | |
done; | |
} | |
function gcloud_get_roles_sa() { | |
project="$1" | |
sa="$2" | |
gcloud projects get-iam-policy $project \ | |
--flatten="bindings[].members" \ | |
--format='table(bindings.role)' \ | |
--filter="bindings.members:$sa" | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment