Article
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.
Mon, 15 Jun 2020 23:12 by Jamie Tanna
.
#blogumentation
#ruby
#command-line
#jwt
#json
#oidc .
Article
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.
Mon, 15 Jun 2020 22:59 by Jamie Tanna
.
#blogumentation
#ruby
#command-line
#jwt
#json .
Article
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.
Mon, 15 Jun 2020 22:40 by Jamie Tanna
.
#blogumentation
#ruby
#command-line
#jwt
#json .
Article
Generating JWK Thumbprints with Ruby (1 mins read).
How to generate JWK thumbprints with Ruby.
Wed, 03 Jun 2020 09:00 by Jamie Tanna
.
#blogumentation
#ruby
#jwk .
Article
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.
Thu, 30 Apr 2020 21:30 by Jamie Tanna
.
#blogumentation
#jwks
#certificates
#ruby .
Article
Converting a Ruby Hash to a String (1 mins read).
The ways that we can convert a Hash to a String with Ruby.
Thu, 06 Feb 2020 19:24 by Jamie Tanna
.
#blogumentation
#ruby .
Article
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.
Wed, 15 Jan 2020 21:32 by Jamie Tanna
.
#blogumentation
#ruby
#jwks
#jwk
#certificates
#pem
#x509
#openssl .
Article
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.
Tue, 14 Jan 2020 19:50 by Jamie Tanna
.
#blogumentation
#command-line
#ruby
#shell .
Bookmark
Ruby Literals You May Not Know
Some interesting ones in here I'll look at using - escaping things is one of my biggest gripes with every language, so this is pretty nice
Thu, 12 Dec 2019 12:45 by Jamie Tanna
.
#ruby .
Article
Trusting Self-Signed Certificates from Ruby (1 mins read).
How to configure Ruby to trust self-signed certificates.
Thu, 28 Nov 2019 21:05 by Jamie Tanna
.
#blogumentation
#ruby
#certificates
#nablopomo .
Article
Pretty Printing YAML with the Ruby Command-Line (1 mins read).
Using Ruby's YAML
library to pretty-print YAML files from the command-line.
Wed, 27 Nov 2019 18:15 by Jamie Tanna
.
#nablopomo
#blogumentation
#ruby
#yaml
#pretty-print
#command-line .
Article
Minifying JSON with Ruby (1 mins read).
How to take a pretty-printed JSON string and replace it with a minifed JSON string using Ruby.
Fri, 22 Nov 2019 19:33 by Jamie Tanna
.
#ruby
#command-line
#blogumentation
#nablopomo
#json
#minify-json .
Article
Converting Ruby Hash keys to Strings/Symbols (2 mins read).
How to recursively convert a Ruby Hash's keys to a String / Symbol.
Sat, 07 Sep 2019 22:36 by Jamie Tanna
.
#blogumentation
#ruby .
Article
Merging an 'Override' Ruby Hash into the Original Hash (6 mins read).
How to use Ruby to merge two hashes with nested arrays of hashes, with the second hash overriding values from the first.
Sat, 07 Sep 2019 22:36 by Jamie Tanna
.
#blogumentation
#ruby .
Article
Easily Parsing Failed Cucumber Scenarios from the JSON Report (2 mins read).
How to parse a Cucumber JSON report to display the failed scenarios and their causes.
Fri, 16 Aug 2019 15:20 by Jamie Tanna
.
#blogumentation
#cucumber
#ruby
#command-line .
Article
Pretty Printing JSON Files Inline on the Command Line (2 mins read).
How to rewrite multiple JSON files inline on the Command Line.
Wed, 24 Jul 2019 14:26 by Jamie Tanna
.
#blogumentation
#pretty-print
#command-line
#ruby .
Article
URL Decoding with Ruby on the Command Line (1 mins read).
How to use Ruby's standard library to decode URLs with a handy one-liner.
Fri, 31 May 2019 21:58 by Jamie Tanna
.
#blogumentation
#ruby
#command-line .
Article
Pretty Printing JSON with Ruby (1 mins read).
Using Kernel.jj
to pretty print Ruby objects as JSON objects.
Fri, 29 Mar 2019 18:04 by Jamie Tanna
.
#blogumentation
#ruby
#json
#pretty-print .
Article
Pretty Printing JSON Web Tokens (JWTs) on the Command Line using Ruby (3 mins read).
How to easily introspect and pretty print a signed JWT (JWS) or an encrypted JWT (JWE) on the command line using Ruby's standard library, or using the ruby-jwt external library.
Fri, 31 Aug 2018 10:43 by Jamie Tanna
.
#blogumentation
#ruby
#command-line
#jwt
#json
#pretty-print .
Article
Pretty Printing JSON on the Command Line with Ruby (1 mins read).
Using Ruby's JSON module to pretty print JSON objects from the command line.
Mon, 18 Jun 2018 19:13 by Jamie Tanna
.
#blogumentation
#ruby
#json
#pretty-print .
Article
Morsels of Goodness: What's Cooking in Chef 14? (5 mins read).
A look at the new features coming in the new Chef 14 release, as well as what to watch out for when upgrading.
Mon, 23 Apr 2018 16:09 by Jamie Tanna
.
#chef-14
#chef
#foodcritic
#cookstyle
#rubocop
#ruby
#test-kitchen .
Article
Bundling Common Rake Tasks into a Gem (8 mins read).
An example of how to create a helper gem for common Rake task, using the real-world example of Chef cookbooks.
Thu, 05 Apr 2018 21:17 by Jamie Tanna
.
#blogumentation
#chef
#chefdk
#gem
#ruby
#rake
#foodcritic
#rubocop
#rspec
#knife-cookbook-doc
#gitlab-ci .
Article
Verify a Ruby Class Method is Called with Arguments in Rspec, Without Doubles or Mocks (1 mins read).
Rspec code to verify that a Ruby Class Method is called from another method, without needing to mock anything.
Wed, 07 Mar 2018 15:28 by Jamie Tanna
.
#blogumentation
#ruby
#testing
#rspec .
Article
Converting YAML to JSON and vice versa (Part 1 - Ruby) (2 mins read).
Coerce YAML to JSON and vice versa, from the comfort of your Gem-studded command line.
Thu, 22 Jun 2017 21:16 by Jamie Tanna
.
#blogumentation
#ruby
#command-line
#yaml
#json .