Various handy things. Please fork for your coding pleasure.