This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import argparse | |
import boto3 | |
import botocore | |
import sys | |
import csv | |
from itertools import repeat as r | |
import concurrent.futures | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
admin1234 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Compiles a Python package into a zip deployable on AWS Lambda | |
# | |
# - Builds Python dependencies into the package, using a Docker image to correctly build native extensions | |
# - Strip shared object files for smaller size ca. 20% reduction | |
# - Remove .py and use .pyc's = faster lambda and ca. 20% reduction | |
# - Remove tests, info (minor reduction, but why not) | |
# - Remove packages that will be available in AWS lambda env anyway (boto et al) ca. 50mb (uncompressed) reduction | |
# - Able to be used with the terraform-aws-lambda module |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# Description | |
# Bootstrap SSH Session to an SSM-managed instance | |
# by temporarily adding a public SSH key available on the local machine (ssh-agent or in ~/.ssh) | |
# | |
# | |
# Installation | |
# | |
# First run your eye over this script to check for malicious code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HTTP -> HTTPS | |
socat -v TCP4-LISTEN:443,reuseaddr,fork OPENSSL-CONNECT:20.190.142.66:443,verify=0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# Generate config file for chrome extension "aws-extend-switch-roles" | |
# https://github.com/tilfin/aws-extend-switch-roles | |
import boto3 | |
import argparse | |
import hashlib | |
from pprint import pprint | |
parser = argparse.ArgumentParser() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(cd ~/; git clone --recursive https://github.com/jessfraz/.vim.git .vim; ln -sf $HOME/.vim/vimrc $HOME/.vimrc; cd $HOME/.vim; git submodule update --init) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import zipfile | |
from itertools import product | |
filename = 'certs-20190403.zip' | |
pwd_len = 6 | |
from string import digits, ascii_uppercase, ascii_lowercase |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
FILENAME=wnea | |
STATE=VIC | |
LOCALITY=Melbourne | |
ORG=Vandelay | |
OU=WNEA | |
CN=wnea.sdpamp.internal | |
openssl genrsa -out $FILENAME.key | |
openssl req -new -key $FILENAME.key -x509 -days 3653 -out $FILENAME.crt -subj "/C=AU/ST=$STATE/L=$LOCALITY/O=$ORG/OU=$OU/CN=$CN" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# Store an Ansible vault credential in specified Tower instance | |
# Code: https://github.com/ansible/tower-cli | |
# Doc: https://tower-cli.readthedocs.io/en/latest/ | |
import argparse | |
import tower_cli | |
from tower_cli import get_resource | |
from tower_cli.conf import settings | |
from pprint import pprint |