Skip to content

Instantly share code, notes, and snippets.

@tt6746690
Created January 13, 2017 18:21
Show Gist options
  • Save tt6746690/9897f8a0019419f6d6a4e513a4b43d2b to your computer and use it in GitHub Desktop.
Save tt6746690/9897f8a0019419f6d6a4e513a4b43d2b to your computer and use it in GitHub Desktop.
# environment variables
export PATH=/usr/local/mysql/bin:$PATH
export LC_ALL=en_US.UTF-8 # not existent on OSX, required for quartus
export LANG=en_US.UTF-8 # not existent on OSX, required for quartus
export DISPLAY=:0.0
# include npm path
export NVM_DIR="/Users/markwang/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
alias github='cd /Users/markwang/github'
alias stash='cd /Users/markwang/School/2016-2017\ courses'
# add android file path
export USBPATH='/storage/self/primary/files/'
export CDF_GIT='https://markus.teach.cs.toronto.edu/git/csc207-2016-09/wangpeiq'
alias sshserver='ssh markwang@$SERVERIP'
alias mysql='mysql -u public'
alias python='python2'
alias duck='du -sh * | gsort -hr'
alias stat='stat -x'
alias cdf='ssh -Y wangpeiq@teach.cs.utoronto.ca'
# other variables
export SERVERIP=159.203.47.10
mangrep(){
USAGE="mangrep <application> <switch>"
if [[ "$#" -ne "2" ]]
then
echo "Usage: $USAGE"
else
man "$1" | gsed -n "/ *"$2", -/,+3p" # brew install gnu-sed > gsed
fi
}
syncSchool(){
# update files for upload to github
rsync -tr ~/School/2016-2017\ courses/CSC236/ /Users/markwang/github/Courses/CSC236
# rsync -tr ~/School/2016-2017\ courses/MGY311/ /Users/markwang/github/Courses/MGY311/
rsync -tr ~/School/2016-2017\ courses/MAT237/ /Users/markwang/github/Courses/MAT237
}
bds(){
# build diagnosis service
cd /Users/markwang/github/phenotips/components/diagnosis-suggestion/api
mvn clean install -Pquick
yes | cp ./target/diagnosis-suggestion-api-1.3-SNAPSHOT.jar /Users/markwang/github/phenotips/distribution/standalone/target/phenotips-standalone-1.3-SNAPSHOT/webapps/phenotips/WEB-INF/lib
cd /Users/markwang/github/phenotips/distribution/standalone/target/phenotips-standalone-1.3-SNAPSHOT
killall -9 java
bash start.sh
}
op(){
bash /Users/markwang/github/myphenotips/distribution/standalone/target/phenotips-standalone-1.3-SNAPSHOT/start.sh
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment