Skip to content

Instantly share code, notes, and snippets.

View pioto's full-sized avatar

Mike Kelly pioto

View GitHub Profile
@jdoss
jdoss / LUKS_and_TPM2_with_Fedora.md
Last active March 2, 2024 10:31
Decrypt LUKS volumes with a TPM on Fedora 35+

Decrypt LUKS volumes with a TPM on Fedora 35+

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
@s1lvester
s1lvester / rancheros_on_freenas.md
Last active March 23, 2021 08:36
Installing RancherOS on FreeNAS using iohyve

RancherOS on FreeNAS

Date: 2016-10-04 Version: 1.2
Author: s1lvester@bockhacker.me

This is my short documentation on how to install RancherOS on FreeNAS.

Versions used:
- RancherOS v.0.6.1
  • FreeNAS 9.10-stable
@presbrey
presbrey / gitosis-serve-krb5
Created January 9, 2012 16:44
gitosis gssapi wrapper: map kerberos principal to gitosis user
#!/bin/bash
# gitosis-serve-krb5
#
# map kerberos principal to gitosis user (and strip @REALM.COM)
#
# [/etc/ssh/sshd_config]
# Match User git
# ForceCommand gitosis-serve-krb5
klist=`klist -5`