Skip to content

Instantly share code, notes, and snippets.

View jghaines's full-sized avatar

Jason Haines jghaines

  • Sydney, Australia
View GitHub Profile
@jghaines
jghaines / Delete_Default_VPC_Resources.py
Created February 24, 2020 23:23
Delete Default VPC Resources
#!/usr/bin/env python
import argparse
import boto3
import sys
from botocore.exceptions import ClientError
EXCLUDE_REGIONS = [ 'us-gov-west-1', 'cn-north-1' ] # don't try to delete VPCs in these regions
class DefaultVpc(object):
@jghaines
jghaines / Makefile
Last active January 21, 2020 21:17
Makefile for smart sam build
INPUT_TEMPLATE_FILE := mytemplate.sam.yaml
ifndef PACKAGE_BUCKET
$(error PACKAGE_BUCKET must be defined (as environment variable))
endif
OUTPUT_TEMPLATE_FILE := __generated__.yaml
SHELL = /bin/bash
#!/bin/bash
# wrapper around "aws cloudformation" CLI to ignore certain pseudo-errors
# aws cloudformation deploy exits with 255 for "No changes to deploy" see: https://github.com/awslabs/serverless-application-model/issues/71
# this script exits with 0 for that case
STDERR=$(( aws cloudformation "$@" ) 2>&1)
ERROR_CODE=$?
echo ${STDERR} 1>&2
@jghaines
jghaines / reinvent.md
Created December 3, 2016 10:31 — forked from henrysher/reinvent.md
link for reinvent slides
@jghaines
jghaines / gist:5430050
Created April 21, 2013 15:49
HW3 error: On Time AutograderSubprocess error: *** FATAL: invalid cucumber results
My cucumber tests all pass when I run them locally.
When I submit, I get the error:
On Time AutograderSubprocess error: *** FATAL: invalid cucumber results
Did anyone else have this error? Is a problem with the autograder, or something in my code?