Skip to content

Instantly share code, notes, and snippets.

@ibaaj ibaaj/.bash_profile
Created Dec 30, 2014

What would you like to do?
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" \ | grep -Eo "<original>(.)*</original>" \
| grep -Eo "[^<]*"
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 "" -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
You can’t perform that action at this time.