I hereby claim:
- I am pkazmierczak on github.
- I am pkazmierczak (https://keybase.io/pkazmierczak) on keybase.
- I have a public key whose fingerprint is 8249 E5DB A08C 3726 18E0 D50E CB0E 4C33 F6A3 9502
To claim this, I am signing this object:
import copy | |
import json | |
from urllib.request import urlopen | |
import boto3 | |
def handle(event, context): | |
response = urlopen('https://ip-ranges.amazonaws.com/ip-ranges.json') | |
json_data = json.loads(response.read()) |
I hereby claim:
To claim this, I am signing this object:
--- | |
AWSTemplateFormatVersion: '2010-09-09' | |
Description: CounterStrike Global Offensive linux server template | |
Mappings: | |
AWSRegion2AMI: | |
eu-central-1: | |
AMI: ami-26c43149 | |
eu-west-1: | |
AMI: ami-ed82e39e | |
Parameters: |
package main | |
import ( | |
"fmt" | |
"time" | |
) | |
var c = make(chan int) | |
func factorial(name string, number int) { |
import trollius as asyncio | |
from trollius import From | |
@asyncio.coroutine | |
def factorial(name, number): | |
f = 1 | |
for i in range(2, number + 1): | |
print("Task %s: Compute factorial(%d)..." % (name, i)) | |
yield From(asyncio.sleep(1)) |
from troposphere import Template | |
from troposphere.waf import IPSet | |
t = Template() | |
t.add_description("CF Template for setting IP ranges for whitelisting on the WAF.") | |
Whitelist1 = t.add_resource(IPSet( | |
"internaladdresses", | |
Name="Internal_addresses", |
import asyncio | |
@asyncio.coroutine | |
def factorial(name, number): | |
f = 1 | |
for i in range(2, number + 1): | |
print("Task %s: Compute factorial(%d)..." % (name, i)) | |
yield from asyncio.sleep(1) | |
f *= i |
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "Stmt1452600517000", | |
"Effect": "Allow", | |
"Action": [ | |
"s3:*" | |
], | |
"NotResource": [ |
from troposphere import (Base64, Join, FindInMap, | |
Parameter, Ref, Tags, Template) | |
import troposphere.ec2 as ec2 | |
# Mappings of OpenVPN AMIs | |
OPENVPN_AMI = { | |
'ap-northeast-1': {"AMI": 'ami-5ea72b5e'}, # Asia Pacific (Tokyo) | |
'ap-southeast-1': {"AMI": 'ami-365c5764'}, # Asia Pacific (Singapore) | |
'ap-southeast-2': {"AMI": 'ami-831d51b9'}, # Asia Pacific (Sydney) |
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Description": "OpenVPN server template", | |
"Mappings": { | |
"AWSRegion2AMI": { | |
"ap-northeast-1": { | |
"AMI": "ami-5ea72b5e" | |
}, | |
"ap-southeast-1": { | |
"AMI": "ami-365c5764" |