Skip to content

Instantly share code, notes, and snippets.

@booo
Created May 8, 2014 19:42
Show Gist options
  • Select an option

  • Save booo/5978ace7ccd5c3ccf7d3 to your computer and use it in GitHub Desktop.

Select an option

Save booo/5978ace7ccd5c3ccf7d3 to your computer and use it in GitHub Desktop.

Revisions

  1. booo created this gist May 8, 2014.
    3 changes: 3 additions & 0 deletions owm_delete.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    _rev=$(curl "http://api.openwifimap.net/db/$1" \
    | python -c 'import json,sys;print(json.load(sys.stdin)["_rev"])')
    curl -X DELETE "http://openwifimap.net/openwifimap/$1?rev=$_rev"