Dev-Sys (48 posts)

View other categories: all categories

Flush the qmail queue

My secondary mail server (that runs qmail) had a load of email queued up today that I needed to flush. Googling comes back with people saying run qmail with daemontools then you can use on of the nice …

Display PNGs with Alpha Transparency in IE6

I've been working on a site that'll be launching in the new year that contains its share of contemporary web technologies (look, roll your eyes if you want but I managed to avoid the W2 word); it also …

Subversion repository creation shell script

I've updated my svn repository creation script, it now copies and imports the code. Works for me, etc. Earlier: Creating a Subversion repository. #!/bin/sh # Darren Beale - siftware.co.uk # …

SEO considerations for a Flash website

In 1997/8 (whenever it was) I got really excited by Flash 3 coming out; I even went to a do at the Islington Design centre (UK/London) where Macromedia pimped it (showing eye4U and Gabocorp, remember …

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 …

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 …

Perl MySQL backup script.

I'm in the middle of migrating a lot of websites from one server to another. Here's a small script I knocked up to take a dump of all the MySQL databases on that machine: [perl]#!/usr/bin/perl -w use …

RSS to Email

I can't be arsed with RSS feeds; they are too high maintenance and I just don't have the time to read them any more, especially so since I became a freelance web developer again and all my time is …

BASH for loop

#!/bin/sh for FOO in a b c d e f; do echo $FOO done Outputs a b c d e f

Global search and replace using Vi

to replace all instances of - say - 127.0.0.1 with 10.0.0.1 in a file then using vi you can do: :%s/127.0.0.1/10.0.0.1/g if you mess it up then press u for undo. Of course if it's an important file …