Open Wonk

How to set AWS Bucket Policy to Public?

{ "Version": "2012-10-17", "Statement": [ { "Sid": "PublicReadGetObject", "Effect": "Allow", "Principal": "*", "Action": [ "s3:GetObject" ], "Resource": [ "arn:aws:s3:::BUCKET_NAME/*" ] } ] }Note that you need to modify the ARN's BUCKET_NAME to the name

Create a Fax Machine with Twilio

A blast from the past! Let's set up a fax machine in under 100 lines of code of Python. Before this code will work, head over to Twilio, buy a

Closures, Factories, and Currying in Go

package main import "fmt" func multiply(x, y int) int { return x * y } func double(x int) int { return multiply(x, 2) } func main() { fmt.Println(double(5)