Skip to content

Instantly share code, notes, and snippets.

View bradleybeddoes's full-sized avatar

Bradley Beddoes bradleybeddoes

View GitHub Profile
ResourceInitializationError: failed to validate logger args: : signal: killed

This was a new error for me within starting up a task within an AWS Fargate backed service.

It ended up being quite a simple fix, though non obvious initially. I've explicitly disabled NAT in all of our VPC as part of our HIPAA journey so I needed to add a CloudwatchLogs VPC endpoint using the CDK:

Keybase proof

I hereby claim:

  • I am bradleybeddoes on github.
  • I am bradleybeddoes ( on keybase.
  • I have a public key ASARixgMEJF6IPvIDu4tCAE8KJ6H0GVdBlBWGsf99zCffgo

To claim this, I am signing this object:

bradleybeddoes / docker.zsh
Last active May 11, 2023 11:56
Docker completion for Zsh + prezto
$ docker run<tab>
-- no matches found --
$ curl -fLo ~/.zprezto/modules/completion/external/src/_docker
$ docker run<tab>
-- images --
0a89c74fff6c -- latest in bradleybeddoes/docker-whale
-- repositories --
<?xml version="1.0" encoding="UTF-8"?>
<afp:AttributeFilterPolicyGroup id="ShibbolethFilterPolicy"
xsi:schemaLocation="urn:mace:shibboleth:2.0:afp classpath:/schema/shibboleth-2.0-afp.xsd
urn:mace:shibboleth:2.0:afp:mf:basic classpath:/schema/shibboleth-2.0-afp-mf-basic.xsd
urn:mace:shibboleth:2.0:afp:mf:saml classpath:/schema/shibboleth-2.0-afp-mf-saml.xsd">
bradleybeddoes / 0.readme.txt
Created April 12, 2014 09:22
Textual App script for announcing iTunes current track
Hacked on from original at
Save np.scpt at ~/Library/Application Scripts/com.codeux.irc.textual/np.scpt
Removed stuff I didn't need and fixed a bug
np.scpt:160:165: script error: Expected “then”, etc. but found identifier. (-2741) Y0
bradleybeddoes / 0.bash
Last active August 29, 2015 13:57
Add the ability to checkout Github pull request with number XXXX as local branches across all projects you maintain
$> git config --add remote.origin.fetch "+refs/pull/*/head:refs/remotes/origin/pull/*"
$> cd ~/development/myproj
~/development/myproj [develop] $> git checkout pull/XXXX
Branch pull/XXXX set up to track remote branch pull/XXXX from origin.
Switched to a new branch 'pull/XXXX'
~/development/myproj [pull/XXXX $] $>
bradleybeddoes /
Last active January 3, 2016 22:58
My DNSMasq configuration on OSX

Developing on OSX with DNSMasq


Allows multiple VirtualBox nodes to operate within a local DNS context and supports failover for DNS servers when moving to a network (QUT in my case) that does not support resolution of DNS through the their firewall.

By default Google public DNS servers are utilised for speed, security and sane results.

Another benefit of this approach is that I no longer need to run a bind instance locally which seems to break between major OSX revisions and was more of a pain to configure.

bradleybeddoes / web.rb
Last active August 18, 2016 02:39
Example AAF JWT code on Heroku
require 'sinatra'
require 'json'
require 'json/jwt'
use Rack::Session::Pool, :expire_after => 3600
get '/' do
erb :index
bradleybeddoes /
Created November 13, 2012 23:39 — forked from anonymous/runMe
vargs to vargs
import java.text.SimpleDateFormat;
public class runMe {
public static void main(String[] args) {
my_printf("Hello %s\n", "Dave");
groovy> s = new String(request.getAttribute('cn').bytes)
groovy> println s
Иван Петров