Puppet 3 on Centos 5

Puppet 3 wants Ruby 1.8.7, Centos 5 supplies 1.8.5.

So to get round this, add this repo

Add then add a

exclude=ruby*

line to the updates section in /etc/yum.repos.d/CentOS-Base.repo

yum update && yum install ruby then you are good to install puppet from the PuppetLabs repo.

eclipse – How can I configure the font size for the tree item in the package explorer in ecilpse – Stack Overflow

Create a file named, say, gtkrc-eclipse:

style "eclipse" {
font_name = "Sans Condensed 8"
}
class "GtkWidget" style "eclipse"

Then set a certain environment variable when invoking eclipse:
$ GTK2_RC_FILES=gtkrc-eclipse eclipse

via eclipse – How can I configure the font size for the tree item in the package explorer in ecilpse – Stack Overflow.

And to change the font size for the irritating tabs, you can edit the CSS

If you take a look in ECLIPSE_HOME/plugins/org.eclipse.platform_4.2.0.v201206081400/css, you will find the different CSS used. On Linux, if you use the GTK style (in the Preferences/Appearances), the e4_default_gtk.css is used.

Edit this file and change the .MPartStack section :


.MPartStack {
font-size: 9;
font-family: "Droid Sans";
swt-simple: false;
swt-mru-visible: false;
}

 

Scanning your Gmail with SpamAssassin

I’ve noticed more spam emails get into my Gmail INBOX lately, so decided to scan it with SpamAssassin.

The Perl commandline script (gmail-spamassassin) I wrote to do this can be downloaded from GitHub. I also subclassed Net::IMAP::Simple to support Gmail’s IMAP extensions, so you’ll need Gmail.pm from the repository too.

I intend to release Net::IMAP::Simple::Gmail to CPAN at some point, when it has a bit more functionality.

Update: released onto CPAN now.