Skip to content

Instantly share code, notes, and snippets.

View mjsr's full-sized avatar

Marcos R mjsr

View GitHub Profile
@mjsr
mjsr / mm.stats.sh
Last active June 14, 2021 03:40
Simple stats for madMAx43v3r / chia-plotter
#!/bin/bash
# Shows the number of plots and the average time to complete.
# Requires you to send the logs to one file.
# $ ./mm.stats.sh /path/to/madmax.log
# num plots: 11 avg time: 28.3748 min
if [ -z "$1" ]; then
echo "Usage: $0 /path/to/madmax.log"
@mjsr
mjsr / keybase.md
Last active April 25, 2021 22:16
keybase.io verification

Keybase proof

I hereby claim:

  • I am mjsr on github.
  • I am marramgg (https://keybase.io/marramgg) on keybase.
  • I have a public key ASDGk-Ee1nem04dsxAxt2y4mV1i9TCMnZmgq--mLL7GrQAo

To claim this, I am signing this object:

@mjsr
mjsr / benchmark_hash_by_ref.pl
Created June 20, 2014 10:16
Benchmark overhead of copying hash reference to a new variable, four times...
#!perl
use warnings;
use strict;
use Benchmark qw( cmpthese );
my $h0 = {
'h1' => {
'h2' => {
@mjsr
mjsr / benchmark_unary_increment.pl
Created June 20, 2014 09:33
Benchmark unary increments
#!perl
use warnings;
use strict;
use Benchmark qw( timethese );
my ( $preinc, $postinc ) = ( 0, 0 );
timethese(100_000_000, {
@mjsr
mjsr / benchmark_sub_args.v2.pl
Created May 28, 2014 14:14
Benchmark subroutine argument strategies v2
#!perl
# source: http://www.perlmonks.org/?node_id=575918
use warnings;
use strict;
use Benchmark;
timethese(1_000_000, {
@mjsr
mjsr / benchmark_sub_args.pl
Created May 28, 2014 10:30
Benchmark subroutine argument strategies
#!perl
# source: http://www.perlmonks.org/?node_id=575918
use warnings;
use strict;
use Benchmark;
timethese(1_000_000, {