My collection of some useful code