Skip to content

Instantly share code, notes, and snippets.

View whwright's full-sized avatar

Harrison Wright whwright

View GitHub Profile
@whwright
whwright / keybase.md
Created August 8, 2018 15:03
keybase.md

Keybase proof

I hereby claim:

  • I am whwright on github.
  • I am whwright (https://keybase.io/whwright) on keybase.
  • I have a public key ASB52p9i0OJdYrL7UqGbVEHOxJ3F2lSSi8dMW6S004aqrAo

To claim this, I am signing this object:

@whwright
whwright / download-hipchat-emoticons.sh
Last active February 8, 2018 03:14
download emoticons from hipchat
#!/bin/bash
# requires httpie and jq
# export HIPCHAT_API_TOKEN before run
# export OUT_DIR to override default output directory of "hipchat-emoticons"
# needs more work if you have > 1000 emoticons
OUT_DIR=${OUT_DIR:-"hipchat-emoticons"}
mkdir -p "${OUT_DIR}"
URLS=($(http "https://api.hipchat.com/v2/emoticon?auth_token=${HIPCHAT_API_TOKEN}&max-results=1000" | jq '.items[] | .url'))