Skip to content

Instantly share code, notes, and snippets.

@bingos
bingos / bpmtoms
Last active November 1, 2023 17:41
BPM to MS Calculator
#!/usr/bin/env perl
use 5.012;
no crap;
use Math::BigFloat;
sub round {
return Math::BigFloat->new(shift)->bfround(1);
}
my $bpm = shift @ARGV;
@bingos
bingos / gist:4bb721e3194c2fe58eb56f7621295205
Created July 26, 2020 13:57
You will go to the Dagobah system
Lastlog:
[11:58] < dagobah> Distribution: 'P/PI/PINGAN/Mojolicious-Plugin-Database-0.01.tar.gz' finished with status '0'
[11:58] < dagobah> Distribution: 'P/PI/PINGAN/Mojolicious-Plugin-Rex-0.01.tar.gz' finished with status '0'
[11:58] < dagobah> Distribution: 'P/PI/PINGAN/Mojolicious-Plugin-SNMP-0.01.tar.gz' finished with status '0'
[11:58] < dagobah> Distribution: 'P/PI/PINGAN/Mojolicious-Plugin-Vue-0.01.tar.gz' finished with status '0'
[11:58] < dagobah> Distribution: 'P/PI/PINGAN/Netconf-0.01.tar.gz' finished with status '0'
[11:58] < dagobah> Distribution: 'P/PI/PINGAN/Yang-0.01.tar.gz' finished with status '0'
End of Lastlog
@bingos
bingos / gist:1bae9c8606225b72f0e56fb6ee5045ef
Created October 13, 2019 11:56
OpenIndiana Hipster tar Number-Compare-0.03
root@hedwig:/opt/build# uname -a
SunOS hedwig 5.11 illumos-8e0c82482c i86pc i386 i86pc
root@hedwig:/opt/build# tar xf Number-Compare-0.03.tar
root@hedwig:/opt/build# ls -l
total 4410
-rw-r--r-- 1 root root 2227645 Oct 8 13:17 02packages.details.txt.gz
-rwxr-xr-x 1 root root 170 Sep 4 21:47 minstall.sh
-rwxr-xr-x 1 root root 174 Sep 4 21:47 mupdate.sh
drwxr-xr-x 4 root root 9 Sep 21 2011 Number-Compare-0.03
-rw-r--r-- 1 root root 20480 Sep 21 2011 Number-Compare-0.03.tar
@bingos
bingos / gist:f558443c2c017e5f156747238520fded
Created October 13, 2019 11:47
Solaris 11 tar Number-Compare-0.03
root@stanley:/opt/build# uname -a
SunOS stanley 5.11 11.3 i86pc i386 i86pc
root@stanley:/opt/build# tar xf Number-Compare-0.03.tar
root@stanley:/opt/build# ls -l
total 4415
-rw-r--r-- 1 root root 2225277 Sep 11 21:55 02packages.details.txt.gz
-rwxr-xr-x 1 root root 1020 Jul 1 13:59 minstall.sh
-rwxr-xr-x 1 root root 1035 Jul 1 13:59 mupdate.sh
drwxr-xr-x 4 root root 9 Sep 21 2011 Number-Compare-0.03
-rw-r--r-- 1 root root 20480 Sep 21 2011 Number-Compare-0.03.tar
@bingos
bingos / gist:5c68b645eb4db72378dd53b1c51362da
Created October 13, 2019 11:41
Solaris 10 tar Number-Compare-0.03
bash-3.2# uname -a
SunOS swyddog 5.10 Generic_147148-26 i86pc i386 i86pc
bash-3.2# tar xf Number-Compare-0.03.tar
bash-3.2# ls -l
total 4368
-rw-r--r-- 1 root root 2202131 Jul 1 09:41 02packages.details.txt.gz
-rwxr-xr-x 1 root root 170 Jul 17 2015 minstall.sh
-rwxr-xr-x 1 root root 174 Jul 17 2015 mupdate.sh
drwxr-xr-x 4 root root 512 Sep 21 2011 Number-Compare-0.03
-rw-r--r-- 1 root root 20480 Sep 21 2011 Number-Compare-0.03.tar
@bingos
bingos / gist:9f635993c108687de7528763582490b9
Created September 11, 2019 14:16
ExtUtils-MakeMaker 7.38 Released
I wish that we could talk about it
But there, that's the problem
With someone new I could have started
Too late for beginnings
You're smaller than my wife imagined
Surprised, you were human
There shouldn't be this ring of silence
But what are the options?
[17:57] < Exodist> gah, that time I was in bed.
[17:58] < Exodist> If anyone sees him again and I do not respond can you tell him to email me at exodist7@gmail.com?
[17:58] < Exodist> also, for the record, the answer to his first question is "don't" as TAP::Parser::SourceHandler::pgTAP does nto appear to use anything in Test::Builder/Test::More and there is not really anything to port to Test2
[17:59] < Exodist> so I need to find out what his end-goal is to help with that
@bingos
bingos / count_under.pl
Created July 9, 2019 18:54
Counting underscore prefixed packages
use 5.012;
use strict;
use warnings;
$|=1;
my $start;
while (<>) {
chomp;
@bingos
bingos / gist:671d893541022d576ed229cf9b950d9e
Created March 30, 2019 13:34
Yet Another Solaris cc output
# cc -V
cc: Sun C 5.13 SunOS_i386 2014/10/20
# CC -V
CC: Sun C++ 5.13 SunOS_i386 2014/10/20
@bingos
bingos / gist:99fd15edf2b16ce7a3ff8ea1e72df96b
Created March 30, 2019 11:15
Another Solaris cc output
# cc -V
cc: Studio 12.6 Sun C 5.15 SunOS_i386 2017/05/30
# CC -V
CC: Studio 12.6 Sun C++ 5.15 SunOS_i386 2017/05/30