Skip to content

Instantly share code, notes, and snippets.

View ehashman's full-sized avatar

Elana Hashman ehashman

View GitHub Profile
#!/bin/bash
if [ $# != 1 ]; then
echo "yoink.sh: Usage: yoink <youtube link>"
exit 1
fi
source $HOME/.virtualenvs/youtube-dl/bin/activate
output=$(youtube-dl -x -o "$HOME/music/YouTube/%(title)s-%(id)s.%(ext)s" "$1" 2>&1 | tee /dev/tty)
@ehashman
ehashman / sku_specs.py
Created August 19, 2020 18:19
Get capacity information about Azure VM SKUs from CLI dump.
import json
import pprint
SUPPORTED_SKUS = [
"Standard_D16as_v4",
"Standard_D16s_v3",
"Standard_D2s_v3",
"Standard_D32as_v4",
"Standard_D32s_v3",
"Standard_D4as_v4",
#!/bin/bash
#
# .git/hooks/pre-commit
if [[ -n `gofmt -s -l pkg cmd test` ]]; then
gofmt -s -d pkg cmd test
exit 1
fi
@ehashman
ehashman / pre-commit.sh
Created April 26, 2019 20:40
pre-commit hook to run gofmt
#!/bin/bash
#
# Save me as
# .git/hooks/pre-commit
if [[ -n `gofmt -s -l pkg cmd test` ]]; then
gofmt -s -d pkg cmd test
exit 1
fi
@ehashman
ehashman / keybase.md
Created September 20, 2017 19:14
Keybase verification

Keybase proof

I hereby claim:

  • I am ehashman on github.
  • I am ehashman (https://keybase.io/ehashman) on keybase.
  • I have a public key whose fingerprint is 7D0B 1775 E262 6DD8 99D2 0BED DECA 0C9D 30ED 9FE3

To claim this, I am signing this object: