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.
Posted in HOWTO, notes | No Comments »
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;
}
Posted in uncategorized | No Comments »
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
Posted in uncategorized | No Comments »
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)
Posted in uncategorized | No Comments »
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
Posted in uncategorized | No Comments »
March 26th, 2008
Welcome back Sofie!!!
Posted in uncategorized | 2 Comments »
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.
Posted in HOWTO, notes | No Comments »