This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use v5.36.0; | |
| sub foo { | |
| say "Hell0, w0rld."; | |
| } | |
| foo(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/env perl | |
| use v5.36.0; | |
| my $fn = $ARGV[0]; | |
| my @output; | |
| { | |
| open my $fh, '<', $fn; | |
| my @input = <$fh>; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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*)$') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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> >, |
NewerOlder