I spend a lot of time solving various problems in Drupal. Occasionally I find that someone else has already done exactly what I need to do, but more often I end up cobbling together code from multiple sources and figuring out some stuff for myself. I was keeping various resulting code snippets around in case I need them again in the future, and it occurred to me that I might as well put them somewhere they might offer some other folks a hand up.

I've been building Drupal sites for nearly 20 years (starting with Drupal 4.5), but I still make a lot of mistakes—if you see something here that looks like it could be done a better way, please let me know.