Tag Archives | *nix

'svn add' one-liner

Simple one-liner that I use when I’ve loads online video downloader of files to add to a subversion repository: for FILETOADD in `svn stat | awk ‘{ print $2 }’`; do svn online canadian pharmacy add $FILETOADD; done

Continue Reading

Installing bitcoin on Debian 'squeeze'

Instead of being outdoors I geeked out indoors this weekend and amongst other things installed a Bitcoin daemon on a public facing server so I could have a play with the API/RPC features. Below I document the steps I followed as it turned out to be slightly more taxing than the usual apt-get install bitcoind

Continue Reading

Moving multiple subversion repositories

I had a need to migrate all of our subversion repositories from an overworked machine onto a new dedicated machine. As I had about 30 repositories to copy over I didn’t fancy doing each dump -> copy -> create -> import manually so I came up with the following. Which, amazingly, worked first time. I’d [...]

Continue Reading

Nightmare MySQL migration

I've been migrating a large number of websites over from one server to another, always an enjoyable task. So I get to the last one, copy the database over and do the normal mysql import along the lines of: [code]mysql -ufoo -pbar database_name < database_name.sql[/code] Errors++ Turns out the Donke^H^H^H^HDeveloper who built the application didn't [...]

Continue Reading

Excluding folders when creating a tarball

When creating a tarball, to exclude folders one simply uses the –exclude= flag: For example to tar up the contents of /var/log but to exclude /var/log/apache & /var/log/mail/ tar -jcvf logfiles.ta cheap viagra online without prescription r.bz2 /var/log/* –exclude=/var/log/apache/* –exclude=/var/log/mail/* Just in case you didn't already know then the 'j' flag in the 'jcvf' tells [...]

Continue Reading

debian start-up script tip

If you've just installed something and want to make sure it starts on boot then the init.d script needs adding to the various run level folders as a symlink. It's a bit of a drag and it can be sometimes forgotten. Never mind, Debian comes buy replica bags online with a handy script: Lets assume [...]

Continue Reading