This file contains 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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "AllowAllPermissionsExceptIAMUserOrRole", | |
"Effect": "Allow", | |
"NotAction": [ | |
"iam:CreateUser", | |
"iam:AttachUserPolicy", | |
"iam:PutUserPolicy", |
This file contains 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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "AllowAllPermissionsExceptIAMUserOrRole", | |
"Effect": "Allow", | |
"NotAction": [ | |
"iam:CreateUser", | |
"iam:AttachUserPolicy", | |
"iam:PutUserPolicy", |
This file contains 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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "AllowAllPermissionsExceptIAMUserOrRole", | |
"Effect": "Allow", | |
"NotAction": [ | |
"iam:CreateUser", | |
"iam:AttachUserPolicy", | |
"iam:PutUserPolicy", |
This file contains 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
import ultra_rest_client | |
import boto3 | |
from botocore.exceptions import ClientError | |
def create_record(rname, rtype, ttl, resource_record_list): | |
record = { | |
'Action': 'UPSERT', | |
'ResourceRecordSet': { | |
'Name': rname, |
This file contains 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
import sys | |
import json | |
def main(PIPED_IN): | |
""" | |
""" | |
a = json.loads(PIPED_IN) | |
env_var_values = ["AWS_ACCESS_KEY_ID", "AWS_SECRET_ACCESS_KEY", "AWS_SESSION_TOKEN"] | |
sts_values = ["AccessKeyId", "SecretAccessKey", "SessionToken"] |
This file contains 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
import aiohttp | |
import asyncio | |
import async_timeout | |
import gzip | |
import os | |
import json | |
import boto3 | |
import urllib.parse | |
import botocore |
This file contains 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
''' | |
MIT License | |
Copyright (c) 2019 Ben Cornelius | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is |
This file contains 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
brew install wget | |
brew install cask | |
export HOMEBREW_CASK_OPTS="--appdir=/Applications" | |
brew cask install \ | |
google-chrome \ | |
sublime-text \ | |
dropbox \ | |
firefox \ | |
spotify \ |
This file contains 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
# --------------------------------------------------------------------------- | |
# | |
# Description: This file holds all my BASH configurations and aliases | |
# | |
# Sections: | |
# 1. Environment Configuration | |
# 2. Make Terminal Better (remapping defaults and adding functionality) | |
# 3. File and Folder Management | |
# 4. Searching | |
# 5. Process Management |
NewerOlder