metahoguet
clone your own copy | download snapshot

Snapshots | iceberg

Inside this repository

script.sh
text/x-sh

Download raw (556 bytes)

# Downloads the latest revision and get the line number of the given fig
curl -s http://pads.osp.kitchen/p/metamonday/export/txt | grep -n "beginfig($1)"


curl -s http://pads.osp.kitchen/api/1/getRevisionsCount\?padID\=metamonday\&apikey\=ZEojF6PGrOomABIXDf4igo9XfCdWaZL5 | python -c 'import sys, json; print(json.load(sys.stdin)["data"]["revisions"])'


curl -s http://pads.osp.kitchen/api/1/getText\?padID\=metamonday\&revision\=17186\&apikey\=ZEojF6PGrOomABIXDf4igo9XfCdWaZL5 | python -c 'import sys, json; print(json.load(sys.stdin)["data"]["text"])'