Skip to content

Instantly share code, notes, and snippets.

@ibaaj
Created December 30, 2014 00:19
Show Gist options
  • Save ibaaj/9839a6d6ec06043cdb18 to your computer and use it in GitHub Desktop.
Save ibaaj/9839a6d6ec06043cdb18 to your computer and use it in GitHub Desktop.
alias
export PATH=/usr/local/bin:$PATH
alias NBContrast="convert $1 -type Grayscale -contrast $2"
alias imgdim='sips -g pixelHeight -g pixelWidth $1'
alias cx='chmod +x'
mcd() { mkdir -p "$1" && cd "$1"; }
qre() { qrencode -o /tmp/a.jpg '$1' && open "/tmp/a.jpg" && sleep 1 && rm "/tmp/a.jpg"; }
alias l='ls -al'
alias dieu='sudo su root -s /bin/zsh'
alias fuck='sudo su root -s /bin/zsh'
export iOSOpenDevPath=/opt/iOSOpenDev
export iOSOpenDevDevice=B2aj-Iphone
export PATH=/opt/iOSOpenDev/bin:$PATH
upl-imgur() {
curl -# -F image=@"$1" -F "key=1913b4ac473c692372d108209958fd15" \
http://api.imgur.com/2/upload.xml | grep -Eo "<original>(.)*</original>" \
| grep -Eo "http://i.imgur.com/[^<]*"
}
bigfiles() {du -a $1 | sort -n -r | head -n 10;}
alias ducks='du -cms * | sort -rn | head'
# cli pastebin client
alias pastebinit='pastebinit -a "gotbletu" -b "http://paste2.org" -t "git biz z livin, gotbletu was here"'
# copy/paste for linux machines (Mac style)
alias pbcopy='xclip -selection clipboard' # copy to clipboard, ctrl+c, ctrl+shift+c
alias pbpaste='xclip -selection clipboard -o' # paste from clipboard, ctrl+v, ctrl+shitt+v
alias pbselect='xclip -selection primary -o' # paste from highlight, middle click, shift+insert
alias pbdump='pbpaste | pastebinit | pbcopy' # dump text to pastebin server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment