Shell commands reminder
Authentication
ssh-keygen                    # create a new key on the client
ssh-copy-id username@hostname # copy the key to the server
Git
git checkout -b branchname # create and checkout new branch
git stash                  # stash current changes
git stash list             # show stash stack
git branch x               # change branch
                           # do some work
git branch y               # back to original branch
git stash apply            # get back the stashed changes
git stash drop stash@{0}   # remove the stash from the stack
g++
$CPATH        # to add additional include directories
$LIBRARY_PATH # to add additional library directories
g++ -D_GLIBCXX_DEBUG                 # enable bound checking for the standard library
g++ -DBOOST_DISABLE_ASSERTS -DNDEBUG # disable bound checking for boost::multi_array
Profiling
valgrind --tool=callgrind ./a.out
kcachegrind callgrind.out.*