Skip to content

Instantly share code, notes, and snippets.

View memiah-steve's full-sized avatar

Steve memiah-steve

  • Memiah Limited
  • UK
View GitHub Profile
@memiah-steve
memiah-steve / aws-ses-smtp-password.sh
Created May 17, 2016 13:37
Bash script to convert AWS Secret Access Key to an Amazon SES SMTP password.
#!/usr/bin/env bash
# Convert AWS Secret Access Key to an Amazon SES SMTP password
# using the following pseudocode:
#
# key = AWS Secret Access Key;
# message = "SendRawEmail";
# versionInBytes = 0x02;
# signatureInBytes = HmacSha256(message, key);
# signatureAndVer = Concatenate(versionInBytes, signatureInBytes);
# smtpPassword = Base64(signatureAndVer);
@memiah-steve
memiah-steve / aws-route53-delete-hosted-zones.sh
Created April 18, 2018 13:19
AWS route53 Delete all hosted zones (bash, aws cli, jq)
#!/bin/bash
# AWS route53 Delete all hosted zones.
# Requires aws cli, jq
# chmod u+x ~/aws-route53-delete-hosted-zones.sh
# AWS profile to use.
PROFILE="default"
# Loop through each Hosted Zone.
while read id