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;
#!/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> >,
5.6.0
5.004 -> 5.6.0 = 660,232 lines
5.6.0 -> 5.6.1 = 214,426 lines
5.6.1 -> 5.6.2 = 155,160 lines
5.8.0
5.6.0 -> 5.8.0 = 1,341,129 lines
5.8.0 -> 5.8.1 = 554,396 lines
5.8.1 -> 5.8.2 = 56,646 lines