find ./ -name “.svn” | xargs rm -Rf
source: http://www.rickhurst.co.uk/category/linux/
Entries Tagged as 'Uncategorized'
Command line script to recursively delete .svn folders from a directory
January 17th, 2008 · 2 Comments
Tags: Uncategorized
MySQL to MSSQL with PHPMyAdmin
November 19th, 2007 · No Comments
A client has forced me to migrate a MySQL database to MSSQL. Using PHPMyAdmin here is a list of things I had to do in order to get the data over:
‘SQL compatibility mode’ to ‘MSSQL’
Uncheck ‘Add AUTO_INCREMENT value’, ‘Enclose table and field names with backquotes’, ‘Complete inserts’, ‘Extended inserts’
Remove all occurrances of ‘unsigned’
Replace [...]
Tags: Uncategorized
Scriptaculous blind effect with CakePHP
October 11th, 2007 · No Comments
The Scriptaculous effects are easy to implement in CakePHP. I looked around for a simple example and didn’t find one, so here you go!
<?php echo $html->link(’Dinner Menu’,'#’,array(’onclick’=>’Effect.toggle(”dinnerMenu”, “blind”, {duration: 0.2}); return false;’)); ?>
<dl id=”dinnerMenu” style=”display:none;”>
<?php foreach ($event['Meal'] as $meal): ?>
<dt><?php echo $meal['name']; ?></dt>
<dd><?php echo $meal['description']?></dd>
<?php endforeach; ?>
</dl>
Make sure to download the appropriate libraries to [...]
Tags: Uncategorized
Ignoring directories in Subversion
April 11th, 2007 · 1 Comment
There are many reasons that you might want to disregard a directory in your Subversion repository. My particular reason happens to be the various cache directories that are used with CakePHP. I have setup 3 areas (dev, stage, live) for my website and update them from a Subversion repository, so I don’t need/want any [...]
Tags: Uncategorized
Getting around the TortoiseSVN password prompt
March 27th, 2007 · 8 Comments
For those of you that have run into the multiple password prompts while using the TortoiseSVN Subversion client, you’ll be glad to know there is a quick workaround. Assuming you have your repo browser url setup with svn+ssh, and your username already in the url (svn+ssh://username@hostname/some/path), you can then go to the TortoiseSVN settings [...]
Tags: Uncategorized
BetterThumbs Wordpress Plugin
February 2nd, 2007 · No Comments
Aaron Forgue is proud to announce another code release: BetterThumbs Wordpress Plugin
The BetterThumbs Wordpress Plugin creates true thumbnails for full-size images that are resized in the post editor, instead of just letting the browser scale down the original full-size image. This translates into faster load times and lower bandwidth usage.
He built this plugin out of [...]
Tags: Uncategorized