Using @Mock
as a Method Parameter with Mockito (2 mins read).

Using @Mock
on method parameters to reduce manual mock setups with Mockito.
Using @Mock
as a Method Parameter with Mockito (2 mins read).
Using @Mock
on method parameters to reduce manual mock setups with Mockito.
Converting a Byte Array to a String in Ruby (1 mins read).
How to convert an array of bytes to a String with Ruby.
Disabling the logging of Spring Security's Default Security Password (2 mins read).
How to disable Spring Boot logging the generated security password
.
Generating the Client Assertion JWT for private_key_jwt
Authentication with Ruby (1 mins read).
A helper script to generate the client assertion required to authenticate to an Authorization Server that supports private_key_jwt
, on the command-line with Ruby.
Verifying Signed JWTs (JWS) with Ruby (2 mins read).
Using the ruby-jwt library to verify a signed JSON Web Token (JWS) on the command-line.
Creating Signed JWTs (JWS) with Ruby (1 mins read).
Using the json-jwt and ruby-jwt libraries to sign a JSON Web Token on the command-line.
Issues with Ordering When Using Vault CLI's -no-print
Argument (1 mins read).
A possible solution for no-print
not taking effect with the vault
CLI when using AWS EC2 auth.
GitLab CI Shell Executor failing builds with ERROR: Job failed: exit status 1
(1 mins read).
How to work around ERROR: Job failed: exit status 1
errors with GitLab CI's shell executor.
GitLab CI Shell Executor Failing Builds With No Such Directory
(1 mins read).
How to work around No Such Directory
errors with GitLab CI's shell executor.
Deploying a Branch to Netlify on the Command-Line (1 mins read).
How to use Netlify's Node CLI to deploy a given branch to Netlify.
Generating JWK Thumbprints with Ruby (1 mins read).
How to generate JWK thumbprints with Ruby.
Generating JWK Thumbprints with Node.JS (1 mins read).
How to generate JWK thumbprints with Node.JS.
How are Open Banking Key Ids (kid
) Generated? (1 mins read).
Sharing insight into how Open Banking has generated their kid
s for use with JWTs.
How to Run Java on the Command-Line to Attach a Debugger (1 mins read).
How to run java
on the command-line, and make it possible to attach a debugger.
Extract a Public Cert from a Java Keystore/Truststore (1 mins read).
How to export the public certificate from a Java keystore.
Evicting Spring Cache on a Schedule (1 mins read).
How to evict Spring Cache's @Cacheable
data on a schedule.
No default controller available
With bluetoothctl
(1 mins read).
One possible solution for the No default controller available
error message with bluetoothctl
.
How to avoid HttpMessageNotReadableException
when using ContentCachingRequestWrapper
with Java Servlet Filters (1 mins read).
How to avoid receiving Required request body is missing
errors when using a ContentCachingRequestWrapper
.
Reading a Servlet/Spring Request Body Multiple Times (2 mins read).
How to read the request body more than once using Java Servlet Filters.
Disabling @Valid
Annotation in a Spring Integration Test (1 mins read).
How to disable @Valid
validation in Spring Integration Tests.
Converting Output from Rest Assured to Curl Requests (3 mins read).
How to convert the log output from Rest Assured to a curl
request.
Navigating through the Vim Changelist with Intellij (2 mins read).
How to use g;
and g,
using IntelliJ's IdeaVim plugin to cycle through changes in a file.
Running Spotless Automagically with Gradle (2 mins read).
How to set Gradle configuration globally to always run spotlessApply
in your projects.
Gotcha: AWS SDK Proxy Setup with Test Kitchen (2 mins read).
How to avoid odd proxy issues when using the AWS SDK, when using Test Kitchen.
Determining What Motherboard You're Using, On Linux (1 mins read).
How to determine what motherboard the machine you're using is reporting, on the command-line with Linux.
Extracting x5c
s from a JSON Web Key Set (JWKS) to PEM files with Ruby (1 mins read).
How to extract the full chain of certificates from a JWKS' x5c
parameter to files.
Autogenerating the Date
Header in Postman (1 mins read).
How to generate and send a Date
header using Postman.
Converting a Byte Array to String with Buffer
in Node.JS (1 mins read).
How to convert an array of bytes to a String using Node.JS's Buffer
class.
GitLab Runner Docker TCP Error (2 mins read).
Fixing the cannot connect to the Docker daemon
error with GitLab Runner and Docker.
Inheriting the Proxy from the Jenkins Host in Docker (1 mins read).
How to pass proxy variables from your Jenkins host to your Docker containers.
Inheriting the Environment Variables from the Jenkins Host in Docker (2 mins read).
How to pass environment variables from your Jenkins host to your Docker containers.
Tomcat May Log Cookies Out-of-the-Box (3 mins read).
Warning you about cookies being logged out-of-the-box, and how to resolve it.
Providing Custom Serialization for Map
Keys in Jackson (1 mins read).
How to configure Jackson to use a custom method to serialise keys for a Map
.
Toggling Your Bluetooth Connection using bluetoothctl
on the Command-Line (1 mins read).
How to script bluetoothctl
to toggle your connection to a Bluetooth device.
Extract a Private Key from a Java Keystore (1 mins read).
How to export an asymmetric PrivateKeyEntry
entry from a Java keystore.
Splitting an X509 PEM-Encoded Certificate Bundle into Multiple Files (1 mins read).
Splitting a certificate bundle into separate files using split
or awk
.
How to Use curl
to Send Requests to Domains Without Editing Your /etc/hosts
File (1 mins read).
Using curl
's --resolve
flag to perform custom lookup for hosts.
How to unzip/decompress a Java JAR file (1 mins read).
How we can use the unzip
command to decompress JAR files.
Triggering an AWS Lambda from the Command-Line (1 mins read).
How to invoke an AWS Lambda function from the Command-Line.
Skip Builds On Branch Indexing with Jenkins Multibranch Pipelines (2 mins read).
How to stop Jenkins unnecessarily kicking off builds on Multibranch pipelines when indexing the branches.
Generating HMAC Signatures on the Command Line with OpenSSL (1 mins read).
How to generate HMAC signatures for a given string, using openssl
.
Creating Signed JWTs (JWS) with Node.JS (1 mins read).
How to use the jsonwebtoken library to create a Signed JSON Web Token (JWS) with Node.JS.
Setting up Multiple redirect_uri
s on the Meetup.com API (2 mins read).
How to allow multiple redirect_uri
s on your Meetup.com (OAuth2) API consumer.
How to Extract a Twitter Profile URL (But Not Status URL) with a Regex (1 mins read).
A regular expression to match Twitter Profile URLs, but not Status URLs.
Converting a Ruby Hash to a String (1 mins read).
The ways that we can convert a Hash to a String with Ruby.
Generate Plain Old Java Objects (POJOs) from XML Schema Definitions with xjc
(4 mins read).
How to generate POJOs really quickly and easily, with no manual work, using the xjc
command.
Converting an x5c
from a JSON Web Key to a PEM with Ruby (1 mins read).
How to convert a JWK's x5c
to a PEM-formatted certificate with Ruby.
Technically my reply to this tweet is the latest thing on my blog (see the link at the end) but https://www.jvt.me/posts/2020/01/14/ruby-parse-unix-epoch/ is the last, super short #blogumentation blog post
One of my own #blogumentation articles saved me today from tearing my hair out, determining why some requests kept being rejected https://www.jvt.me/posts/2019/02/25/verify-signed-jwt-nodejs/ - that's why I do it!
Parsing a Unix Epoch With Bash/Ruby on the Command-Line (1 mins read).
How to convert a Unix Epoch to a human-readable date format.