Useful linux commands

Bash To process a file line-by-line while read i; do something-with-$i; done < filename To insert a character literally into a command first hit “Ctrl-v” followed by the character (For example Ctrl-v will insert a literal tab character) Dealing with...

Useful python snippets

A quick handy reference to some python snippets Find path to a package or module import os print os.path.dirname(packagename.__file__) List all modules inside a package import pkgutils import os [name for _, name, _ in...

KDD 2016 Notes

Workshop Day: 14 August 2016 Missed the keynote as the earliest BART reached Powell St by 8:45. Wanted to attend the whole of the time-series workshop but there were other interesting things that had my attention. Nevertheless, anyone interested in time-series...

NVidia GTX 1080 installation on Ubuntu 16.04 LTS

First, you will be glad to know that Linus Torvalds hates Nvidia precisely for the reasons why you are here. I have spent too many hours trying to figure this out, so here it is. Important Note: All these steps need to be performed with the display connected to the...