Tag Archives: perl

Getting all Second Level Domains from Wikipedia 0

Just hacked up this little script to do the needful:

Incorporate gravatars into your application 0

It’s super easy:

#/usr/bin/perl
use strict;
use Digest::MD5 qw( md5_hex );
 
my $email = shift || die("Please provide email address\n");
my $hash = md5_hex lc($email);
 
print "http://gravatar.com/avatar/${hash}.jpg\n";

I use them at work for showing tooltip displays upon email receipt etc. They’re fun and handy to add to any little application.

Quick launcher for ISO files and kids games 0

We only run linux at home, but my kids have a few game titles that I’ve stored (err, protected) on disk as ISO files. It’s a real PITA to write down the command line options for my wife to execute when they feel like playing a game, so I’ve thrown together a few quick [...]

Ensure that your certs aren’t going to expire 0

I run this little script at work to check when a given cert (either a file, or pulled from a SSL enabled webserver) will expire soon.

Flingo now on github 0

Taste the goodness
http://github.com/petermblair/Flingo/

iPod shuffle 3rd Gen + OpenSource 0

Grrr.. my new iPod isn’t supported by gnupod, but they’re working on it.

Perl ACL library 0

Hacked together a little ACL package for creating dynamic ACLs based on a few simple ideas:

Sys-Admins like Perl style Regex
Must be versatile enough to handle many types of applications
Should be robust enough to handle auto-generated ACLs

I was sitting at $WORK, thinking of a way to restrict access to certain API calls from a shared script.  [...]

A better way to write OO Perl 0

Use the MooseX::Declare syntactic sugar.

Perl + VIM + Refactor 0

In my last post, I spoke about tools to prettify vim and perl. Today I’m trying to tackle the problem of fat fingers when refactoring Perl code in VIM.
I’m always on the lookout for refactoring tools for VIM and Perl. Today I found APP::EditorTools which allows you to rename variables etc.
The power of [...]

Create neat images of your source code 1

Create images from source code