code's tag archives

Bamboo Trac Integration Plugin

Just finished version 0.1 of my BambooTracPluginIt adds items from your Bamboo rss feed into your trac timeline.It's basically just a hacked up version of the HudsonTracPlugin but I'm still proud of it :PFeedback is welcomed, not sure how active I'll be with development though so if anyone wants to take ownership (or co-ownership) of it just let me know.

mysql schema…. finally

I know this has taken waaay to long to post. But here it is if anyone still wants it. # CREATE DATABASE voip; # USE voip; # # Table structure for table 'allocation' # # DROP TABLE IF EXISTS allocation; CREATE TABLE `allocation` ( `allocation_id` int(11) NOT NULL auto_increment, `asset_id` int(11) NOT NULL default '0', `site_id` int(11) NOT NULL default '0', `extension` int(11) NOT NULL default '0', PRIMARY KEY (`allocation_id`) ) ENGINE=MyISAM AUTO_INCREMENT=58 DEFAULT CHARSET=latin1 COLLATE...

A few svn pre-commit hooks

I've recently been looking around for some pre-commit hooks for our subversion repositories. I figured that since I have them all up and running now, I might as well share them. I can't remember where I got all of these from, so if it's one of yours, then I apologise. Feel free to contact me and I'll give you credit for it. Check for blank/empty commit messages and reject This goes in hooks/pre-commit REPOS="$1" TXN="$2" # Make sure that the log message contains some text. SVNLOOK=/usr/bin/sv...

Dates in filenames

I came across this handy little batch file that will let you save a file as today's date: @echo off for /f "tokens=1-4 delims=/ " %%i in ("%date%") do ( set dow=%%i set month=%%j set day=%%k set year=%%l ) set datestr=%year%-%month%-%day% echo datestr is %datestr% set BACKUP_FILE=BACKUP_%datestr% echo backup file name is %BACKUP_FILE%