Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env perl
#
use strict;
use warnings;
use feature 'signatures';
no warnings 'experimental::signatures';
use Benchmark qw( cmpthese );
my $first = 1;
@lbe
lbe / app.component.html
Created January 18, 2019 04:25
ngx-echarts renderItem-issue-166-example
<div style="text-align:center">
<h1>
Gizmo Viewer
</h1>
</div>
<div echarts [options]="options" class="chart"></div>
@lbe
lbe / temp.log
Created April 16, 2018 19:18
Logger output for metacpan-client Issue 99
This file has been truncated, but you can view the full file.
GET https://clientinfo.metacpan.org
.---------------------------------+--------------------.
| Request (before sending) Header | Value |
+---------------------------------+--------------------+
| Accept-Encoding | gzip |
| User-Agent | WWW-Mechanize/1.84 |
'---------------------------------+--------------------'
.--------------------------------+--------------------.
jdoe@jdoe-mbp{~}:rperl -v
Running Mkbootstrap for eval_10_b4b2 ()
chmod 644 "eval_10_b4b2.bs"
"/Users/jdoe/perl5/perlbrew/perls/22.3t/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- eval_10_b4b2.bs blib/arch/auto/eval_10_b4b2/eval_10_b4b2.bs 644
"/Users/jdoe/perl5/perlbrew/perls/22.3t/bin/perl" "/Users/jdoe/perl5/perlbrew/perls/22.3t/lib/5.22.3/ExtUtils/xsubpp" -typemap "/Users/jdoe/perl5/perlbrew/perls/22.3t/lib/5.22.3/ExtUtils/typemap" -typemap "/Users/jdoe/.perlbrew/libs/22.3t@std/lib/perl5/typemap.rperl" eval_10_b4b2.xs > eval_10_b4b2.xsc
mv eval_10_b4b2.xsc eval_10_b4b2.c
g++ -fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -I/opt/local/include -xc++ -c -I"/Users/jdoe/.perlbrew/libs/22.3t@std/bin" -I/Users/jdoe/.perlbrew/libs/22.3t@std/lib/perl5 -Ilib -fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -I/opt/local/include -Wno-unused-variable -DNO_XSLOCKS -Wno-deprecated -std=c++11 -Wno-reserved-
jdoe@jdoe-mbp{~}:rperl
Running Mkbootstrap for eval_10_b4b2 ()
chmod 644 "eval_10_b4b2.bs"
"/Users/jdoe/perl5/perlbrew/perls/22.3t/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- eval_10_b4b2.bs blib/arch/auto/eval_10_b4b2/eval_10_b4b2.bs 644
"/Users/jdoe/perl5/perlbrew/perls/22.3t/bin/perl" "/Users/jdoe/perl5/perlbrew/perls/22.3t/lib/5.22.3/ExtUtils/xsubpp" -typemap "/Users/jdoe/perl5/perlbrew/perls/22.3t/lib/5.22.3/ExtUtils/typemap" -typemap "/Users/jdoe/.perlbrew/libs/22.3t@std/lib/perl5/typemap.rperl" eval_10_b4b2.xs > eval_10_b4b2.xsc
mv eval_10_b4b2.xsc eval_10_b4b2.c
g++ -fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -I/opt/local/include -xc++ -c -I"/Users/jdoe/.perlbrew/libs/22.3t@std/bin" -I/Users/jdoe/.perlbrew/libs/22.3t@std/lib/perl5 -Ilib -fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -I/opt/local/include -Wno-unused-variable -DNO_XSLOCKS -Wno-deprecated -std=c++11 -Wno-reserved-use
@lbe
lbe / Installation.md
Last active January 31, 2017 18:57 — forked from gary-mayden/Installation.md
Automatically disable Wifi when an Ethernet connection (cable) is plugged in on a Mac

Overview

This is a bash script that will automatically turn your wifi off if you connect your computer to an ethernet connection and turn wifi back on when you unplug your ethernet cable/adapter. If you decide to turn wifi on for whatever reason, it will remember that choice. This was improvised from this mac hint to work with Yosemite, and without hard-coding the adapter names. It's supposed to support growl, but I didn't check that part. I did, however, add OSX notification center support. Feel free to fork and fix any issues you encounter.

Most the credit for these changes go to Dave Holland.

This script was initially developed by Albert Bori. It was forked by Gary Mayden who added an automatic install script and modified the ethernet_names sed regular expression

My contribution is generalizing the ethernet_names sed regular e