Skip to content

Instantly share code, notes, and snippets.

View dvejmz's full-sized avatar
🐧
Page faults left and right

David Jimenez dvejmz

🐧
Page faults left and right
View GitHub Profile
@dvejmz
dvejmz / verify-ses-email.sh
Last active May 29, 2021 18:37
Auto-verify SES email address upon launching localstack
#!/bin/bash
set -eo pipefail
## Mount this file in /docker-entrypoint-initaws.d so that localstack runs it
## as part of its entrypoint routine.
echo 'Running AWS verify identity command. See: https://github.com/localstack/localstack/issues/339'
aws ses verify-email-identity --email-address ${EMAIL_ADDRESS} --region ${AWS_REGION} --endpoint-url=http://localhost:4579
echo "Verified ${EMAIL_ADDRESS}"
@dvejmz
dvejmz / mandelbrot.go
Created April 29, 2017 21:38
Mandelbrot fractal implementation in Go as described in The Go Programming Language, Kernighan et al.
package main
import (
"image"
"image/color"
"image/png"
"math"
"math/cmplx"
"os"
)