Some random code and hacky scripts likely of use to noone.