Skip to content

Instantly share code, notes, and snippets.

View ribasushi's full-sized avatar
😒
unamused.

Peter Rabbitson ribasushi

😒
unamused.
View GitHub Profile
@ribasushi
ribasushi / 2015-01-30.md
Last active December 29, 2023 22:52
The origins of the river of CPAN (QAH 2015)
Subject: What I want for Christm^W the QA hackathon
Date: Fri, 30 Jan 2015 12:20:46 +0100
From: Peter Rabbitson <rabbit@rabbit.us>
To: { about 35 people, various stakeholders around Perl and CPAN }

(This mail is addressed to a lot of people, mainly to the list of current participants, and then to some extra folks who I think ought to be in Berlin anyway, and even some more people on BCC. Sorry for taking your collective time)

Greetings!

@ribasushi
ribasushi / dealstate_etl.bash
Last active January 29, 2023 23:04
Simple Filecoin StorageMarkets ETL
#!/bin/bash
set -eu
set -o pipefail
# derive API_INFO from implied defaults if necessary
LOTUS_PATH="${LOTUS_PATH:-$HOME/.lotus}"
LOTUS_CFG_MADDR="$( cat $LOTUS_PATH/api 2>/dev/null || true )"
FULLNODE_API_INFO="${FULLNODE_API_INFO:-${LOTUS_CFG_MADDR:-/ip4/127.0.0.1/tcp/1234/http}}"
@ribasushi
ribasushi / .lotusminer_config.toml
Last active April 21, 2022 05:22
Recommended miner settings
# During space-race-1 we tuned the dealbots frequency to not overwhelm the miners
# With space-race-2 underway your miner will be negotiating deals with a number of
# clients, who lack coordination among themselves. Therefore it is *very strongly*
# recommended to tune your miner parameters based on the sealing capacity you already
# known from space-race-1
#
# The numbers below are the bare minimum for a single-box, non-gpu miner, and are
# very conservative safe numbers. No doubt your miner can do better so you can bring
# these numbers up. But! Do not dial them too high: if you lose sectors due to an
# unresponsive miner, your clients will be... sad.
# In your base Result class ( ...::Schema::BaseResult )
sub add_relationship {
my $self = shift;
my $opts = $_[3] || {};
# shut off all DBIC/perl-side cascading logic
$opts->{cascade_delete} = 0;
$opts->{cascade_update} = 0;
$opts->{cascade_copy} = 0;
# As amply documented at:
#
# https://github.com/dbsrgits/dbix-class/blob/dc7d89911/lib/DBIx/Class/MethodAttributes.pm#L242-L298
# https://github.com/dbsrgits/dbix-class/blob/dc7d89911/lib/DBIx/Class/ResultSourceProxy.pm#L137-L143
# https://github.com/dbsrgits/dbix-class/blob/dc7d89911/lib/DBIx/Class/ResultSourceProxy.pm#L191-L262
#
perl -e '
{
@ribasushi
ribasushi / perl_git_stats.pl
Last active December 7, 2016 18:16
Simple perl-centric git blame agregator
#!/usr/bin/env perl
use warnings;
use strict;
use File::Find qw/find/;
use Data::Dumper::Concise;
my $author_stats;
mst_20151207.log:[16:42:22] <mst> aight. what stuff are you going to want me to take on?
mst_20151207.log:[18:06:39] <ribasushi> um... we talked about this - I am not doing an orderly handover
mst_20151207.log:[18:06:45] <ribasushi> so.. nothing? :)
mst_20151207.log:[18:07:03] <ribasushi> am going to be @ LPW, can talk more then if you insist
mst_20151208.log:[15:54:23] <mst> you said on the blog post you'll be transferring maint bits. I'm not asking for orderly, just a heads up as to which things I'm going to wake up on boxing day owning, if anyway
mst_20151208.log:[16:39:12] <ribasushi> that bridge will be burning when I get to it
mst_20151208.log:[16:39:12] <ribasushi> don't worry - I will not land you in a Scwern-like situation
mst_20151208.log:[16:39:12] <ribasushi> but that's about it
mst_20151208.log:[16:44:55] <mst> so, basically "giving warning would stop it being the not-orderly thing you have in mind, but while you're trying to make a splash, you're going to do so without causing carnage" or so
@ribasushi
ribasushi / 2016-09-15_02-58-02_modules.txt
Created September 15, 2016 03:12
DBIC permissions clusterfuck
From: Peter Rabbitson <ribasushi@cpan.org>
Subject: Upcoming PAUSE permissions dispute
To: modules@perl.org
Message-ID: <272835d7-1fd9-ef0a-ad0e-a62d2995c6e2@cpan.org>
Date: Thu, 15 Sep 2016 04:58:02 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Icedove/45.2.0
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
ca62a61 HEAD@{Thu, 28 Jul 2016 15:35:52 +0200}: commit (amend): Merging the ResultSource diagnostics rework
3220bf3 HEAD@{Thu, 28 Jul 2016 15:35:19 +0200}: commit (amend): Merging the ResultSource diagnostics rework
c169503 HEAD@{Thu, 28 Jul 2016 15:06:54 +0200}: checkout: moving from sssss to master
a71b078 HEAD@{Thu, 28 Jul 2016 15:03:45 +0200}: rebase -i (finish): returning to refs/heads/sssss
a71b078 HEAD@{Thu, 28 Jul 2016 15:03:45 +0200}: rebase -i (pick): (travis) Do not retry module installation when running single thread
a115f0d HEAD@{Thu, 28 Jul 2016 15:03:45 +0200}: rebase -i (pick): (travis) cPerl 5.24.0 has shipped
a6b1a4f HEAD@{Thu, 28 Jul 2016 15:03:34 +0200}: rebase -i (continue): Enable the schema SanChecks on 5.8 as well
db18e50 HEAD@{Thu, 28 Jul 2016 15:01:02 +0200}: rebase -i (edit): Enable the schema SanChecks on 5.8 as well
28dc870 HEAD@{Thu, 28 Jul 2016 15:01:02 +0200}: rebase -i (pick): Fix inexplicable 5.8.x C3 errors - roll back e6efde04
c169503 HEAD@{Thu, 28 Jul 2016 15:00:34 +0200}:
@ribasushi
ribasushi / reflog.txt
Created May 25, 2016 14:23
git reflog --date=rfc | head -n 4000 | xclip
01c25aa HEAD@{Wed, 25 May 2016 14:42:16 +0200}: rebase -i (finish): returning to refs/heads/master
01c25aa HEAD@{Wed, 25 May 2016 14:42:15 +0200}: rebase -i (pick): grrrrr
a81471f HEAD@{Wed, 25 May 2016 14:19:27 +0200}: commit (amend): Move even more utils into DBIC::_Util (see next commit)
69815c3 HEAD@{Wed, 25 May 2016 14:19:13 +0200}: commit: Move even more utils into DBIC::_Util (see next commit)
890c012 HEAD@{Wed, 25 May 2016 14:13:38 +0200}: cherry-pick: fast-forward
140bcb6 HEAD@{Wed, 25 May 2016 14:13:38 +0200}: rebase -i (start): checkout HEAD^^^^
2774d1f HEAD@{Wed, 25 May 2016 13:03:02 +0200}: rebase -i (finish): returning to refs/heads/master
2774d1f HEAD@{Wed, 25 May 2016 13:03:02 +0200}: rebase -i (pick): grrrrr
890c012 HEAD@{Wed, 25 May 2016 12:54:31 +0200}: commit: Couple lines forgotten during 399b9455
140bcb6 HEAD@{Wed, 25 May 2016 12:53:48 +0200}: cherry-pick: fast-forward