Skip to content

Instantly share code, notes, and snippets.

@sgargan
Created May 23, 2017 10:30
Show Gist options
  • Save sgargan/fd4b741e587a29642ff7bb40ede642df to your computer and use it in GitHub Desktop.
Save sgargan/fd4b741e587a29642ff7bb40ede642df to your computer and use it in GitHub Desktop.
Aliases
alias a='ack '
alias ae='a --ignore-dir=./log --ignore-dir=./assets --ignore-dir=out --ignore-dir=db --ignore-dir=bower_components --ignore-dir=node_modules --ignore-dir=dist --ignore-dir=tmp '
alias ae='a --ignore-dir=log --ignore-dir=assets --ignore-dir=out --ignore-dir=db --ignore-dir=bower_components --ignore-dir=node_modules --ignore-dir=dist --ignore-dir=tmp '
alias ai='a --ignore-dir=log --ignore-dir=out '
alias akey='ssh-add /Users/sgargan/devroot/projects/devops/ansible/keys/ansible'
alias ala='history | grep "alias .*=.*"| tail -1 | cut -c 8- >> ~/.omz/custom/aliases.zsh;sort ~/.omz/custom/aliases.zsh | uniq | sort -o ~/.omz/custom/aliases.zsh'
alias amend='git commit --amend'
alias anp="ansible-playbook"
alias ap='ack --passthru '
alias ap='ack-grep --passthru'
alias av=ansible-vault
alias ax='atool -x'
alias bb="sed -i '' 's/pry-remote/pry-byebug/g' Gemfile"
alias bb='sed -i '\'\'' '\''s/pry-remote/pry-byebug/g'\'' Gemfile; spring stop'
alias bd='git reset Gemfile*; gco Gemfile*'
alias cdns='sudo killall -HUP mDNSResponder'
alias ce='rm -rf ./tmp ./dist'
alias consul_server='/usr/local/bin/consul agent -data-dir ~/consul -dc z4 &'
alias consul_server='/usr/local/bin/consul agent -data-dir ~/consul -dc z4'
alias consul_server='/usr/local/bin/consul agent -data-dir ~/consul'
alias csvn='rm -rf `find . -type d -name .svn`'
alias cw='watchman watch-del /Users/sgargan/src/embercom ; watchman watch-project /Users/sgargan/src/embercom'
alias d='docker '
alias d=docker
alias dc='docker-compose'
alias df='df -kTh'
alias dm=docker-machine
alias dme='eval $(docker-machine env)'
alias du='du -kh'
alias e='chmod +x '
alias e=exit
alias ea='atom ~/.oh-my-zsh/custom/aliases.zsh'
alias ep='atom ~/.omz/custom/a-paths.zsh'
alias f='find . |grep -v svn |grep '
alias f='find `pwd` . | grep -v svn | grep '
alias findjar='find . -type f -name *.jar |xargs -n1 -i -t jar tvf {} |grep '
alias fix='gma;gfh;gr2'
alias fuember='rm -rf node_modules/ && npm install'
alias gbl='gb -l'
alias gcm="gc -m "
alias gcmn='git commit -n -m '
alias gcom='git co master'
alias gd='git diff '
alias gda='gdel | xargs git rm -f --ignore-unmatch'
alias gdc='git diff --cached'
alias gdel='gs | grep deleted | awk "{print \$2}"'
alias gdh="git diff HEAD~1 "
alias gfh='git commit --fixup HEAD'
alias gma='gmod |xargs git add '
alias gmc='gmod; git commit '
alias gmn='gmod && gnew'
alias gmn='gs | grep -E "(modified:|new\sfile:)" | awk "{print \$2}" '
alias gmod='gs | grep -E "(modified|renamed)" | awk "{print \$2}" '
alias gmod='gs | grep modified | awk "{print \$2}" '
alias gmr='gmod |xargs git reset HEAD '
alias gmt='git mergetool'
alias gnew='gs | grep -E "new\sfile:" | awk "{print \$3}"'
alias gp='git push -u'
alias gpf='git push -f'
alias gpor='git status --porcelain | a2 '
alias gpr='git pull --rebase'
alias gr2='git r2'
alias gr=gradle
alias grc='git rebase --continue'
alias grh1='git reset HEAD~1'
alias grm='gcom; git pull; gco -; git rebase master'
alias gs='git status '
alias gs=gst
alias gsk='git stash -k'
alias gsp='git stash pop'
alias gstd='git stash drop stash@{0}'
alias gsts='git stash show stash@{0}'
alias gzap='git branch --merged | grep -v "\*" | grep -v master | grep -v dev | xargs -n 1 git branch -d '
alias hg='history | grep '
alias i=i2cssh
alias jp='python -m json.tool'
alias kr='ps -ea | grep ruby | a1 | xk'
alias mbd='mvn clean install -Pcuke'
alias mc='mvn clean -s ../etc/build/maven-settings-z4.xml'
alias mci='mvn clean install'
alias mcist='mvn clean install -Dmaven.test.skip=true'
alias mcob='mvn cobertura:cobertura'
alias mcs='mvn checkstyle:checkstyle -s /devroot/repositories/easycare/trunk/exchange/etc/resmed-settings.xml'
alias md='mkdir -p'
alias mdt='mvn dependency:tree'
alias me='mvn eclipse:eclipse -DdownloadSources=true'
alias mep='mvn help:effective-pom'
alias mes='mvn help:effective-settings'
alias mi='mvn clean install'
alias mkdir='mkdir -p'
alias ml='atom ~/src/Microlessons'
alias mvu='mvn versions:display-dependency-updates'
alias npmi='npm install --save '
alias nsl='nslookup'
alias p='python '
alias path='echo -e ${PATH//:/\\n}'
alias pci='gsr && b integrate -e test '
alias pdev='ssh -l ansible -L 5432:172.31.2.22:5432 -N game-server1.dev.hd.io'
alias pg='ps -deaf |grep '
alias ports='sudo lsof -nP -iTCP -sTCP:LISTEN'
alias pt='sudo netstat -atnp tcp | grep -i "listen"'
alias pu='sudo netstat -atnp udp'
alias rtm='gcom; git pull; gco -; git rebase master'
alias rtm='gcom; git up; gco - ; git rebase master'
alias s='sudo salt '
alias sl='less /var/log/syslog'
alias ss="svn st"
alias ss='spring stop'
alias start-nginx='sudo launchctl load /Library/LaunchDaemons/homebrew.mxcl.nginx.plist'
alias stop-nginx='sudo launchctl unload /Library/LaunchDaemons/homebrew.mxcl.nginx.plist'
alias t='tar xvfz '
alias td='jps |grep Bootstrap| awk "{print \$1}" | xargs kill -3'
alias tj='tar -xvjpf'
alias tlr='ssh [email protected] -p2222'
alias tz='tar -xvzpf'
alias urldecode='python -c "import sys, urllib as ul; \\n print ul.unquote_plus(sys.argv[1])"'
alias urldecode='python -c "import sys, urllib as ul;print ul.unquote_plus(sys.argv[1])"'
alias v="vagrant"
alias v='/usr/local/Cellar/vim/8.0.0495/bin/vim'
alias vkey='f .vagrant | grep private_key | xargs ssh-add'
alias wip='gma; gcm "wip!"'
alias xk='xargs kill -9'
alias xrm='xargs -n1 rm -rf'
alias z='ansible -i $AWS/aws.py -u ansible -s '
alias zkey="ssh-add ~/.ssh/z4_rsa"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment