Skip to content

Instantly share code, notes, and snippets.

View meereeum's full-sized avatar

Miriam Shiffman meereeum

View GitHub Profile
@meereeum
meereeum / zoom.sh
Last active January 21, 2021 21:31
~ automagical meeting scheduler ~ ///// 1. edit schedule (DATETIME2ID), 2. source from bash profile, 3. no more rummaging around for meeting IDs! just: $ zoom
#!/bin/bash
zoom() {
declare -A DATETIME2ID=(
[mon 4pm]=555123455 # meeting A
[thurs 11:30am]=555474747 # meeting B
[thurs 7pm]=555444777 # meeting C
[4pm]=555432100 # daily meeting D (superseded by A)
)
@meereeum
meereeum / h5tree.sh
Last active February 11, 2020 22:57
tree + h5ls
#!/bin/bash
usage () {
cat <<HELP_USAGE
usage: h5tree [OPTIONS] file[/OBJECT]
OPTIONS
-h, -?, --help Print a usage message and exit
-L level, -P pattern, etc Any flag accepted by \`tree\`
#!/usr/local/bin/bash
# a million random digits with 100,000 normal deviates
[ -f digits.txt ] || (
wget https://www.rand.org/content/dam/rand/pubs/monograph_reports/MR1418/MR1418.digits.txt.zip &&
unzip MR1418.digits.txt.zip)
rando=$( cat digits.txt | cut --complement -f1 -d' ' | xargs | sed 's/ *//g' )
for n in {00..99}; do
@meereeum
meereeum / arxivate.sh
Last active December 4, 2019 23:39
bash util for making your tex arXivable
#!/usr/bin/env bash
# this script gets your latex ready for arxiv submission by
# (1) sanitizing your *.tex of embarrassing comments,
# (2) arxiv-proofing filenames, &
# (3) gzipping everything needed into a convenient .tar.gz
HELPFLAG="-h"
FIGFLAG="-d"
OUTFLAG="-o"