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.
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.
How to upload a given community cookbook from Chef Supermarket to Chef Server, using Berkshelf.
How to create a dependency graph for a given cookbook's dependencies to understand the order to install them in.
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.
How to resolve
Waiting for SSH service when running kitchen-docker.
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.
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
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.
How to install Ruby Gems in local development using your
How to add a
javax.servlet.Filter to a Jersey application, built using the AWS Serverless Container for Java.
MediaTypes 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
Generating a JSON Web Key (JWK) With Ruby (1 mins read).
How to create a new JWK with Ruby.
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.
Filtering Tasks and their Subtasks in JIRA (1 mins read).
How to filter issues, and their subtasks, with JIRA Query Language.
Globally Logging all Spring (Boot) Exceptions (3 mins read).
How to log whenever an exception triggers on an exception handler with Spring.
Using Git Diff Without a Repo (1 mins read).
How to use
git diff when you're not in a Git repo.
How to fix
git rev-parse suddenly not working after a Jenkins Git plugin update.
How to use Gradle to publish and consume artefacts build on your local machine.
Unit Testing Auth0 Rules (8 mins read).
How to write unit tests for your Auth0 Rules, without running it on an Auth0 tenant.
How to resolve the error
Unexpected Parent Dependency when building Gradle projects in IntelliJ.
Debugging Git Errors Using Environment Variables (1 mins read).
How to use environment variables such as
GIT_TRACE to debug what's going wrong / what's happening under the hood with
Creating Signed JOSE Objects with Ruby (1 mins read).
How to use
ruby-jose to create a signed JSON Object Signing and Encryption (JOSE) object on the command-line.
How to use the maven-toolchains-plugin to configure multiple JDKs on your machine.
Diffing Pretty-Printed JSON Files (4 mins read).
How to compare two JSON documents by pretty-printing them.
Sorting a Hash Recursively with Ruby (1 mins read).
How to sort a
Hash in Ruby recursively, when nested
How to generate POJOs really quickly and easily, with no manual work, using the Mojohaus jaxb2-maven-plugin.
Globally Disable TLS Checks with Java for
HttpsURLConnection (1 mins read).
How to disable TLS checks when using
HttpsURLConnections in Java.
Connecting to the Docker Host from a Child Container (2 mins read).
How to access ports from the host machine when running in a child container.
How to Manually Trigger JSR380 Bean Validation on a Class (2 mins read).
How to perform validation on a class using JSR380, when not using a framework like Spring Boot.
How to set Gradle configuration globally to add a task to list all your dependencies.
How to use Gradle's initialization scripts to globally configure tasks across all of your projects.
How to avoid the error
'junit-vintage' failed to discover tests when using Spring Boot.
Generating Random Bytes On the Command Line with OpenSSL (1 mins read).
How to generate random bytes as binary, base64 or hex, using
openssl on the command-line.
@Mock as a Method Parameter with Mockito (2 mins read).
@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.
How to disable Spring Boot logging the
generated security password.