Skip to content

Instantly share code, notes, and snippets.

View rjbs's full-sized avatar
🤝
here to help

Ricardo Signes rjbs

🤝
here to help
View GitHub Profile
#!/usr/bin/env perl
use v5.36;
use JSON::PP ();
# serial-merge-prs: rebase a list of PRs onto master one at a time, force-push
# each rebased branch back to its fork, then merge it into master with a
# semilinear (--no-ff) merge and push master upstream. Confirm everything up
# front, confirm again before each push to master, and abort on any error.
my @prs = @ARGV;
#!/home/rjbs/.plenv/versions/5.32.0/bin/perl5.32.0
use v5.32.0;
use warnings;
use utf8;
use Data::Printer;
use IO::Async;
use IO::Async::Loop;
use JMAP::Tester;
use JSON::MaybeXS;
use v5.36.0;
sub foo {
say "Hell0, w0rld.";
}
foo();
#!/usr/bin/env perl
use v5.36.0;
use Digest::MD5 qw(md5_hex);
use Getopt::Long::Descriptive;
use IO::Async::Loop;
use JSON::XS;
use Net::Async::HTTP;
use Path::Tiny;
use URI;
15:39 <@rjbs> Last night, I dreamed I was a rapper.
15:39 <@rjbs> I was asked to come to the funeral of a fan I had never met and eulogize her.
15:40 <@arcanez> did you?
15:40 <@autarch> and you laid down some mad rhymez there?
15:41 <@rjbs> No, I did my best to do a good job. I think I was part of a duo and my counterpart did not take things as seriously.
15:41 <@hanekomu> certainly repressed sexual desires or traumatic events, as Freud would say. :)
15:42 * rjbs watches the cornfield out the window.
15:42 < daxelrod> Nah, he would chalk it up to repressed sexual desires *for* traumatic events
15:47 * stevan would totally take a rjbs/stevan rap duo seriously
15:47 <@stevan> the Moose-Tang Clan
#!/usr/bin/env python
from rich import print
from rich.table import Table
from rich.text import Text
table = Table(show_header=True, header_style="bold magenta")
table.add_column("Issue", width=8)
table.add_column("S", width=1)
table.add_column("Pri", width=3)
table.add_column("Title", no_wrap=True)
#!/bin/env perl
use v5.36.0;
my $fn = $ARGV[0];
my @output;
{
open my $fh, '<', $fn;
my @input = <$fh>;
#!/usr/bin/env python3.7
import iterm2
import re
async def main(connection):
app = await iterm2.async_get_app(connection)
# This regex splits the font into its name and size. Fonts always end with
# their size in points, preceded by a space.
r = re.compile(r'^(.* )(\d*)$')
use reqwest::blocking::Client;
use reqwest::header::{AUTHORIZATION,CONTENT_TYPE};
use serde::{Serialize, Deserialize};
use std::collections::HashMap;
use std::env;
#[derive(Serialize, Deserialize, Debug)]
struct FilterOperator {
operator: String,
conditions: Vec< HashMap<String, JMAPArgValue> >,