Welcome to my Junkcode! What the hell is this? Andrew "Tridge" Tridgell came up with the idea of having a junkcode directory. Basically it's a place to store all the snippets of code you write that aren't particularly useful by themselves but that you find useful as part of another task. He actually gave a lecture on the subject and his slides are here [PDF]. So, below are some snippets that I find useful to re-use or just look at for reference. More than likely it won't help YOU very much but.....you never know!

CAUTION: Some of this code could damage or destroy your data if used in its current form. Do NOT run it if you don't know what it is going to do. I am not liable for the destruction of data or downtime experienced by using anything on this page.