Skip to content

Instantly share code, notes, and snippets.

Avatar
🤔

Kent Fredric kentfredric

🤔
View GitHub Profile
View OMG.pm
#p7-pretend
use strict;
use warnings;
use feature 'signatures';
no warnings "experimental::signatures";
package OMG;
BEGIN {
# pretend this says
@kentfredric
kentfredric / gist:919fddec7dc6b53131a5a040c5900ecc
Created Feb 13, 2020
Numbers sorted by numerical precedence of name
View gist:919fddec7dc6b53131a5a040c5900ecc
0, 1, one
1, 6, six
2, 10, ten
3, 2, two
4, 5, five
5, 4, four
6, 9, nine
7, 0, zero
8, 8, eight
9, 50, fifty
@kentfredric
kentfredric / Netflix Sux.markdown
Last active Jan 31, 2020
A compendium of Netflix UI Fuckery
View Netflix Sux.markdown

These criticisms are leveled primarily at the AndroidTV Netflix client. I haven't used other clients so I can't speak for their functionality.

No Timezone awareness

Currently, it is 8pm in New Zealand (Fri Jan 31 20:20:41 NZDT 2020)

"The Good Place" Season 4, Episode 13 says "Available January 31".

But its not available yet. At all. Maybe the fact that its currently 11pm in PST bears some significance.

View gist:4c3b839d5b248dfc042e68a4d675b617
move dev-perl/MARC-XML dev-perl/MARC-file-XML
move dev-perl/MARC-file-XML dev-perl/MARC-File-XML
View gist:69557aff2d2fce520ee17e043242823a
Title: Perl 5.26 Unmasking Warning [affects all users]
To: gentoo-dev@lists.gentoo.org, gentoo-user@lists.gentoo.org
We're finally at a point where we're nearing the unmasking[1] of Perl 5.26 and making it visible to ~arch users, and a
"news item" on this matter will appear shortly.
Due to a collection of various problems faced in this version, extensive amounts of work has been needed to simply deliver
an ~arch release that isn't incredibly visibly broken[1][2]
Subsequently, this will require a lot of care from end users who use ~arch versions of Perl, specifically as
View gist:50ab839757e371b04fddc1a358ce3ac1
// ==UserScript==
// @name Gentoo Perl Bugzilla Helpers
// @namespace http://gs.fox.geek.nz/1
// @description Templated bugs
// @include https://bugs.gentoo.org/enter_bug.cgi?product=Gentoo%20Linux
// @require http://code.jquery.com/jquery.min.js
// @version 1
// @grant none
// ==/UserScript==
View gist:fd9ee4ff55351f3e16122f62d663c26b
/tmp/Dist-Zilla $ perlbrew exec --with=5.25.10-nossp-sip13-nopmc-withdot,5.25.10-nossp-sip13h-nopmc-withdot,5.25.10-nossp-oaath-nopmc-withdot,5.24.1-nossp-oaath-nopmc-withdot,5.24.1-nossp-sdbm-nopmc-withdot bash -c 'for i in {0..5}; do /usr/bin/time dzil build >/dev/null; done'
5.25.10-nossp-sip13-nopmc-withdot
==========
15.12user 0.55system 0:15.70elapsed 99%CPU (0avgtext+0avgdata 223724maxresident)k
0inputs+3296outputs (0major+105260minor)pagefaults 0swaps
14.93user 0.56system 0:15.51elapsed 99%CPU (0avgtext+0avgdata 223596maxresident)k
0inputs+3296outputs (0major+105170minor)pagefaults 0swaps
14.80user 0.51system 0:15.35elapsed 99%CPU (0avgtext+0avgdata 223712maxresident)k
0inputs+3296outputs (0major+105228minor)pagefaults 0swaps
16.49user 0.67system 0:17.18elapsed 99%CPU (0avgtext+0avgdata 223732maxresident)k
View gist:cab5287dbecc4fd980b6624d08fcf474
perlbrew exec --with=5.25.10-nossp-sip13-nopmc-withdot,5.25.10-nossp-sip13h-nopmc-withdot,5.25.10-nossp-oaath-nopmc-withdot,5.24.1-nossp-oaath-nopmc-withdot,5.24.1-nossp-sdbm-nopmc-withdot bash -c 'for i in {1..5}; do (/usr/bin/time -v cpanm -q /tmp/Dist-Zilla-6.009.tar.gz ); done'
5.25.10-nossp-sip13-nopmc-withdot
==========
Successfully installed Dist-Zilla-6.009
1 distribution installed
Command being timed: "cpanm -q /tmp/Dist-Zilla-6.009.tar.gz"
User time (seconds): 58.95
System time (seconds): 6.29
Percent of CPU this job got: 98%
Elapsed (wall clock) time (h:mm:ss or m:ss): 1:06.29
View gist:d52a9dc8f9a21587102eb73545815f9c
perlbrew exec --with=5.25.10-nossp-sip13-nopmc-withdot,5.25.10-nossp-sip13h-nopmc-withdot,5.25.10-nossp-oaath-nopmc-withdot,5.24.1-nossp-oaath-nopmc-withdot,5.24.1-nossp-sdbm-nopmc-withdot bash -c 'for i in {1..5}; do ( /usr/bin/time cpanm -q /tmp/Moose-2.2004.tar.gz ); done '
5.25.10-nossp-sip13-nopmc-withdot
==========
Successfully installed Moose-2.2004
1 distribution installed
134.09user 16.21system 2:27.25elapsed 102%CPU (0avgtext+0avgdata 40544maxresident)k
0inputs+21776outputs (0major+2766251minor)pagefaults 0swaps
Successfully installed Moose-2.2004
1 distribution installed
150.77user 18.57system 2:45.66elapsed 102%CPU (0avgtext+0avgdata 40476maxresident)k
View gist:c1e14c5bdbcb00232410a4cf11b9160b
5.25.10 Siphash 13 self-test:
Files=2557, Tests=1231311, 752 wallclock secs (302.66 usr 45.41 sys + 1440.63 cusr 209.55 csys = 1998.25 CPU)
5.25.10 Siphash 13-H self-test:
Files=2557, Tests=1231383, 702 wallclock secs (307.18 usr 45.35 sys + 1435.14 cusr 206.05 csys = 1993.72 CPU)
5.25.10 OAAT
Files=2557, Tests=1231310, 745 wallclock secs (314.44 usr 47.48 sys + 1488.43 cusr 211.39 csys = 2061.74 CPU)
5.24.1 SDBM
Files=2410, Tests=851196, 399 wallclock secs (179.73 usr 29.91 sys + 1037.96 cusr 150.77 csys = 1398.37 CPU)
5.24.1 OAAT
Files=2410, Tests=851085, 434 wallclock secs (197.12 usr 32.36 sys + 1114.02 cusr 160.08 csys = 1503.58 CPU)