my life

day to day

Installing CPAN Packages for Debian

June 19th, 2008

If you want to install CPAN modules as Debian packages, this HOWTO is for you.

First, install dh-make-perl:

apt-get install dh-make-perl

Then build & install the package. For example, if you wish to install the module Nagios::Plugins::Memcached from CPAN, simply run:

dh-make-perl --install --cpan Nagios::Plugins::Memcached

You’re done.

add to del.icio.us    add to technorati favs    email this

Nginx Rewrite to 404

May 14th, 2008

The following Nginx configuration technique will allow you to do rewrites to status codes.

rewrite ^.*?\.(?:swf|xml|gif|jpg|png|css|js)$ @404 break; location = @404 { return 404; }

add to del.icio.us    add to technorati favs    email this

Must have Yum Plugin: fastestmirror

April 30th, 2008

Yum always gets stuck on dead mirrors or slow mirrors. Avoid this by installing yum-fastestmirror
yum install yum-fastestmirror yum clean all

add to del.icio.us    add to technorati favs    email this

RPM Package List Without Version Info

April 30th, 2008

rpm -qa --qf “%{NAME}\n”  > /tmp/installed-packages.log

To install those packages, run:

yum install -y $(cat /tmp/installed-packages.log)

add to del.icio.us    add to technorati favs    email this

Capistrano Put File Fix

April 25th, 2008

Up until recently, it was not possible to upload large files asynchronously to 2 or more machines simultaneously. This was due to a problem in the ruby ssh implementation. A patch is available which fixes this.

http://rubyforge.org/tracker/index.php?func=detail&aid=17857&group_id=274&atid=1123

If applying the patch is not an option, you can always change the transfer mode to synchronous.

set :synchronous_connect, true

add to del.icio.us    add to technorati favs    email this

Count Down to LA

March 26th, 2008

Welcome back Sofie!!!

add to del.icio.us    add to technorati favs    email this

Configuring Mutt for IMAP support

December 31st, 2007

Configuring Mutt with IMAP is as easy as editing your .muttrc and adding the following lines.

set spoolfile=imap://username:password@host/INBOX set folder=imap://username:password@host/INBOX

You can then change folders inside of Mutt by pressing ‘c’ and then ‘?’ to get a folder list.

add to del.icio.us    add to technorati favs    email this

« Previous Entries