Skip to content

Instantly share code, notes, and snippets.

@mbailey
mbailey / gist:c43671484638635b5c742c67cee53ad2
Created June 23, 2017 04:42
[feature request] stack-verify functionality
At work, we aim to use CloudFormation stacks for managing AWS Resources wherever possible.
Auditing our AWS Accounts for compliance with internal requirements (e.g. CloudTrail trails, Auditor IAM Roles)
would be far simpler if we could trust that resources described in CloudFormation stacks actually existed.
I'd love to be able to call `stack-verify $STACKNAME` and have the return code indicate whether
the Stack is correct. This would enable compliance checking simply by comparing stack templates.
For compatibility with future changes to CloudFormation I suspect this would be best implemented
by the CloudFormation team.
@mbailey
mbailey / yamlise.vim
Created May 30, 2017 09:57
yamlise - see YAML when editing JSON files in VIM
" yamlise - see YAML when editing JSON files in vim.
"
" Created for people with JSON phobia, this should
" only be used when all attempts to master JSON
" have failed. http://www.json.org/
"
" I hope it isn't too late for these folks!
" 'Please. This is critical for us.'
" https://github.com/aws/aws-cli/issues/2275#issuecomment-277829948
"
@mbailey
mbailey / resource.md
Last active November 9, 2015 20:20
[Feature Request] resource level policies for API Gateway

[Feature Request] Resource Level Policies for API Gateway

The CBDE team is investigating how to put authentication in front of out Docker Registry. Ideally we would use the same system to authenticate people and EC2 instances. We would like to leverage IAM to achieve this.

Our goal is to create a short lived token dispenser that responds to version 4 signed requests with a token containing:

  • the ARN of the caller
@mbailey
mbailey / gist:c9f90e020ba9e5027279
Created November 30, 2014 12:20
Dominic Main still lives!
Domain Name: foster-care.com.au
Last Modified: 29-Nov-2014 15:49:30 UTC
Status: pendingTransfer (Client requested transfer)
Registrar Name: NetRegistry
Registrant: BAILEY, MICHAEL THOMAS
Eligibility Type: Sole Trader
Eligibility ID: ABN 48505086173
Registrant Contact ID: BAMI1369
@mbailey
mbailey / gist:5211730
Last active December 15, 2015 05:49
Steps to setup a new Mac
# App Store - Downloads and Updates
xcode -> command line tools
# Download & Install
iterm
chrome
transmission
vlc (disable subtitles)
macgpg (enable unsigned apps under Security in System Preferences)
@mbailey
mbailey / gist:1549709
Created January 2, 2012 07:28
Feeling let down by Aktimate speakers/support
MIME-Version: 1.0
Received: by 10.227.207.140 with HTTP; Thu, 10 Feb 2011 16:23:37 -0800 (PST)
X-Originating-IP: [1.146.242.232]
In-Reply-To: <000d01cbc977$04990720$0dcb1560$@com.au>
References: <AANLkTim69ESU5w5xr4teK0Jf+kYqt0GsA1mJi+yufhSQ@mail.gmail.com>
<004701cbbea7$1c01ffa0$5405fee0$@com.au>
<AANLkTinQkaDmhmpo55p2XnkJ+td9V-wZmoc_u76fVNaT@mail.gmail.com>
<AANLkTimRi3epZuRCaP856SrF-1_zw+rPTRLhP846ACKp@mail.gmail.com>
<004c01cbc8e8$867fc740$937f55c0$@com.au>
@mbailey
mbailey / gist:1531950
Created December 29, 2011 04:43
Should I not use ruby to add dollar values?
mbailey@oasis:~ $ irb
1.9.2p290 :001 > 120.82+15.96+135.50
=> 272.28
1.9.2p290 :002 > 120.82+15.96+135.51
=> 272.28999999999996
@mbailey
mbailey / gist:1102495
Created July 24, 2011 10:43
you must be exhausted
Date: Tue, 12 Jul 2011 04:51:38 -0700 (PDT)
From: Cornelius special pal <youareasneakymofo-dodgy@yahoo.com.au>
Subject: Re: LDH - Lost Dogs Home new operations manager (2IC)
To: Mike Bailey <mike@bailey.net.au>
Oh I shall keep in touch, particularly if I would like to see inaction. I mean, wow, two whole blogs in 6 months. That is quite an effort. You must be exhausted
@mbailey
mbailey / gist:1102470
Created July 24, 2011 09:59
Email from anonymous containing dubious claims
Date: Sat, 9 Jul 2011 22:17:40 -0700 (PDT)
From: Cornelius special pal <youareasneakymofo-dodgy@yahoo.com.au>
Subject: LDH - Lost Dogs Home new operations manager (2IC)
To: mike@bailey.net.au
Hi Mike,
You don't know me, but your research skills are unsurpassed. I thought you might like a kick start to the new appointment at LDH. this is all in the public domain.
Things you should know about the new LDH "Vet" Mauricio Santos Bauer.
@mbailey
mbailey / gist:1086308
Created July 16, 2011 12:31
cap deprec:db:backup
[mbailey@island gs (master)]$ cap deprec:db:backup
triggering load callbacks
* executing `deprec:connect_canonical_tasks'
triggering start callbacks for `deprec:mysql:backup'
* executing `multistage:ensure'
*** Defaulting to `uat'
* executing `uat'
* executing `deprec:mysql:backup'
* executing "cd /srv/gemstalker/current && RAILS_ENV=production bundle exec rake deprec:db:backup"
servers: ["uat.int.failmode.com"]