Today I finished getting automatic deployment of Bugzilla sorted. Bugzilla has an interesting install mechanism that requires running a shell script which prompts for information and then sets up the application. Fortunately you can provide a pre-written answer file with answers to all the questions it asks, so you don't need to try to train expect to fake out user input. It's easy enough to generate this and other configuration files from templates, and the script takes care of the rest of the process.
I've also spent a bit of time reading through questions on the Code Review Stack Exchange to try to pick up some useful tips and practices. Sadly the overall quality there is very low, with most samples containing really very basic flaws. If anyone has any suggestions for places to read critiques of good well designed code in bite sized chunks, I'd be interested to hear.