Skip to content

Instantly share code, notes, and snippets.

@veggiemonk veggiemonk/.zsh_alias
Last active Aug 22, 2019

Embed
What would you like to do?
Shell alias
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"
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
You can’t perform that action at this time.