Skip to content

Instantly share code, notes, and snippets.

View dnmfarrell's full-sized avatar

David Farrell dnmfarrell

View GitHub Profile
use strict;
use warnings;
use HTML::Entities;
use autodie;
# this program can be called with a filepath or a folder path containing
# files to clean
die 'Provide a filepath to clean' unless @ARGV or not -e $ARGV[0];
@dnmfarrell
dnmfarrell / or.pl
Last active August 29, 2015 14:07
Script that sometimes generates an error
#!/usr/bin/env perl
# or.pl
# $ or.pl user@101.242.35.22
use strict;
use warnings;
use Object::Remote;
use Object::Remote::Connector::SSH;
use Eval::WithLexicals;
@dnmfarrell
dnmfarrell / get_swift_code.pl
Created September 13, 2014 13:31
Perl script that downloads country SWIFT codes from www.bankswiftcode.org and outputs them in a pipe-delimited format
#!/usr/bin/env perl
# downloads country SWIFT codes from www.bankswiftcode.org and outputs them in a pipe-delimited format
# LICENSED Artistic License 2.0 http://opensource.org/licenses/Artistic-2.0
use strict;
use warnings;
use HTTP::Tiny;
use XML::LibXML;
die 'Please provide country' unless @ARGV;
@dnmfarrell
dnmfarrell / reveal_presentation.md
Created September 13, 2014 13:27
A quick guide to markdown as served by the Perl module App::revealup

A quick guide to markdown as served by App::revealup
David Farrell
PerlTricks.com June 2014


This is H1

This is H2

This is H3

This is H4