Skip to content

Instantly share code, notes, and snippets.

View gist:7d8421968d1f8934f1b0
# 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
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// 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 Aug 29, 2015
(ERROR:__main__:failed to link) when installing Anaconda-1.8.0
View linkError
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='