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
#! /usr/bin/perl
package WTF;
use Moose;
has a => (
is => 'ro' ,
isa => 'Str' ,
default => sub { shift->b() . ' harder' },
);
cpanm (App::cpanminus) 1.7039 on perl 5.023002 built for darwin-2level
Work directory is /Users/genehack/.cpanm/work/1442585438.92365
You have make /usr/bin/make
You have LWP 6.13
You have /usr/bin/tar: bsdtar 2.8.3 - libarchive 2.8.3
You have /usr/bin/unzip
Searching Mac::SystemDirectory () on cpanmetadb ...
Unpacking Mac-SystemDirectory-0.06.tar.gz
--> Working on Mac::SystemDirectory
Fetching http://www.cpan.org/authors/id/C/CH/CHANSEN/Mac-SystemDirectory-0.06.tar.gz ... OK
cpanm (App::cpanminus) 1.7039 on perl 5.023002 built for darwin-2level
Work directory is /Users/genehack/.cpanm/work/1442585438.92365
You have make /usr/bin/make
You have LWP 6.13
You have /usr/bin/tar: bsdtar 2.8.3 - libarchive 2.8.3
You have /usr/bin/unzip
Searching Mac::SystemDirectory () on cpanmetadb ...
Unpacking Mac-SystemDirectory-0.06.tar.gz
--> Working on Mac::SystemDirectory
Fetching http://www.cpan.org/authors/id/C/CH/CHANSEN/Mac-SystemDirectory-0.06.tar.gz ... OK
@genehack
genehack / 5.22
Created September 18, 2015 14:08
% perl -V 7:05:25
Summary of my perl5 (revision 5 version 22 subversion 0) configuration:
Platform:
osname=darwin, osvers=14.3.0, archname=darwin-2level
uname='darwin irving.home.genehack.org 14.3.0 darwin kernel version 14.3.0: mon mar 23 11:59:05 pdt 2015; root:xnu-2782.20.48~5release_x86_64 x86_64 i386 macbookpro11,1 darwin '
config_args='-Dprefix=/opt/plenv/versions/5.22.0 -de -Dusedevel -A'eval:scriptdir=/opt/plenv/versions/5.22.0/bin''
hint=recommended, useposix=true, d_sigaction=define
useithreads=undef, usemultiplicity=undef
use64bitint=define, use64bitall=define, uselongdouble=undef
@genehack
genehack / gist:4d980aec1e6b463812de
Created July 22, 2015 04:09
yes, this is easier to read.
my @outer_content = $elem->content_list;
my @inner_content = $outer_content[1]->content_list;
my $attr = $inner_content[2]->attr('text');
PERL_DL_NONLAZY=1 "/opt/plenv/versions/5.22.0/bin/perl5.22.0" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
#
# Versions for all modules listed in MYMETA.json (including optional ones):
#
# === Configure Requires ===
#
# Module Want Have
# ------------------- ---- -------
# ExtUtils::MakeMaker 6.17 7.04_01
#
Unrecognized option(s) passed to make_path(): err at /opt/plenv/versions/5.22.0/lib/perl5/site_perl/5.22.0/Path/Tiny.pm line 1117.
cpan/Pod-Simple/t/encod04 ..................................... # Failed test 4 in t/encod04.t at line 130 *TODO*
# t/encod04.t line 130 is: ok 0;
ok
DB<40> s
IO::Socket::SSL::configure(/opt/plenv/versions/5.22.0/lib/perl5/site_perl/5.22.0/IO/Socket/SSL.pm:484):
484: return $self->_internal_error("@ISA configuration failed",0)
485: if ! $self->SUPER::configure($arg_hash);
DB<40> s
IO::Socket::IP::configure(/opt/plenv/versions/5.22.0/lib/perl5/site_perl/5.22.0/IO/Socket/IP.pm:360):
360: my $self = shift;
DB<40> r
scalar context return from IO::Socket::IP::configure: undef
IO::Socket::SSL::_internal_error(/opt/plenv/versions/5.22.0/lib/perl5/site_perl/5.22.0/IO/Socket/SSL.pm:1815):
# Failed test at t/apache.t line 15.
# Failed test at t/apache.t line 18.
# 'Can't connect to www.apache.org:443
#
# hostname verification failed at /opt/plenv/versions/5.22.0/lib/perl5/site_perl/5.22.0/LWP/Protocol/http.pm line 47.
# '
# doesn't match '(?^:Apache Software Foundation)'