Skip to content

Instantly share code, notes, and snippets.

View siwonpawel's full-sized avatar
🏠
Working from home

Paweł Siwoń siwonpawel

🏠
Working from home
  • CDQ Poland Sp. z o.o.
  • Poland, Szczecin
  • 09:18 (UTC +01:00)
View GitHub Profile
@jdoss
jdoss / LUKS_and_TPM2_with_Fedora.md
Last active November 10, 2025 16:00
Decrypt LUKS volumes with a TPM on Fedora Linux

Decrypt LUKS volumes with a TPM on Fedora Linux

This guide allows you to use the TPM on your computer to decrypt your LUKS encrypted volumes. If you are worried about a cold boot attack on your hardware please DO NOT use this guide with your root volume!

Preflight Checks

Verify that you have a TPM in your computer:

# systemd-cryptenroll --tpm2-device=list
PATH DEVICE DRIVER
@Nydan
Nydan / gracefull_webserver.go
Last active December 21, 2020 19:19
Golang http server with gracefull exit.
package main
import (
"context"
"fmt"
"log"
"net/http"
"os"
"os/signal"
"syscall"