Skip to content

Instantly share code, notes, and snippets.

@Mteigers
Mteigers / code.gs
Created May 29, 2013 18:49
Google App Script to allow other users in your organization (or elsewhere) to whitelist IP addresses that may have been blocked by CloudFlare's firewall.
/**
* CloudFlare Whitelister by Peter Olds
*
* Peter Olds for Kyäni, Inc. (c) 2013
*
**/
var INCOMING_LABEL = 'CloudFlare Whitelist Request'; // This is the label that the script loops through.
var ARCHIVE_REQUESTS = true; // Would you like to save IP Allow requests?
var COMPLETE_LABEL = '[COMPLETE] ' + INCOMING_LABEL; // Once a request is complete if ARCHIVE_REQUESTS is true it is assigned this label.
var ALLOW_FROM_EXTERNAL = true; // For security reasons you may not want people outside your organization whitelisting IP's (if you use the provided Gmail Filter this is handled automatically)
@Mteigers
Mteigers / allow
Created May 21, 2013 23:54
CSF Allow AND Ignore Cloudflare IPv4 IP's.
for i in `curl https://www.cloudflare.com/ips-v4`; do csf -a $i; done

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"