Something weird I hit last week with
git diff-index, which shows 1 file changed, but no changes.
Something weird I hit last week with
Creating a Go library that can verify
net/http handlers implement an OpenAPI contract, for use with testing.
net/http handlers (1 mins read).
How to write unit tests to validate an HTTP handler.
Constructing a serialised YAML string in Ruby (1 mins read).
How to convert a YAML document to a string representation, preserving escaped newlines, with Ruby.
What I learned from taking ownership of a lesser maintained service and bringing it up to a better standard.
Getting the fingerprint of a certificate in Go (1 mins read).
How to retrieve an X.509 thumbprint from a remote server, in Go.
How to automagically retrieve an OpenID Connect thumbprint for use with AWS' OpenID Connect federated identity.
How to structure a Go repository to be both a library and command-line tool(s).
Parsing AWS ALB/ELB access logs into SQLite (2 mins read).
How to take a set of ALB/ELB logs and convert them to an SQLite database for further processing.
When you should use the
env command to specify environment variables when executing a command on the command-line (TL;DR: always).
Should I commit generated Go code? (1 mins read).
go:generated code should be committed (TL;DR is yes).
Lessons learned from the recent job hunt (13 mins read).
A recap of the recent interview process with several companies, what I learned, and what others should know.
Installing Nokogiri on an M1 Mac (1 mins read).
How to get Nokogiri building on an M1 Mac, when using
Determining if there are uncommitted changes in Git (1 mins read).
A one-liner to work out whether there are uncommitted changes in a repository.
How to use
parallel to create a lightweight work queue of commands, with retry logic and a record of what's been executed.
How to get raw listening history from the Podcast Addict database.
Removing 'smart' quotes from a file, on the command-line (2 mins read).
A one-liner with
sed to replace 'smart' quotes with regular quotes.
I'm Joining Deliveroo (2 mins read).
Announcing my move into Deliveroo as a Senior Software Engineer.
How to automagically set
sonar.projectVersion for Go projects, based on Git tags.
How to convert an array of bytes to a string using Go.
Prefactoring: Preparatory Refactoring (2 mins read).
Why I use prefactoring as a means to perform up-front refactoring for codebases, splitting these into separate PRs/MRs where possible.
How to set up OAuth2/OpenID Connect authentication with an Architect Framework application.
Getting node-canvas to run on AWS Lambda (3 mins read).
Some common issues that occur when using node-canvas on AWS Lambda, and how to solve them.
Set-Cookie headers with Go (2 mins read).
How to parse the value of a
Set-Cookie header to a JSON object.
Generating a Go HTTP Client from OpenAPI schemas (2 mins read).
How to generate a Go HTTP client really quickly and easily, with no manual work, using the oapi-codegen project.
Generating Go structs from OpenAPI schemas (2 mins read).
How to generate Go structs really quickly and easily, with no manual work, using the oapi-codegen project.
Setting up GitLab CI for Go projects (1 mins read).
How to set up a basic set of automated builds for Go projects on GitLab CI, for modern Go projects.
Announcing a hosted service for converting TikTok metadata to a Microformats2 object.
How to set up a domain name for AWS API Gateway for a domain that isn't managed through AWS Route 53.
How to configure an AWS S3 Bucket for
hugo deploy with the minimal access required for a role to write objects to.
How to use GitLab's OpenID Connect support with AWS, to allow deployment using the Architect Framework automagically on GitLab CI.
Using abstract base classes to reduce risk of Spring context overall issues with Spring (Boot) integration tests.
Providing a basic implementation of Ruby's
ARGF.read in Go (2 mins read).
Creating a Go helper method to read from
stdin or a file, inspired by Ruby's
Integration Testing Your Spring
WebClients with Wiremock (4 mins read).
How to write integration tests using Wiremock, for use with
Accessing the OpenAPI Specification for a Kubernetes Cluster (1 mins read).
How to get the OpenAPI specification for your Kubernetes Cluster.
ConnectExceptions with the Kubernetes Java
ApiClient (1 mins read).
How I solved
ConnectExceptions in my Kubernetes Java client usage, by moving to cluster mode.
How to use the OpenSSF Scorecards GitHub Action to audit your GitHub and GitHub Actions configuration, and a breakdown of some of the issues raised by it.
Announcing an NPM package and a hosted service for converting OpenGraph metadata to a Microformats2 object.
Some common issues with Spring dependency injection and how to fix them.
x5c from a JSON Web Key to a PEM with Node.JS (1 mins read).
How to convert a JWK's
x5c to a PEM-formatted certificate with Node.JS.
How to extract the full chain of certificates from a JWKS'
x5c parameter to files.
prism tool to run a stubbed server from an OpenAPI specification, for better testing.
How checked and unchecked exceptions may appear when testing your
How to access the body of an (error) response when using
Running a command on a visual selection in Vim (1 mins read).
How to pipe the text in a visual selection to a command, either to run it, or to replace the text in the seletion.
Updating the CA Certificate bundle in Chef Installations (3 mins read).
How to update/add new certificates to the Certificate Authority Certificate Bundle in a Chef Development Kit / Workstation installation.
Announcing the initial release of
micropub, a CLI for interacting with Micropub servers.
How to use Neovim's Language Server Protocol (LSP) support to autoformat code on a file's save.
Gotcha: Segfault when HTTP headers include newlines with Go (2 mins read).
Why you may be receiving a segfault when using
http.Client with HTTTP headers that include newlines.
A command-line script to convert a Spring Boot property to an environment variable.
You're currently viewing page 1 of 12, of 576 posts.