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
#!/bin/bash | |
# Easily test mail sending without anything but netcat. | |
# Instead of processing responses, it just slows down lines | |
# it sends and assumes it got a valid response. | |
FROM="$1" | |
TO="$2" | |
# Change these as appropriate. | |
EHLO="mail.example.com" |
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
# encrypted AWS credentials | |
# call this script via source command, such as: | |
# . awscreds.sh | |
# to include AWS environment credentials in your interactive shell to | |
# run AWS tools. | |
# | |
# ENCRYPTED_VARS is a base64-encoded, AES-encrypted set of exported | |
# AWS_ACCESS_KEY and AWS_SECRET_KEY. You can encode them this way: | |
# | |
# openssl aes-256-cbc -salt -a <<EOF |
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
#!/usr/bin/python | |
import json | |
import sys | |
# take json from stdin, from source such as https://ip-ranges.amazonaws.com/ip-ranges.json | |
# and turn it into an AWS security group using Ansible | |
region = 'us-east-1' | |
header_str = """--- | |
- hosts: 127.0.0.1 |