Getting a GitHub App installation token on the command-line (2 mins read).
How to get a GitHub App installation token (using Typescript) for a given installation.
Getting a GitHub App installation token on the command-line (2 mins read).
How to get a GitHub App installation token (using Typescript) for a given installation.
Passing a private key as an environment variable (1 mins read).
How to convert a PEM-encoded private key in a form to be stored in an environment variable.
Listing the status of your branch protection in GitHub (1 mins read).
Creating a command-line Go tool to list the branch protection status of your repositories.
Getting comfortable with the lack of privacy with my Week Notes (6 mins read).
Looking back at a few years of writing week notes publicly, and how I approach privacy around what I (want to) write in them.
Determining missing translation keys from gettext .po
files (1 mins read).
Creating a Go command to check for missing translation keys across gettext .po
files.
Setting up default Renovate configuration while allowing overriding of that configuration (2 mins read).
How to run Renovate to provide some defaults for repos that aren't opted-in, as well as allowing repos to opt-in.
Does this Slack Webhook still work? (1 mins read).
How to check if a Slack Webhook is still active.
Who does this NPM token belong to? (2 mins read).
How to work out whether an arbitrary NPM token is valid, and if so, which user account it belongs to.
Performing bulk changes across Git(Hub) Repos with Turbolift and Microplane (4 mins read).
Using Turbolift and Microplane to enact changes across many Git(Hub) repositories.
Automagically determining which AWS Lambda runtimes are deprecated or end-of-life (2 mins read).
Introducing a tool that can list AWS Lambda functions and whether their runtimes are approaching or past deprecation/end-of-life dates.
Who do these AWS credentials belong to? (1 mins read).
How to work out whether arbitrary AWS credentials are valid, and if so, what account/role/user they're bound to.
What I learned rebuilding our CI/CD pipelines for Chef Cookbooks (22 mins read).
How a focus on developer experience and user needs helped us rebuild (Capital One's) CI/CD pipelines for Chef cookbooks the right way.
Listing secrets stored in CircleCI (1 mins read).
How to list all the secrets in your CircleCI organisation.
Enabling/Disabling GitHub Issues via the GitHub API (1 mins read).
How to use the GitHub API to update whether Issues are enabled on a given repo or not.
Using Renovate to manage updates to go install
commands (1 mins read).
How to run Renovate to manage dependency version updates for cases where you're go install
ing them.
Using Renovate to manage updates to golangci-lint
versions (1 mins read).
How to run Renovate to manage your golangci-lint
dependency versions, using the official installation script.
Performing arbitrary executions with Renovate (2 mins read).
How to run Renovate for one-off package upgrades, rather than using it for longer term maintenance.
Getting diagnosed with ADHD (10 mins read).
Looking back at the process to get diagnosed with ADHD.
Prefilling OAuth2 scopes for GitHub Personal Access Tokens (1 mins read).
How to make it easier to set up your OAuth2 scopes on a Personal Access Token with GitHub.
Prefilling OAuth2 scopes for GitLab Personal Access Tokens (1 mins read).
How to make it easier to set up your OAuth2 scopes on a Personal Access Token with GitLab.
Performing AND
conditionals in HAProxy (1 mins read).
How to string multiple conditions together in HAProxy to perform an AND
.
Creating a JSON Patch endpoint in Go (2 mins read).
How to create a server-side JSON Patch API endpoint in Go.
Extracting the dependency tree from Renovate for given repositories (4 mins read).
Creating a (hacky) solution to retrieve the dependency graph from Renovate for a set of repositories.
Listing all GitHub repositories in a GitHub Organisation (3 mins read).
How to use the GraphQL API to list all the repositories that can be found in a given GitHub organisation.
'Should I be able to learn how to be more productive at work?' (3 mins read).
Looking at whether learning how to be more productive, during work hours, is a reasonable thing to do.
Does the tech industry thrive on free work? (6 mins read).
Thinking about how there are subtle expectations to work on your career outside of tech, and how it's not necessarily great.
Retrofitting OpenAPI documentation to your Rails codebase (12 mins read).
How to take a Rails codebase and introduce OpenAPI documentation and contract tests, in a test-driven manner.
Phew, that's a lot of traffic π What happens when a blog post goes viral? (5 mins read).
Looking at some of the things that happen when my posts have gone viral, from how much traffic it brings, to the various sources of traffic.
I've got ADHD (4 mins read).
Announcing my recent diagnosis with ADHD Inattentive Type.
Analysing our dependency trees to determine where we should send Open Source contributions for Hacktoberfest (8 mins read).
How we (at Deliveroo) are using GitHub Advanced Security's dependency scanning functionality to determine what our most popular dependencies are, and whether we can find any Open Source contributions for the month of Hacktoberfest.
Lessons learned since posting my salary history publicly (8 mins read).
What I've learned in the year since posting my salary history publicly.
Gotcha: testable examples in Go need an output
comment (2 mins read).
Beware that your Go Example
tests may not actually be running.
Introducing the tidied
tool, to more easily check whether go mod tidy
has been run (2 mins read).
Why I've created a command-line application called tidied
to check go mod tidy
has been run.
Converting HTTP requests to Wiremock stubs, with Go (2 mins read).
How to take an HTTP request and convert it into a Wiremock JSON mapping, on the command-line, in Go.
The first script I write in a new job: gg
(2 mins read).
Why writing a script to easily git clone
repos is my first step as a new starter.
Learning a new language, or how I gained familiarity with Go (10 mins read).
How I've eased into a new language, Go, as a Senior Software Engineer, and some initial thoughts on the language.
Releasing a set of test cases for Content Negotiation (2 mins read).
Introducing a repo for test cases to validate how you're performing server-driven content negotiation.
Releasing a Go library for content-type negotiation (2 mins read).
Introducing a new Go library for performing server-driven content negotiation.
Using generics to get a pointer to any type, in Go (1 mins read).
How to use Go generics to create a helper method for getting a pointer to any type.
Optional configuration for configuring Go code (2 mins read).
How to use optional types to allow configuring your library's Go code.
Building a Go RESTful API with design-first OpenAPI contracts (6 mins read).
How to use oapi-codegen
to generate an RESTful API using design-first OpenAPI and code generation.
Pointing to a fork of a Go module (1 mins read).
How to pin your Go modules to a given fork of a repository.
Running Go tests in Parallel (2 mins read).
How to get Go tests to run in parallel for speed.
Ignoring slow-running tests in Go (1 mins read).
How to use Go's -short
testing mode to avoid running slower tests.
Shipping services more quickly with design-first OpenAPI contracts (8 mins read).
How using OpenAPI has led to being able to ship a new service more effectively, by removing the need to write scaffolding, and instead focus on the business logic.
Automating boilerplate/scaffolding code with custom code generation in Go (4 mins read).
How to use Go's code generation tooling to add custom code generation to your project.
Describing a multi-value querystring parameter in OpenAPI (1 mins read).
How to define a querystring parameter that has multiple values, in OpenAPI.
Stubbing out the Go http.Client
to test an HTTP HandlerFunc
(2 mins read).
How to write a unit test to validate your router's HTTP handlers work, by stubbing out the http.Client
implementation.
Automagically determining feeds provided for a given URL on the command-line (1 mins read).
Creating a command-line application to discover feeds for a given URL.
Managing your Go tool versions with go.mod
and a tools.go
(3 mins read).
Better dependency management for your tools and without needing to go install
the tools before executing them.