Some useful code and scripts compiled from my time in graduate school