Archive for the ‘Code Snippets’ Category

Greasemonkey Script :: PM Petitions

Monday, January 29th, 2007

I wrote a simple greasemonkey script to auto fill all the details for the PM Petitions website.

Download (more…)

cups-pdf

Friday, July 21st, 2006

I just installed cups-pdf, so I can print pretty PDFs, on my workstation, sadly it did not work quite out of the box. Ubuntu forums yeilds the answer. The following command can be used to install cups-pdf and then enable it, you can then install it as a detected printer from the Gnome printer control.

$ sudo apt-get install cups-pdf & sudo chmod u+s /usr/lib/cups/backend/cups-pdf

fail2ban rule for Postfix

Thursday, July 20th, 2006

I wrote a nice little fail2ban rule for Postfix which blocks IP addresses that try to send mail to unrecognised senders and people trying to relay. Read more to find it. ;)

(more…)

Folding@Home Init Script … Revisited

Saturday, March 4th, 2006

I noticed my server was taking a while to respond to requests sometimes so, I altered the Folding@Home init script to set the sheduling priority based on the contents of /opt/fah/priority, or silently default to 0.

Lets see how things go…

Folding@Home

Wednesday, March 1st, 2006

I meant to post this ages ago, but things get lost and forgotten, I setup my server [sandman] to run Folding@Home to make use of its mass of wasted CPU cycles. I downloaded the Linux version and extracted it under /opt/fah/, I also created an init script to start Folding@Home at boot time.

Enjoy, don’t forget to add the correct rc.d symlinks ;)


Content Copyright © 2005-2008 Chris Smith. All Rights Reserved.