Skip to content

Instantly share code, notes, and snippets.

@NickCraver
Created Mar 19, 2015
Embed
What would you like to do?
pre-push git hook for CloudFlare purging
#!/bin/sh
sleep 10s && curl https://www.cloudflare.com/api_json.html \
-d 'a=fpurge_ts' \
-d 'tkn=<insert API token>' \
-d 'email=<insert email>' \
-d 'z=<insert domain>' \
-d 'v=1' &
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment