Misc. utilities i have written over the years