I hereby claim:
- I am dpetzold on github.
- I am derrickpetzold (https://keybase.io/derrickpetzold) on keybase.
- I have a public key ASCgGdgnxQC6kwXBdVVRoIHnFGoHbXcykS7U-RI2f8HA3Qo
To claim this, I am signing this object:
docker run -v ~/.mitmproxy:/home/mitmproxy/.mitmproxy --rm -it -p 443:8080 mitmproxy/mitmproxy mitmdump --flow-detail 2 --ssl-insecure --mode reverse:https://s3.amazonaws.com:443 |
clear Mod1 | |
clear Mod4 | |
clear Control | |
keycode 64 = Alt_L | |
keycode 37 = Super_L | |
keycode 134 = Control_L | |
add Mod4 = Alt_L | |
add Mod1 = Control_L | |
add Control = Super_L |
import functools | |
import logging | |
import socket | |
import whois | |
logger = logging.getLogger(__name__) | |
@functools.lru_cache(maxsize=1) |
#!env python3 | |
""" | |
Given an ACM certificate ARN generate Terraform to create resources for an aws_acm_certificate_validation to pass. | |
$ generate-certificate-validation.py <certificate arn> | |
/************************** new.example.com ********************************/ | |
data aws_route53_zone example_com_zone { | |
name = "example.com." | |
} |
I hereby claim:
To claim this, I am signing this object:
import boto3 | |
import socket | |
import argparse | |
client = boto3.client('elb') | |
def find_elb_by_ip(ip): | |
paginator = client.get_paginator('describe_load_balancers') | |
response_iterator = paginator.paginate() |
#!/usr/bin/python3 | |
""" | |
A tool to convert camelcase field names in JSON to snake case. Helps with converting | |
AWS dumps to terraform HCL. For example: | |
``` | |
$ aws cloudfront get-distribution --id <id> --query Distribution > dist.json | |
$ python3 terraform_case.py dist.json dist.tf | |
``` |
# https://github.com/seebi/tmux-colors-solarized/blob/master/tmuxcolors-256.conf | |
set-option -g status-bg colour235 #base02 | |
set-option -g status-fg colour136 #yellow | |
set-option -g status-attr default | |
# set window split | |
bind-key v split-window -h | |
bind-key b split-window | |
# default window title colors |
#!/usr/bin/env python | |
# Reflects the requests from HTTP methods GET, POST, PUT, and DELETE | |
# Written by Nathan Hamiel (2010) | |
from http.server import HTTPServer, BaseHTTPRequestHandler | |
from optparse import OptionParser | |
class RequestHandler(BaseHTTPRequestHandler): | |
def do_GET(self): |
#!/usr/bin/python3 | |
import argparse | |
import sys | |
from base64 import b64encode | |
from string import Template | |
parser = argparse.ArgumentParser() | |
parser.add_argument('env_file', nargs='?', type=argparse.FileType('r'), default=sys.stdin) |