Skip to content

Instantly share code, notes, and snippets.

View bradleybeddoes's full-sized avatar
👋
Hello!

Bradley Beddoes bradleybeddoes

👋
Hello!
View GitHub Profile
@bradleybeddoes
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 https://raw.githubusercontent.com/docker/docker/master/contrib/completion/zsh/_docker
$ docker run<tab>
-- images --
0a89c74fff6c -- latest in bradleybeddoes/docker-whale
-- repositories --
bradleybeddoes/docker-whale
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 (https://keybase.io/bradleybeddoes) on keybase.
  • I have a public key ASARixgMEJF6IPvIDu4tCAE8KJ6H0GVdBlBWGsf99zCffgo

To claim this, I am signing this object:

@bradleybeddoes
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
end
@bradleybeddoes
bradleybeddoes / .0.readme.md
Last active January 3, 2016 22:58
My DNSMasq configuration on OSX

Developing on OSX with DNSMasq

Overview

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
bradleybeddoes / runMe.java
Created November 13, 2012 23:39 — forked from anonymous/runMe
vargs to vargs
import java.io.PrintStream;
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
Иван Петров
@bradleybeddoes
bradleybeddoes / fr-config.groovy
Created September 5, 2012 22:22
SP configuration in FR
serviceproviders {
shib23 {
displayName = "Shibboleth Service Provider (2.3.x)"
selected = true
entitydescriptor = '$host/shibboleth'
acs {
post {
uri = '$host/Shibboleth.sso/SAML2/POST'
index = 1
}
@bradleybeddoes
bradleybeddoes / createAAFBaseEnvironment.groovy
Created August 31, 2012 01:49
2.1.2 FR createAAFBaseEnvironment.groovy temp fix
import aaf.fr.foundation.*
/*
Bootstrap - Step 2
For federations other than the AAF use this as a starting point for initial FR population.
You'll probably want to customise a lot of the below.
*/
// Entities Descriptor
Microsoft Windows 7 Home Premium 64bit OEM $92.50 $8.41 $92.50
Fractal Design Define R3 Case Black USB3.0 $138.00 $12.55 $138.00
Seagate SATA3 2TB 7200RPM Barracuda 64mb Cache $113.00 $10.27 $113.00
Power Colour AX7950-3GBD5-2DHV2 HD7950,3G DDR5,DVI,HDMI,2XminiDISPLAY,800 Mhz, $369.00 $33.55 $369.00
Total $64.77 $712.50