Skip to content

Instantly share code, notes, and snippets.

View khanakia's full-sized avatar
🎯
Focusing

Aman Bansal khanakia

🎯
Focusing
View GitHub Profile
@colinwilson
colinwilson / cf_clr_cache_dev_mode.sh
Created August 15, 2018 03:27
CloudFlare: Clear cache and enable development mode via API
email=colin@wyveo.com
tkn=<API KEY>
domain=wyveo.com
zone=$(curl -s -X GET "https://api.CloudFlare.com/client/v4/zones?name=${domain}&status=active&page=1&per_page=20&order=status&direction=desc&match=all" \
-H "X-Auth-Email: ${email}" \
-H "X-Auth-Key: ${tkn}" \
-H "Content-Type: application/json")
zone=${zone:18:32}