Skip to content

Instantly share code, notes, and snippets.

View luvarqpp's full-sized avatar

luvarqpp

  • QPP a.s.
View GitHub Profile
@thomasdarimont
thomasdarimont / readme.md
Last active July 1, 2024 09:43
Example for decoding a JWT Payload with your Shell (bash, zsh...)

Setup

Add this to your .profile, .bashrc, .zshrc...

decode_base64_url() {
  local len=$((${#1} % 4))
  local result="$1"
  if [ $len -eq 2 ]; then result="$1"'=='
  elif [ $len -eq 3 ]; then result="$1"'=' 
  fi
 echo "$result" | tr '_-' '/+' | openssl enc -d -base64

Asciidoctor-maven-plugin 2.x.x migration guide

The asciidoctor-maven-plugin 2.0.0 introduces some breaking changes. This guide will provide the steps required to update a project currently using 1.5.x or 1.6.x version to 2.x.x. For each of the breaking changes, the motivation and new equivalent configuration will be offered.

Note
New configuration details are highlighted in bold.