Skip to content

Instantly share code, notes, and snippets.

@maartenk
maartenk / jwtpeek.py
Created October 22, 2018 13:02 — forked from sklemer1/jwtpeek.py
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
@maartenk
maartenk / makr-dist-upgrade.yml
Created December 14, 2015 21:07
Ansible playbook to update and upgrade machines via apt
# Config retrieved from:
# https://realguess.net/2014/12/21/ansible-update-servers-to-the-latest-and-reboot/
- name: update and upgrade machines via apt
hosts: makr # To change to own hosts / groups
sudo: true
tasks:
- name: Check if there are packages available to be installed/upgraded
command: /usr/lib/update-notifier/apt-check --package-names
register: packages

Keybase proof

I hereby claim:

  • I am maartenk on github.
  • I am maartenk (https://keybase.io/maartenk) on keybase.
  • I have a public key whose fingerprint is 4736 E181 858F 94C9 58BF 755A 6459 1422 C4BF 637F

To claim this, I am signing this object: