Skip to content

Instantly share code, notes, and snippets.

@sklemer1
sklemer1 / jwtpeek.py
Created October 16, 2018 15:18
Show the content of a JWT (and decrypt and/or verify it along the way)
#!/usr/bin/env python3
# Thanks to @rohe Roland Hedberg for most of the lines in this script :).
import argparse
import os
import sys
import json
from pygments import highlight
from pygments.lexers import JsonLexer
@sklemer1
sklemer1 / printable-voucher-gen.html
Last active September 25, 2022 16:02
Generate printable vouchers from pfSense generated captive portal codes
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Printable pfSense Voucher Generator</title>
<style type="text/css">
@page {
size: A4 landscape;
}
body {