Skip to content

Instantly share code, notes, and snippets.

@NickCraver
Created March 19, 2015 23:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NickCraver/c9e71f89ad6f56657b71 to your computer and use it in GitHub Desktop.
Save NickCraver/c9e71f89ad6f56657b71 to your computer and use it in GitHub Desktop.
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