Skip to content

Instantly share code, notes, and snippets.

@jpomykala
jpomykala / add_cloudflare_ips.sh
Created February 9, 2018 23:21 — forked from dduvnjak/add_cloudflare_ips.sh
Add CloudFlare IP addresses to an EC2 Security Group using awscli
# first we download the list of IP ranges from CloudFlare
wget https://www.cloudflare.com/ips-v4
# iterate over the lines in the downloaded file
# make sure to set `--group-id` and `--port`; more details at http://docs.aws.amazon.com/cli/latest/reference/ec2/authorize-security-group-ingress.html
while read p; do aws ec2 authorize-security-group-ingress --group-id sg-e0000000 --protocol tcp --port 80 --cidr $p; done< ips-v4
// ==UserScript==
// @name wykop voice commander/inteligentny wypok xD ALPHA/DEMO
// @namespace pomidor.com
// @version 0.1
// @description sterowanie wykopem glosem
// @author KwadratowyPomidor2
// @require https://code.jquery.com/jquery-1.12.4.min.js
// @match https://www.wykop.pl/*
// @grant GM_setValue
// @grant GM_getValue