Skip to content

Instantly share code, notes, and snippets.

View lmarquine's full-sized avatar
🎯
Focusing

Leonardo Marquine lmarquine

🎯
Focusing
  • Jaraguá do Sul / SC - Brazil
  • 04:24 (UTC -03:00)
View GitHub Profile
@lmarquine
lmarquine / cache-clear.sh
Created August 3, 2019 18:31 — forked from lucien144/cache-clear.sh
Clear Cloudflare cache from command line.
#!/bin/bash
curl -X DELETE "https://api.cloudflare.com/client/v4/zones/{$ZONE_ID}/purge_cache" \
-H "X-Auth-Email: {$EMAIL}" \
-H "X-Auth-Key: {$API_KEY}" \
-H "Content-Type: application/json" \
--data '{"purge_everything":true}'