Collection of random code from working at PennState and IceCube