Skip to content

Instantly share code, notes, and snippets.

@adamwight
adamwight / New batch.patch
Last active January 31, 2018 17:10 — forked from Ladsgroup/New batch.patch
Diff for templating
amsa@C235:~/editquality$ python differ.py "Japanese Wikipedia"
- ########################### Japanese Wikipedia ################################
+ ############################# Japanese Wikipedia ################################
? ++
-
# From https://quarry.wmflabs.org/query/9927
datasets/jawiki.sampled_revisions.40k_2016.json:
wget -qO- https://quarry.wmflabs.org/run/89016/output/0/json-lines?download=true > $@
@adamwight
adamwight / New batch.patch
Created January 31, 2018 17:09 — forked from Ladsgroup/New batch.patch
Diff for templating
amsa@C235:~/editquality$ python differ.py "Japanese Wikipedia"
- ########################### Japanese Wikipedia ################################
+ ############################# Japanese Wikipedia ################################
? ++
-
# From https://quarry.wmflabs.org/query/9927
datasets/jawiki.sampled_revisions.40k_2016.json:
wget -qO- https://quarry.wmflabs.org/run/89016/output/0/json-lines?download=true > $@
@adamwight
adamwight / create_virtualenv.md
Last active November 15, 2017 15:04 — forked from halfak/create_virtualenv.md
Setting up a python 3.x Virtual Environment

Step 0: Set up python virtualenv

virtualenv is a command-line utiltity that will allow you to encapsulate a python environment. Ubuntu calls the package that installs this utility "python-virtualenv". You can install it with $ sudo apt-get install python-virtualenv.

Step 1: Create the virtualenv directory

$ cd ~
$ mkdir venv
$ virtualenv -p python3 --system-site-packages ~/venv
@adamwight
adamwight / memuse.md
Created September 13, 2017 18:27 — forked from Eugeny/memuse.md
memuse - measure a total unique RAM taken by process tree