Linux
Recursively deleting .svn directories
0Messing around with your subversion directories and fed up of the .svn hidden folders laying around? If you try and checkin some directories that contain a .svn folder from some other repository, you’re going to have a whole world of pain trying to fix it (speaking from first hand experience here)
The easiest way to clear up rogue .svn directories is to run this command (on linux or mac). It will recursively find all directories named .svn, and pass them in for removal.
Using special characters in a linux sed command without having to escaping them
1I came across a brilliant little feature of the linux sed command today that I wasn’t aware of, and thought it was well worth posting up about.
I’d been using sed statements inside a bash script, to trawl through property files and replace values, these were all alphanumeric values so I didn’t have any problems with the usual sed comand of
sed -e s/replaceThisValue/withThisValue/g
That worked great, but then I had some properties introduced that contained special characters, notably the forward slash and equals. I scanned the interwebz for answers and there were all sorts of complicated techniques for escaping special characters, passing them into awk and all sorts of other such nonsense, however there is a much simpler way, just use a different separator character.
Top 10 Techie things I want to achieve in 2012
0I’m not the type of person that gets bored easily, I’ve always got many things to keep me amused, mostly side projects at home. I’m a firm believer, that if you don’t set yourself goals in the first place, then you won’t have anything to fail to achieve, so I’ve set myself a list of targets that I’d like to achieve in 2012 knowing full well I probably won’t get around to them all, but if I can do at least 3, it was worth it.
FTP: How to download all files, directories and sub-directories
0I’ve recently decided to cancel my hosting package with 1and1, as I don’t really have much use for it any more what with all the freebies Google is dishing out.
I needed to take a backup of all my files, and unfortunately mget doesn’t (or at least at the time) doesn’t support the downloading of directories, luckily there is another tool to help, <a href=”http://en.wikipedia.org/wiki/Wget”>wget</a>.
This example of wget will download all files (the -r specifies recursively) from a directory on the domain
<code>wget -r ftp://account_name:password@mydomain.com/directoryname</code>
Slackware 13.0 Installation : Part 1, pre-install
0Slackware, which I like to refer to as “proper linux”, theres no messing around with fancy wizards, this is hardcore linux; and a good cure for insomnia (second to Linux From Scratch that is)
This should help you get Slackware 13 installed, I did all of this using Virtual Box so make sure you have that installed first, and have created an environment ready for slackware.
Insert your LiveCD, or mount your downloaded ISO onto Virtual Box, then start up the virtual machine. Once virtual box has loaded up it should bring you to the first welcome screen in the Slackware 13 installation.
Linux from Scratch, an Intro
0So, I’ve decided to have a go at linux from scratch, which should satisfy a good headache for the next year or so, possibly longer.
Checkout : linuxfromscratch.org Or have a quick read of the Wiki entry
At this moment, I’m not quite sure as to what I’ll tailor my distro to, possibly gaming or a Windows like replacement


