This file contains 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/bash | |
set -euo pipefail | |
IFS=$'\t\n' | |
cookie_jar="$(mktemp)" | |
trap 'rm -f "$cookie_jar"' EXIT | |
ejuror_url='https://ecf.casd.uscourts.gov/ejuror/TransportRoom' | |
args=( |
This file contains 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/bash | |
# | |
# Usage: wordle [-f <word file>] [-g <green pattern>] [-y <yellow pattern>]... [-x <gray letters>] | |
# | |
# The word file defaults to '/usr/share/dict/words'. | |
# | |
# The green pattern defaults to '.....', which will include all five letter | |
# words from the word file. | |
# | |
# Multiple yellow patterns can be given, typically corresponding to each |
This file contains 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/bash | |
set -euo pipefail | |
IFS=$'\t\n' | |
cookie_jar="$(mktemp)" | |
trap 'rm -f "$cookie_jar"' EXIT | |
ejuror_url='https://ecf.casd.uscourts.gov/ejuror/TransportRoom' | |
args=( |
This file contains 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/bash | |
set -euo pipefail | |
IFS=$'\t\n' | |
PATH='/usr/bin:/usr/local/bin' | |
while read -r line; do | |
[[ $line =~ ^\s*$ ]] && continue | |
[[ $line =~ ^\s*# ]] && continue |
This file contains 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/bash -eu | |
show-config() { | |
readlink -f "$0" | |
} | |
trap 'exit 0' SIGINT | |
trap 'kill 0' EXIT | |
while :; do |
This file contains 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/bash -eu | |
tag="$( basename "$0" )" | |
arg1= ;# single value, required | |
arg2= ;# multi-value, optional | |
arg3= ;# multi-value, optional | |
nothing= ;# dry-run | |
verbose= | |
while getopts '1:2:3:nvh' opt; do |
This file contains 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.20; | |
use warnings; | |
use Text::Roman qw( roman2int ); | |
my %fn = ( | |
b => sub { chr oct "0b$_[0]" }, | |
d => sub { chr $_[0] }, | |
h => sub { chr hex $_[0] }, |
This file contains 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/perl | |
# | |
# Inspired by https://github.com/mattt/BritishInvasion | |
# | |
# This is still a terrible idea. Just dreadful. | |
use 5.016; | |
use warnings; | |
BEGIN { |
NewerOlder