As part of my blogging, I've created a few scripts/code snippets/templates over time that may be of use:

I also have a couple of PDFs that may be of interest: