View the code on Gist.
View the code on Gist.
For a Moodle plugin I’m writing I needed a way to check if a String exists. Normally, if a string doesn’t exist then Moodle just…
Not really code, but still something I need often enough to write it down. This command will list all files in a Linux folder sorted…
This snippet will let you run the same command using each line from a file as a parameter. cat filename.txt | while read in; do…
This little batch file came about from needing to run a cron job from within XAMPP. Since it’s Windows I could have used a scheduled…
Fighting against an issue with the sendmail queue getting filled with junk I needed a way to delete a folder full of messages, and there…
Found this one on Stack Overflow needing a quick and easy way to create somewhat random strings. If you visit the entire thread where this…
As a follow up to an earlier post on double braces in Java, came up with a short, but ugly way of filling an ArrayList…
This is one of those that I never remember, but use a lot whenever I want to pull an entire file into a String quickly.…
Not sure why, but it looks like sorting on last name and first name is not built into the WordPress get_users method. Seems like it…