Skip to content

Instantly share code, notes, and snippets.

@qihongl
Created December 5, 2019 04:01
Show Gist options
  • Select an option

  • Save qihongl/9030d5db00c87e7f24c3423fcd23abc9 to your computer and use it in GitHub Desktop.

Select an option

Save qihongl/9030d5db00c87e7f24c3423fcd23abc9 to your computer and use it in GitHub Desktop.

Revisions

  1. qihongl created this gist Dec 5, 2019.
    91 changes: 91 additions & 0 deletions bp
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,91 @@
    # general shortcuts
    alias ls='ls -GFh'
    alias l='ls -ltr'
    alias f='open -a Finder ./'
    alias cppath='pwd|pbcopy'
    alias cdgit='cd /Users/Qihong/Dropbox/github'
    alias cdnorman='cd /Volumes/norman/qlu'

    # customize the terminal
    export PS1="\[\033[36m\]\u\[\033[m\]@:\[\033[33;1m\]\W\[\033[m\]\$ "
    export CLICOLOR=1
    export LSCOLORS=ExFxBxDxCxegedabagacad

    # lens
    alias lens="/Applications/LensOSX.app/Contents/MacOS/LensOSX"

    # tensorflow with virtual env
    # alias virtualenv_tf='source /Users/Qihong/Dropbox/software/tensorflow/bin/activate'
    alias virtualenv_tf_p2='source /Users/Qihong/Dropbox/software/virtualenv_tf_p2/bin/activate'
    # conda
    alias pytorch='source activate pytorch'
    alias brainiak='source activate brainiak'
    alias pnl='source activate pnl'
    alias pnldevel='source activate pnldevel'

    # docker img
    alias mind_docker='docker start MIND && docker attach MIND'

    # other shortcut
    alias jn='jupyter notebook'
    alias jl='jupyter lab'

    alias pip-ua='pip list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip install -U'

    # ssh
    alias tigergpu='ssh qlu@tigergpu'
    alias tigercpu='ssh qlu@tigercpu'
    alias adroit='ssh qlu@adroit'
    alias scotty='ssh qlu@scotty'
    alias spock='ssh qlu@spock'
    alias della='ssh qlu@della'


    # Setting PATH for Python 3.6
    # The original version is saved in .bash_profile.pysave
    PATH="/Library/Frameworks/Python.framework/Versions/3.6/bin:${PATH}"
    export PATH

    # added by Anaconda3 4.4.0 installer
    export PATH="/Users/Qihong/anaconda/bin:$PATH"

    # python
    # alias python3="/Library/Frameworks/Python.framework/Versions/3.6/bin/python3"
    # alias python="/Users/Qihong/Dropbox/software/tensorflow/bin/python2.7"

    # free surfer
    # export FREESURFER_HOME=/Applications/freesurfer
    # source $FREESURFER_HOME/SetUpFreeSurfer.sh

    # brainiak
    export CC=/usr/local/opt/llvm/bin/clang
    export CXX=/usr/local/opt/llvm/bin/clang++
    export LDFLAGS="-L/usr/local/opt/llvm/lib -Wl,-rpath,/usr/local/opt/llvm/lib $LDFLAGS"
    export CPPFLAGS="-I/usr/local/opt/llvm/include $CPPFLAGS"

    # FSL Setup
    # FSLDIR=/usr/local/fsl
    # PATH=${FSLDIR}/bin:${PATH}
    # export FSLDIR PATH
    # . ${FSLDIR}/etc/fslconf/fsl.sh


    ##
    # Your previous /Users/Qihong/.bash_profile file was backed up as /Users/Qihong/.bash_profile.macports-saved_2018-03-02_at_11:16:45
    ##

    # MacPorts Installer addition on 2018-03-02_at_11:16:45: adding an appropriate PATH variable for use with MacPorts.
    export PATH="/opt/local/bin:/opt/local/sbin:$PATH"
    # Finished adapting your PATH environment variable for use with MacPorts.


    # go
    #export GOPATH=/Users/Qihong/Dropbox/github/go
    #alias gopy='/Users/Qihong/go/bin/gopy'
    #alias goimports='/Users/Qihong/go/bin/goimports'


    ############## run the following ###############3
    source activate pytorch
    cdgit