Skip to content

Instantly share code, notes, and snippets.

View smpb's full-sized avatar
🫥
"my hovercraft is full of eels"

Sérgio Bernardino smpb

🫥
"my hovercraft is full of eels"
View GitHub Profile
@smpb
smpb / file.cfg
Created September 13, 2012 14:51
Perl hash-based config
{
author => 'sergio',
handle => 'smpb',
country => 'portugal',
complexity => {
number => 4,
depth => [ 'a', 'b', 'c' ]
}
}
@smpb
smpb / .gitconfig
Last active September 25, 2015 12:07
my configuration files. for easy reference and replication.
[user]
name = Sérgio Bernardino
email = code@sergiobernardino.net
[color]
branch = auto
diff = auto
grep = auto
status = auto
log = auto
[color "status"]
@smpb
smpb / get_files.pl
Created April 8, 2011 10:16
generic Perl stuff
# print files in current dir, by date
my @files = sort { -M $a <=> -M $b } grep { ! -d } glob "./*";
print "files by modified date:\n";
print "\t$_\n" for @files;