Skip to content

Instantly share code, notes, and snippets.

View robn's full-sized avatar
🤖
robots just like mama used to make

Rob N robn

🤖
robots just like mama used to make
View GitHub Profile
@robn
robn / consulcheck.pl
Created October 30, 2014 06:17
Consul two-stage check prototype
#!/usr/bin/env perl
use 5.014;
use warnings;
use strict;
use Consul;
use Sys::Hostname;
use Try::Tiny;
@robn
robn / otfile
Created September 30, 2013 01:57
Serve a file with a unique URL, then shut down.
#!/usr/bin/env perl
use 5.010;
use warnings;
use strict;
my @preferred_interfaces = qw(wlan0 eth0);
my $port = 5238;
@robn
robn / gist:4042883
Created November 9, 2012 00:22
Scrape Cricinfo live commentary stream, output to IRC
#!/usr/bin/env perl
use 5.016;
use warnings;
use strict;
use AnyEvent;
use AnyEvent::IRC::Client;
use AnyEvent::HTTP;
use HTML::TreeBuilder 5 -weak;
@robn
robn / fontstash-linux.diff
Created May 15, 2011 23:30
Patch to get Font Stash running on Linux
diff -U3 -r fontstash/fontstash.c fontstash-linux/fontstash.c
--- fontstash/fontstash.c 2009-08-27 22:03:44.000000000 +1000
+++ fontstash-linux/fontstash.c 2011-05-16 09:26:23.000000000 +1000
@@ -20,7 +20,7 @@
#include <stdlib.h>
#include <string.h>
-#include <OpenGL/gl.h>
+#include <GL/gl.h>