Miscellaneous useful code for productivity