https://ip-ranges.amazonaws.com/ip-ranges.json
jq -r '.prefixes[] | select(.service=="EC2") | .ip_prefix' ip-ranges.json | awk 'sub("$", "\r")' > aws-ec2-ip-ranges.txt
Upload aws-ec2-ip-ranges.txt
https://ip-ranges.amazonaws.com/ip-ranges.json
jq -r '.prefixes[] | select(.service=="EC2") | .ip_prefix' ip-ranges.json | awk 'sub("$", "\r")' > aws-ec2-ip-ranges.txt
Upload aws-ec2-ip-ranges.txt
function kubectl-secrets () { | |
kubectl get secrets $@ -ojson | jq '{name: .metadata.name, data: .data | map_values(@base64d)}' | |
} |
# Export AWS Route53 Domains to a CSV for Excel people | |
# | |
# Usage: | |
# | |
# python3 <(wget -q -O - https://gist.github.com/estahn/33ee9f0ecede6416a168489a7a24ee24/raw/5eef9122e573ff23bcd40732856565c37c708efd/domains.py) | |
# | |
from itertools import chain, starmap | |
import pandas as pd | |
from pandas.io.json import json_normalize #package for flattening json in pandas df |
#!/bin/bash | |
host=$1 | |
user=$2 | |
password=$3 | |
echo '' > $0.queue | |
databases=$(mysql -h $host -u $user -p$password -e "show databases" -sN | grep -v information_schema | grep -v mysql | grep -v sys) | |
for database in $databases; do | |
for table in $(mysql -h $host -u $user -p"$password" -N -B -e "show tables from \`$database\`"); do |
#!/usr/bin/env bash | |
_process_user() { | |
_detach_policies $1 & | |
_delete_access_keys $1 & | |
wait | |
_delete_user $1 & | |
} | |
_detach_policies() { |
I hereby claim:
To claim this, I am signing this object:
#!/bin/sh | |
KUBECTL=$(which kubectl) | |
echo "CURRENT VERSION:" | |
kubectl version | |
echo "" | |
curl -o ${KUBECTL} -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/darwin/amd64/kubectl | |
chmod 755 ${KUBECTL} |
[Unit] | |
Description=Metabase server | |
After=syslog.target | |
After=network.target | |
[Service] | |
WorkingDirectory=/home/data/tools/metabase | |
ExecStart=/usr/bin/java -jar /home/data/tools/metabase/metabase.jar | |
Environment=MB_JETTY_PORT=8080 | |
User=data |
var handler = require('lambda-formation').resource.create; | |
var util = require('lambda-formation').util; | |
var aws = require("aws-sdk"); | |
var uuidV4 = require('uuid/v4'); | |
/** | |
* Creates a Hosted Zone and supports delegation sets | |
* | |
* Type: "AWS::Route53::HostedZone" | |
* Properties: |
--- | |
AWSTemplateFormatVersion: '2010-09-09' | |
Metadata: | |
Version: 1 | |
LastUpdated: 2017-05-16 16:58:35 | |
UpdatedBy: estahn | |
Comments: Generated by cfn-ansible | |
Description: > |