Skip to content

Instantly share code, notes, and snippets.

@jofish
jofish / gist:f3fc7ed57a24bd41c403d3cd0859a96e
Last active Apr 13, 2018
MOSS: extracting import / include statements to figure out what external tools we use
View gist:f3fc7ed57a24bd41c403d3cd0859a96e
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]
View keybase.md

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: