Skip to content

Instantly share code, notes, and snippets.

View twglomski's full-sized avatar
😀

Ted Glomski twglomski

😀
View GitHub Profile
@twglomski
twglomski / keybase.md
Created June 19, 2018 20:17
keybase.md

Keybase proof

I hereby claim:

  • I am twglomski on github.
  • I am tglom (https://keybase.io/tglom) on keybase.
  • I have a public key ASDmynpJx4AmIy9JTw-LoC9LL3iFkNNmXymtxqqbaUroDgo

To claim this, I am signing this object:

@twglomski
twglomski / gist:c5d4e867d5a1b03b52c259e0ae704e51
Last active September 7, 2017 21:18
Making Coldbrew the Moxe way

Supplies:

  1. a one-gallon jug
  2. a nut milk bag
  3. one pound of coffee, ground coarse (french-press style)

Directions:

Day one:

  1. add the ground coffee to the nut milk bag and tie the string around the opening on top
  2. add the coffee bag to the pitcher
  3. fill the jug almost all the way (you want some room so you can stir it, should be about 3 L water total)
@twglomski
twglomski / howto-get-private-text-file.txt
Created April 11, 2017 21:59
Returning the content of a text file from a private repository on GitHub
Git is good at grabbing entire repositories, but what if you just want a single file in a private repo? This snippet, given a path, will grab a download url for a given file, then download it.
Prereqs:
1. You have a personal access token saved as github_access_token.key. To get a personal access token, go here: https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/
2. jq is installed (On ubuntu: apt-get install jq)
Replace the path of "PrivateOrg/PrivateRepo" with the path to the private repo of your choice, and "/subfolder/targetfile.py" with the file path to the desired file inside the private repo.
curl -H "Authorization: token $(cat github_access_token.key)" $(curl -H "Authorization: token $(cat github_access_token.key)" https://api.github.com/repos/PrivateOrg/PrivateRepo/contents/subfolder/targetfile.py | jq '.download_url' -r)
@twglomski
twglomski / foods.txt
Last active December 9, 2023 09:40
Foods
aioli
almond
anchochili
anchovy
apple
artichoke
arugula
asparagus
avacado
babaganoush