Skip to content

Instantly share code, notes, and snippets.

View fcomparini's full-sized avatar

Felipe Comparini fcomparini

View GitHub Profile
@Ara4Sh
Ara4Sh / cloudflare-failover.sh
Created October 12, 2016 13:49
CloudFlare A records failover script using CloudFlare api v4 (https://api.cloudflare.com) required jq and curl to run.
#!/bin/bash
# Copyright (C) 2016 Arash Shams <https://github.com/Ara4Sh>.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
// pages are purged when
// on userApproval in UserModel.approveCeleb
// on user update denies.js
var cloudflare_api_interface = "https://www.cloudflare.com/api_json.html";
var cloudflare_token = "YOUR_TOKEN";
var cloudflare_email = "YOUR_CLOUDFLARE_EMAIL";
var domain = 'FILL_IN_YOUR_DOMAIN';
var urls_to_purge = [
@andrewchee
andrewchee / shell
Created August 5, 2012 02:47 — forked from trekdemo/shell
Diff files selected in the TextMate drawer with Kaleidoscope
sudo ln -s /usr/local/bin/ksdiff /usr/bin/ksdiff