K2 Hook Up v1.0

I have just committed a major update to my K2 Hook Up plugin. As soon as I released my plugin—which allows smart people using the K2 theme to insert arbitrary HTML, CSS, or JavaScript code into any of the 7 custom template hooks that K2 provides—I got the same question: When will it support inserting PHP code?

I’m happy to report that its day has come, and that day is today.

Continue reading

Random Password script

I just added another shell script to the growing library of open source code available on xentek.net. This entry is nothing special, but may prove useful to you. The script can generate a string, between 3 and 32 characters long, that you can use when setting new passwords.

The passwords won’t be the most secure in the world (doesn’t include any Uppercase Letters) but does bookend a random md5 string with some special characters to increase the complexity. You can pass in a number between 1 – 32 to control how long of a password it generates for you.

Download the random password script it from the code library.

Recursively Delete .svn Folders

Sometimes you need to move folders around, and when they are under version control, this can cause problems. If you’re feeling lazy and don’t want to svn export, then run this from the folder you want to scrub:

find . -name .svn | xargs rm -rf

Automate Setting Up New SVN Repositories

If you follow best practices for Subversion, then you create the standard repository layout, with trunk, tags, and branches directories. In fact these are usually my first three commits of any new repository. I’ve completed these steps so many times in the last few months, that I can practically type it in my sleep. Tired of repeating myself, I started digging into shell scripting to automate this task and released the fruits of my labor here: SVN: New Repos.

Continue reading