This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
perl -lane 'print "$1.pm" if /^\s*use\s+(\S+)\s?.*?\;/' $1 | sed 's/::/\//g' | xargs -n1 dpkg -S |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# This is just a wrapper for : git rebase -i HEAD~4 | |
BACK=$1 | |
function die { | |
echo "$1" | |
exit 1 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
my @urls = qw( http://toronto.about.com/od/civicscityservices/tp/city_councillors_contact.htm | |
http://toronto.about.com/od/civicscityservices/tp/city_councillors_contact.01.htm | |
http://toronto.about.com/od/civicscityservices/tp/city_councillors_contact.02.htm | |
http://toronto.about.com/od/civicscityservices/tp/city_councillors_contact.03.htm | |
http://toronto.about.com/od/civicscityservices/tp/city_councillors_contact.04.htm ); | |
my @twitter; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
package MAIN; | |
use Digest::MD5; | |
use File::Find; | |
use Data::Dumper; | |
my $VERBOSE = $ENV{'VERBOSE'} || 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
use Net::DNS::Async; | |
use NetAddr::IP; | |
# rbllookup_async.pl - Thu Aug 20 13:13:35 EDT 2009 | |
# | |
# Author: pblair(at)tucows(dot)com | |
# Updated: Thu Aug 20 13:14:14 EDT 2009 | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
sub extract_from_config { | |
my $filename = shift || die; | |
my $variable = shift || die; | |
open my $fd, "<$filename" or die "$filename: $!"; | |
while( <$fd> ){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
sub map_set { | |
my $fn = shift; | |
die unless -f $fn; | |
my $map = {}; | |
open my $fd, "<$fn"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
# | |
# Take two keys, and attempt to match them up | |
# | |
# author: [email protected] | |
my @list = sort( @ARGV ); | |
my (@name, @modulus); | |
for ( @list ){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
use Getopt::Long; | |
$|++; | |
my ( $cutoff, $re ); | |
GetOptions ( | |
"regex=s" => \$re, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# from https://help.github.com/articles/splitting-a-subpath-out-into-a-new-repository | |
# | |
for CHILD in Conan Copy-From-Git Net-Domain-Regex Net-Domain-Match Net-PortTest | |
do | |
cd /tmp | |
rm -rf /tmp/Perl-CPAN | |
git clone [email protected]:petermblair/Perl-CPAN.git && cd Perl-CPAN |