Skip to content
A place to store any random scripts I come up with for posterity
Ruby Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
New Terminal
New iTerm


This repository will hold some of the tools I’ve written. If they’re of some use to you, go for it. All of these tools are covered under the MIT License contained in the LICENSE file.

A bash function for converting CIDR number to a netmask. I used this to make a more “user friendly” configuration for vpnc.


Searches for a given class in the libraries connected to a maven project in eclipse. Useful for finding which libraries are defining conflicting classes. Which seems to happen a lot if you use java web services.


The script that I use to backup It’s very barebones and currently only supports backup of a folder and mysql database to sftp (as is the case on Dreamhost). To use it, make a configuration file called “wordpress.backup” and put it next to a file called “wordpress” and put something like this in it:

mysql :host => ‘’, :user => ‘yourmysqluser’, :password => ‘yourmysqlpassword’, :database => ‘yourmysqldatabase’ sftp :host => ‘’, :user => ‘yourbackupuser’, :folder => ‘backups’ keep 10

Then run it with: ruby runbackup.rb /path/to/config

Each of these is just a function call on the Backup object which defines the commands that will be run during the backup. The backup process is defined by the “start” method.

Something went wrong with that request. Please try again.