Skip to content

Instantly share code, notes, and snippets.

# in ~/bin/gitprompt.csh:
setenv GIT_BRANCH_CMD "sh -c 'git branch --no-color 2> /dev/null' | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1) /'"
set prompt="%m:%~ `$GIT_BRANCH_CMD`\n%B%#%b "
# and then in ~/.cshrc:
alias precmd "source ~/bin/gitprompt.csh"
@damar-wicaksono
damar-wicaksono / 0_reuse_code.js
Created May 21, 2014 12:59
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@damar-wicaksono
damar-wicaksono / linkError
Last active August 29, 2015 13:56
(ERROR:__main__:failed to link) when installing Anaconda-1.8.0
Python 2.7.5 :: Continuum Analytics, Inc.
creating default environment...
ERROR:__main__:failed to link (src='/afs/psi.ch/project/stars/workspace/HUM/SB-HUM-ACT-001-13/anaconda2/pkgs/_cache-0.0-x0/pkgs/cache/2ddfa1fa927e74385570c4605b338510.json', dst='/afs/psi.ch/project/stars/workspace/HUM/SB-HUM-ACT-001-13/anaconda2/pkgs/cache/2ddfa1fa927e74385570c4605b338510.json', type=1)
ERROR:__main__:failed to link (src='/afs/psi.ch/project/stars/workspace/HUM/SB-HUM-ACT-001-13/anaconda2/pkgs/_cache-0.0-x0/pkgs/cache/58c9e8a4a41c41dc796ffe680c1e02b5.png', dst='/afs/psi.ch/project/stars/workspace/HUM/SB-HUM-ACT-001-13/anaconda2/pkgs/cache/58c9e8a4a41c41dc796ffe680c1e02b5.png', type=1)
ERROR:__main__:failed to link (src='/afs/psi.ch/project/stars/workspace/HUM/SB-HUM-ACT-001-13/anaconda2/pkgs/_cache-0.0-x0/pkgs/cache/5e8fa0302270586eb7b2ecf71c1d1529.png', dst='/afs/psi.ch/project/stars/workspace/HUM/SB-HUM-ACT-001-13/anaconda2/pkgs/cache/5e8fa0302270586eb7b2ecf71c1d1529.png', type=1)
ERROR:__main__:failed to link (src='