Skip to content
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
Cannot retrieve contributors at this time
export GRAILS_HOME=/Users/nolan/Downloads/grails-2.2.1/
export ANDROID_HOME=/Users/nolan/Downloads/android-sdk/sdk
export PATH=/Users/nolan/.npm-packages/bin:/usr/local/Cellar/curl/7.40.0/bin:/usr/local/opt/coreutils/libexec/gnubin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$GRAILS_HOME/bin:/usr/texbin
export PATH=$PATH:/Applications/
export PATH=$PATH:/Applications/
export PATH=$PATH:/Users/nolan/workspace/adb-sync
export MANPATH="/usr/local/opt/coreutils/libexec/gnuman:$MANPATH"
export EDITOR=`which vi`
alias mou='open -a /Applications/'
alias vlc='open -a /Applications/'
alias audacity='open -a /Applications/Audacity/'
# Making sure I don't shoot myself in the foot
alias rm="rm -i"
alias cp="cp -i"
alias mv="mv -i"
# git coloration and nice command prompt
function __parse_git_branch {
sed 's/ref: refs\/heads\///' 2>/dev/null <.git/HEAD | sed 's/.*/& /'
function __git_is_dirty {
if [ "$(git status --porcelain 2>/dev/null)" != "" ]; then echo '* '; fi
__kirbies=("<('o'<)" "(>'o')>" "v('.')v" "<('.')>" "<('.'<)" "^('.')^" "(>‘.’)>" "v(‘.’)v" "<('.')>")
function __kirby_dance {
echo ${__kirbies[$RANDOM % 9]}
export PS1="${txtgray}\W${txtend} ${txtblue}\$(__parse_git_branch)\$(__git_is_dirty)${txtend}${txtpink}\$(__kirby_dance)${txtend} ${txtgray}\$${txtend} "
# bash completion
source ~/git-completion.bash
# android devices
export NEXUS_ONE='HT017P803425'
export HTC_MAGIC='HT95BLV01000'
export GALAXY_NEXUS='014E058C1901F011'
export NOOK='3023830023863056'
export NEXUS5='04ac260f252751a3'
# To make sure the history's brain isn't to small, you should increase its size. The following lines need to be added to your ~/.bashrc file.
# It increases the history to the last 10.000 commands, erases previous duplicates and makes sure that the commands are
# appended (and do no override) on shell exit:
export HISTSIZE=10000
export HISTCONTROL=erasedups
shopt -s histappend
alias couch-start='launchctl load -w /usr/local/Cellar/couchdb/1.6.1_7/homebrew.mxcl.couchdb.plist'
alias couch-stop='launchctl unload /usr/local/Cellar/couchdb/1.6.1_7/homebrew.mxcl.couchdb.plist'
alias couch-log='tail -100f /usr/local/var/log/couchdb/couch.log'
alias gimp='open -a /Applications/'
alias mate='open -a /Applications/'
alias apktool='/Users/nolan/Downloads/apktool-install-macosx-r05-ibot/apktool'
alias alh='/Users/nolan/Downloads/android-localization-helper/bin/'
alias firefox='open -a /Applications/'
alias squash='git branch -D tmp; oldbranch=`parse_git_branch | sed "'"s/[()]//g"'"`; git checkout -b tmp; git checkout $oldbranch; git reset --hard origin/master; git merge --squash tmp'
alias copy-head='git rev-parse HEAD | pbcopy'
source ~/gradle-tab-completion.bash
source ~/.acurl
alias lolcat="logcat-color"
alias jcurl="curl -g -H 'Content-Type:application/json'"
# python virtualenv stuff
source "/usr/local/bin/"
export WORKON_HOME="/opt/virtual_env/"
function mingz () { curl -sL"$1"|uglifyjs -mc 2>/dev/null|gzip -c|wc -c;}
function webmify() { ffmpeg -i "$1" -c:v libvpx -r 60 -crf 10 -b:v 1M -c:a libvorbis -an $(echo $1 | sed 's/\(.*\)\..*/\1.webm/') ;}
function mp4ify() { ffmpeg -i "$1" -r 60 -crf 10 -b:v 1M -an $(echo $1 | sed 's/\(.*\)\..*/\1.mp4/') ;}
function gifify() { ffmpeg -i "$1" "${1}_frame%04d.png" && gifski -o $(echo $1 | sed 's/\(.*\)\..*/\1.gif/') $(echo "${1}_frame*.png") && rm -f $(echo "${1}_frame*.png") ;}
function mp4ifyWithSound() { ffmpeg -i "$1" -r 60 -crf 10 -b:v 1M $(echo $1 | sed 's/\(.*\)\..*/\1.mp4/') ;}
function gif2webm() { ffmpeg -i "$1" -c:v libvpx -crf 12 -b:v 500K $(echo $1 | sed 's/\(.*\)\..*/\1.webm/') ;}
function mp4Downsample2X() { ffmpeg -i "$1" -vf scale=iw*.5:ih*.5 $(echo $1 | sed 's/\(.*\)\..*/\1_half_size.mp4/') ;}
function mp4Downsample4X() { ffmpeg -i "$1" -vf scale=iw*.25:ih*.25 $(echo $1 | sed 's/\(.*\)\..*/\1_quarter_size.mp4/') ;}
function mp4ifymp3() { ffmpeg -i "$1" -filter_complex "[0:a]showwaves=s=320x180:mode=line,format=yuv420p[v]" -map "[v]" -map 0:a -c:v libx264 -c:a aac -crf 30 $(echo $1 | sed 's/\(.*\)\..*/\1.mp4/') ;}
export NVM_DIR="/Users/nolan/.nvm"
[ -s "$NVM_DIR/" ] && . "$NVM_DIR/" # This loads nvm
export STUDIO_JDK=/Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk
alias ios-log="tail -f ~/Library/Logs/CoreSimulator/*/system.log"
alias ios-clear="xcrun simctl erase all"
function copyScreenshot() { bash -c "cp ~/Dropbox/Screenshots/$(ls ~/Dropbox/Screenshots/ | grep png$ | sort -r | head -n 1 | sed 's/ /\\ /g') $1" ;}
alias nom="rm -fr node_modules/ && npm cache clean && npm install"
alias tessel=t2
alias travis-restart=/Users/nolan/workspace/travis-restart-failed-jobs/
eval "$(rbenv init -)"
alias start-postgres="pg_ctl -D /usr/local/var/postgres start"
alias start-redis="redis-server /usr/local/etc/redis.conf"
alias pb='pretty-bytes'