Skip to content

Instantly share code, notes, and snippets.

View genehack's full-sized avatar
🏠
Working from home

John SJ Anderson genehack

🏠
Working from home
View GitHub Profile
% curl https://www.imperialviolet.org:1266 13:05:25
If you can see this message then you are probably affected by CVE-2014-1266! See https://www.imperialviolet.org/2014/02/22/applebug.html for details and http://support.apple.com/kb/HT6147 for the iOS patch.
% uname -a 23:49:27
Darwin phineas.home.genehack.org 13.0.0 Darwin Kernel Version 13.0.0: Thu Sep 19 22:22:27 PDT 2013; root:xnu-2422.1.72~6/RELEASE_X86_64 x86_64 i386 MacBookAir4,2 Darwin
2

Keybase proof

I hereby claim:

  • I am genehack on github.
  • I am genehack (https://keybase.io/genehack) on keybase.
  • I have a public key whose fingerprint is 3503 CE72 CB07 FE0F 8EEF 2838 C540 89CD A3C8 5025

To claim this, I am signing this object:

#! perl
use strict;
use warnings;
use Test::Class::Moose::Load 't/lib/';
Test::Class::Moose->new->runtests;
use utf8;
#use feature 'unicode_strings';
#binmode $_ , ":encoding(UTF-8)" foreach qw/ STDIN STDOUT STDERR /;
use strict;
use warnings;
use Test::More;
use File::Temp qw(tempdir);
use IO::File;
use utf8;
use strict;
use warnings;
use Test::More;
use File::Temp qw(tempdir);
use IO::File;
use Git::Wrapper;
use File::Spec;
use File::Path qw(mkpath);
@genehack
genehack / get-twitter-mutes.pl
Created October 20, 2014 13:09
Gets the list of users you have muted on Twitter.
#! /usr/bin/env perl
# NOTE: in order to use this, you need to fill in the various tokens in the constructor at the bottom!
package Net::Twitter::Role::Mute;
use Moose::Role;
use Net::Twitter::API;
base_url 'apiurl';
authenticate 1;
genehack [14:34]
remind me at 2pm to call bob
slackbot [14:34]
Ok, I'll remind you to "call bob" on Saturday, November 15th at 2:00 am.
#! perl
use strict;
use warnings;
use Test::More;
ok(1,'first');
subtest foo => sub {
% prove ~/foo.t -v 7-zero-valued-component-fails • 17:41:24
/Users/genehack/foo.t ..
ok 1 - first
# Subtest: foo
ok 1 - second
ok 2 - third # TODO this actually works
1..2
ok 2 - foo
ok 3 - fourth # TODO this works too
1..3
@genehack
genehack / gist:26305e1dd31dadb08cf4
Created March 18, 2015 02:48
Moose test fail with 5.14.4, Moose 2.1403
prove -l t/metaclasses/exporter_also_with_trait.t 19:35:23
t/metaclasses/exporter_also_with_trait.t .. Use of uninitialized value $package in hash element at /Users/genehack/.cpanm/work/1426645714.53163/Moose-2.1403/lib/Moose/Exporter.pm line 245.
Use of uninitialized value $package in concatenation (.) or string at /Users/genehack/.cpanm/work/1426645714.53163/Moose-2.1403/lib/Moose/Exporter.pm line 245.
The package does not use Moose::Exporter
BEGIN failed--compilation aborted at t/metaclasses/exporter_also_with_trait.t line 22.
t/metaclasses/exporter_also_with_trait.t .. Dubious, test returned 255 (wstat 65280, 0xff00)
No subtests run
Test Summary Report
-------------------