dziemecki's blog

PHP: Temporary Random Password Generator

Sometimes, you need to generate a temporary password for a new user. Something that meets your security requirements, and is painful enough to make the user change it as soon as they log on. I've got just the ticket.

Tags: 

Windows: IIS Log Housekeeping

I have a server that fills up with IIS logs. Over a week or two, the logs end up eating the entire c: drive and the box crashes like a drunk teenager. I spent a few lunch hours trawling Google to find some kind of script to clean out the oldest several days worth of logs automatically. I used just those words: "automatically delete IIS logs", in a few different combos. Also tried "archive old IIS logs", "dump flippin' web logs", and "Aaarrrrrrggggh!". Didn't have a lot of luck. Found a few commercial apps, but I'm religiously adverse to paying for simple code, so I kept looking, long past the point where I could have written something myself to deal with the issue.

Pages

Subscribe to RSS - dziemecki's blog