Skip to content

Instantly share code, notes, and snippets.

@edwinakatosh
edwinakatosh / fizz_buzz.go
Last active October 12, 2018 00:52
FizzBuzz in Go
package main
import (
"fmt"
)
func main() {
for i := 1; i <= 100; i++ {
if i%(3*5) == 0 {
fmt.Printf("%d: FizzBuzz\n", i)
@edwinakatosh
edwinakatosh / s3_gzip_cloudfront.sh
Last active July 26, 2019 06:08
Gzip static website, upload to S3 and Invalidate cached Cloudfront files
#!/usr/bin/env bash
set -ex
if [ "$#" -ne 1 ]; then
echo "missing bucket name parameter"
exit 1;
fi
BUCKET=$1