Skip to content

Instantly share code, notes, and snippets.

@jofish
jofish / pocketsaver.py
Last active March 17, 2024 15:15
Go through your Pocket exports and save them locally so they can be indexed by Spotlight or fed into your personal LLM or whatnot
#jofish's quick and filthy script to download your pocket saves to keep locally
#so they can be indexed by spotlight or whatever and show up when you search
#
#to begin, download your pocket saves from https://getpocket.com/export (you'll need to be logged in)
#
#todo: make that automatic so this can run on a cron job
#example line of pocket save file
#<li><a href="https://www.saveur.com/xo-sauce-hopscotch-oakland/" time_added="1710236753" tags="">The Secrets of Making XO Sauce, the Magic Condiment of China</a></li>
@jofish
jofish / gist:f3fc7ed57a24bd41c403d3cd0859a96e
Last active April 13, 2018 17:39
MOSS: extracting import / include statements to figure out what external tools we use
so first you want to download all the code from mozilla's repo
(there may be better ways to do this, like using the search api interface, but let's be dumb for now)
right now i'm doing this by just pulling all the python files as an example
mkdir mozilla-github
cd mozilla-github
curl -i https://api.github.com/search/code?q=include+in:file+org:mozilla+language:python python -c $'import json, sys, os\nfor repo in json.load(sys.stdin): os.system("git clone --depth 1" + repo["clone_url"])'
[see here for discussion of the right thing there: https://gist.github.com/caniszczyk/3856584]

Keybase proof

I hereby claim:

  • I am jofish on github.
  • I am jofish (https://keybase.io/jofish) on keybase.
  • I have a public key whose fingerprint is C0F8 0586 10BE F095 26F4 E9B2 63C9 40E6 8FC9 48EC

To claim this, I am signing this object: