Skip to content

Instantly share code, notes, and snippets.


Philip Potter philandstuff

View GitHub Profile
philandstuff /
Created Sep 16, 2020
Generate cloudformation from dhall

Example Dhall Cloudformation stuff

Call it like this:

dhall text <<< './sqs-broker-template.dhall "myQueueName" (toMap {tag1 = "foo", tag2 = "bar"}) False'

(change False to True for a FIFO queue)

philandstuff / metrics.yaml
Created Aug 9, 2019
configure istio to collect custom metrics
View metrics.yaml
kind: metric
app: canary
owner: canary-hack
name: requestcountbypath
namespace: sandbox-main
View foo.go
package main
import (
func main() {
philandstuff /
Created Jan 31, 2019
london concourse user group jan 2019

Pipelines done right

  • Diego Lemos @dlresende, Derik Evangelista @kirederik
  • this talk is about pipelines and how you can use best practices to write better pipelines
  • who here works with concourse? [lots of hands]



philandstuff / new-targets-config.yml
Last active Sep 24, 2018
Prototype for how we might do prometheus targets from the service broker in a better way
View new-targets-config.yml
- job_name: 'paas'
scheme: https
- targets: ['guid:0','guid:1']
job: foo
space: my-space
philandstuff /
Last active Aug 23, 2018
Lead Developer London 2018

Lead dev 2018

Welcome - Meri Williams

  • @TheLeadDev #LeadDevLondon
  • white coat captioning - @whitecoatcapxg

The Container Operator’s Manual - Alice Goldfuss

  • happy pride! it’s like the world cup for people with fashion sense
  • who am I?
View transfer.rb
require 'octokit'
client = "<TOKEN>")
repos = client.repos('gds-attic')
repos.take(10).each do |repo|
puts "archiving #{repo.url}..."

scalable build pipelines


  • jenkins as a build tool
  • microservices
  • how do we standdardize unit testing in our pipeline?
  • is a failure because we broke the pipeline, or because the code is bad?
  • we’ve recently been trying jenkins declarative pipelines
  • bash scripts
philandstuff /
Last active Oct 12, 2017
Devopsdays london 2017

Devopsdays London 2017

initial session, bob walker (@rjw1)

  • welcome everyone!
  • we have a code of conduct
  • thanks to organisers, sponsors, etc

Humane Teams at home and around the world

philandstuff /
Created Mar 2, 2017

trying to implement consistency checking on my prison RSF poller

I wrote a thing to keep the prison index service prototype up-to-date. It works by polling the RSF for updates, and only downloads new entries.

However, the prison register is in discovery and I’m told it will be deleted and reloaded (possibly a number of times). This means that if I only download entries from the last entry number I saw, I’ll miss the entries which have been completely rewritten.

You can’t perform that action at this time.