Random useful things from various projects