Skip to content

Instantly share code, notes, and snippets.

@benley
benley / middleware.wsgi
Last active February 24, 2017 10:33
wsgi middleware for basic Prometheus monitoring instrumentation
"""WSGI middleware for basic Prometheus monitoring instrumentation."""
import prometheus_client
import werkzeug.wrappers
Counter = prometheus_client.Counter
Histogram = prometheus_client.Histogram
INF = float('inf')
@egmontkob
egmontkob / Hyperlinks_in_Terminal_Emulators.md
Last active November 13, 2024 14:50
Hyperlinks in Terminal Emulators
@superjamie
superjamie / install-ubuntu-luks-lvm.md
Last active November 8, 2024 18:28
How to install Ubuntu with LUKS Encryption on LVM

How to install Ubuntu with LUKS Encryption on LVM

My work requires us to have full-disk encryption, so these are the steps I use.

The basic idea is to create a LUKS-encrypted partition which is used as an LVM Physical Volume.

The GRUB boot partition isn't encrypted, but everything else is.

These steps tested and working on 22.04 (jammy) and 20.04 (focal).