Creating More Descriptive and Fluent Assertion Helpers (4 mins read).
How to improve test readability, and developer experience, using assertion helpers.
Creating More Descriptive and Fluent Assertion Helpers (4 mins read).
How to improve test readability, and developer experience, using assertion helpers.
Using Middleman Redirects with a Custom, Non-HTML Content Type (2 mins read).
How to get Middleman's redirect
to work with files that are not HTML.
Using JitPack to Install Gradle Plugins from Git Sources (2 mins read).
How to use JitPack to use an unreleased Gradle plugin from a Git repo in your Gradle projects.
Listing Which GitHub Pull Requests are in a Project (2 mins read).
How to list the PRs inside a Project on Github, for example, via a Ruby client.
Updating a Secret in Kubernetes with the Java Client (3 mins read).
How to use the Kubernetes Java SDK to patch a secret through Kubernetes' secrets API.
How to Undo a git push --force
(5 mins read).
How to recover from a force push with Git.
Debugging Middleman Code With Middleman's Logger (1 mins read).
How to diagnose issues in Middleman, using logging output.
Lightweight and Powerful Dependency Injection for JVM-based Applications with Dagger (7 mins read).
How and why you should be using Dagger for your dependency injection.
Testing Data Serialisation/Deserialization in Java (with Jackson) (4 mins read).
How to validate your JSON types correctly serialise/deserialise.
Setting up fluentd to Parse Nested JSON from Docker (2 mins read).
How to configure fluentd to parse the inner JSON from a log message as JSON, for use with structured logging.
Tips for Reducing Dependency Upgrade Toil with Renovate (5 mins read).
Some tips I've picked up while working with Renovate to keep my projects up-to-date.
Packaging Wiremock Extensions into the Standalone Server Runner (2 mins read).
How to use Gradle to package a standalone JAR for Wiremock, including any extensions needed.
Testing Java Callbacks with Mockito (1 mins read).
How to test invoking a real callback in a Java project, as a unit test.
Pushing Back to Git In a Jenkins Multibranch Pipeline (1 mins read).
How to push back to a Git repo using a Jenkins multibranch pipeline.
Using Bill of Materials to Simplify Dependency Management (3 mins read).
Producing a Bill of Materials to simplify dependency management for Java projects.
Encoding Strings for Embedding in JSON with Ruby on the Command-Line (1 mins read).
How to easily convert a string to a format that can be used as a value for JSON strings.
Programatically Comparing Versions Using Chef's Versioning Schemes (1 mins read).
How to use Chef's versioning classes to determine whether a version constraint is matched.
Parsing Encoded JSON Strings on the Command-Line with Ruby (1 mins read).
How to decode an encoded JSON string.
Decrypting Encrypted JSON Web Tokens (JWE) with Ruby (1 mins read).
How to use Ruby to decrypt encrypted JSON Web Token objects.
Running Multiple JDK Versions with the Gradle Toolchains Configuration (2 mins read).
How to use the Gradle's toolchain
configuration to configure multiple JDKs on your machine.
Testing Data Serialisation/Deserialization using JsonTest
with Spring Boot (3 mins read).
How to use the @JsonTest
test type in Spring Boot to validate your JSON types correctly serialise/deserialise.
Migrating Your Spring Boot Application to use Structured Logging (6 mins read).
How to make your Spring Boot services more supportable by migrating to JSON-emitting structured logging.
Avoiding NoClassDefFoundError
errors when using slf4j-test with Logback and Maven (2 mins read).
How to exclude Logback from the classpath when testing your logs using slf4j-test and Maven.
Configuring a Jenkins Multibranch Pipeline to Specify the Trust Permissions with Job DSL (1 mins read).
How to specify the trust permissions for a GitHub project on a Jenkins Multibranch pipeline, when using Job DSL.
How to get a field with Reflection in Java (1 mins read).
How to use Java's Reflection to get access to a private of a class.
Server-less Wiremock, or Using Wiremock Without an HTTP Server (3 mins read).
How to match Wiremock's stubs without running an HTTP Server.
Building a Multibranch Pipeline on a Schedule (2 mins read).
A more convenient solution for setting up periodic rebuilds of certain branches in a Jenkins Multibranch pipelines.
Disabling a Multibranch Pipeline using Job DSL (1 mins read).
How to disable all branches of a MultibranchWorkflowJob
with Jenkins Job DSL.
Has anyone happened to see my post about #blogumentation shared anywhere today? Seeing a fair bit of traffic which suggests it's been made popular somewhere π
Uploading Community Cookbooks from Supermarket to Chef Server (1 mins read).
How to upload a given community cookbook from Chef Supermarket to Chef Server, using Berkshelf.
Constructing an Ordered Dependency Graph for Chef Cookbooks, using Berkshelf (3 mins read).
How to create a dependency graph for a given cookbook's dependencies to understand the order to install them in.
Using Dynamically Generated Non-AWS Owned SSH Keys with Test Kitchen on EC2 (3 mins read).
How to set up kitchen-ec2 to use an SSH key that isn't available in AWS by amending the user-data
of the created EC2 instance.
Waiting for SSH service
on Test Kitchen with the Docker driver (1 mins read).
How to resolve Waiting for SSH service
when running kitchen-docker.
Working with a Git remote's default branch, using origin/HEAD
(2 mins read).
How to interact with the default branch for a remote repo, as well as update it if needed.
Better Chef Reporting for Automated Pipelines (1 mins read).
How to get better machine-parseable reports for your Chef Pipelines.
Managing Your Chef Gem Dependencies More Easily in your Gemfile
(2 mins read).
How to source your Chef Gem dependencies from your Chef cookbook's metadata.rb
instead of duplicating them between files.
Programatically Determining the Version of a Chef Cookbook (1 mins read).
How to determine a Chef cookbook's version programatically, using Ruby.
How to Use Cookstyle to Autocorrect Style Issues (1 mins read).
How to use the cookstyle
tool with Chef cookbooks to autocorrect style issues.
Speeding Up Gradle Executions with Parallelisation (2 mins read).
How to make your Gradle builds faster, by taking advantage of parallelisation.
Testing Time with Java (4 mins read).
How to make your Java tests better when dealing with java.util.time
.
Using Proof of Key Code Exchange (PKCE) Using rack-oauth2 as an OAuth2 Client (1 mins read).
How to use the PKCE extension when using the Ruby library rack-oauth2 as an OAuth2 client.
Determining the (Git) Branch of the Jenkins Pipeline Job (1 mins read).
How to find out what branch the currently executing script has been checked out from.
Encrypting and Decrypting Text with OpenSSL (2 mins read).
How to use openssl
to encrypt text with a shared passphrase.
Installing Gems From Your Gemfile
When Developing Chef Cookbooks using the ChefDK / Chef Workstation (2 mins read).
How to install Ruby Gems in local development using your Gemfile
.
Executing javax.servlet.Filter
s in aws-serverless-java-container Jersey Apps (2 mins read).
How to add a javax.servlet.Filter
to a Jersey application, built using the AWS Serverless Container for Java.
Inexactly Comparing MediaType
s with Spring (1 mins read).
How to compare Spring's MediaType
by ignoring charset or parameters.
Converting X.509 and PKCS#8 .pem
file to a JWKS (in Ruby) (2 mins read).
Converting X.509 and PKCS#8 files to JWKS format, using the ruby-jose
library.
Generating a JSON Web Key (JWK) With Ruby (1 mins read).
How to create a new JWK with Ruby.
Setting up Passwordless Authentication using the Okta Factors API (3 mins read).
How to use Okta's Factors API to use push notifications to authenticate yourself.
How to List Gradle's Buildscript / Plugin Dependencies (1 mins read).
How to list the dependencies that are used by Gradle's plugins as part of its buildscript.