Skip to content

Instantly share code, notes, and snippets.

@BryantD
BryantD / process_meet.py
Created February 9, 2023 03:04
Meet Transcript Processor
#!/usr/bin/env python3
import argparse
from textwrap import wrap
def main():
parser = argparse.ArgumentParser()
parser.add_argument("file", help="File to process")
args = parser.parse_args()
@BryantD
BryantD / scare.sh
Created December 25, 2022 20:34
Scarecrow Video CLI Search
#!/bin/zsh
# Requires htmlq <https://github.com/mgdm/htmlq>
# Only tested on Mac OS X
[[ $# -eq 0 ]] && echo "No title supplied" && exit 1
url=https://www.scarecrow.com/45/search.html?keywords=
tmp=/tmp/scare$$.html
search=$( echo $1 | /usr/bin/sed 's/ /+/g' )
51 Kazuchika Okada
48 Tomohiro Ishii
48 Hiroshi Tanahashi
47 Will Ospreay
46 Mitsuharu Misawa
44 Kenta Kobashi
43 Kota Ibushi
42 Kenny Omega
39 Bryan Danielson
33 Shingo Takagi
#!/bin/zsh
zmodload zsh/mathfunc
VERBOSE=1
STATE=washington
STATE_CENSUS=53
COUNTY=king
@BryantD
BryantD / gist:9e6714e733e2b60542cee17543a758b1
Created December 12, 2020 19:43
Scriptable: Get Random Unsplash Image
// Keywords to limit the Unsplash search; format is {keyword},{keyword}
// See https://source.unsplash.com
const keywords = 'nature'
// Refresh interval in hours
const refreshInterval = 6
// URL prototype to use for loading the image
const imgUrlPrototype = (keywords) => `https://source.unsplash.com/random/featured/?${keywords}`