Skip to content

Instantly share code, notes, and snippets.

@netpoetica netpoetica/.alias
Last active Oct 2, 2019

Embed
What would you like to do?
Terminal aliases
alias g="git"
alias cleanup="find . -type f -name '*.DS_Store' -ls -delete"
alias tree="ls -alR"
alias psef= "ps -ef | grep $1"
alias printports="lsof | grep TCP "
alias devtoolscss="cd ~/Library/Application\ Support/Google/Chrome/Default/User\ StyleSheets/"
alias python3='nocorrect python3'
alias pip3='pip-3.3'
alias cltdr="ls -R | grep \":$\" | sed -e 's/:$//' -e 's/[^-][^\/]*\//--/g' -e 's/^/ /' -e 's/-/|/'"
alias qserve='python -m SimpleHTTPServer'
alias symbolicateapp='/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/PrivateFrameworks/DTDeviceKitBase.framework/Versions/A/Resources/symbolicatecrash'
alias phpstart="launchctl load -w ~/Library/LaunchAgents/homebrew-php.josegonzalez.php54.plist"
alias phpstop="launchctl unload -w ~/Library/LaunchAgents/homebrew-php.josegonzalez.php54.plist"
# alias lsn='ls -l | awk \'{k=0;for(i=0;i<=8;i++)k+=((substr($1,i+2,1)~/[rwx]/) \*2^(8-i));if(k)printf("%0o ",k);print}\''
alias nxdir="cd /usr/local/etc/nginx"
alias nxhosts="sudo vim /private/etc/hosts"
alias pjdir="cd /usr/local/var/www/"
alias xoriginchrome="open -a Google\ Chrome --args --disable-web-security"
# ie "prettyjson curl google.com/api/endpoint"
prettyJson() {
"$@" | python -mjson.tool
}
# curl headers only
headers() {
curl -I "$@"
}
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.