Somewhat random utility code that I commonly use and frequently recreate