Skip to content

Instantly share code, notes, and snippets.

View MrSuicideParrot's full-sized avatar

André Cirne MrSuicideParrot

View GitHub Profile
@Syderitic
Syderitic / Secure_Encrypted_Storage_Setup.md
Last active December 8, 2025 20:53
Secure Encrypted Storage Setup with LUKS2, TPM2, FIDO2, and Btrfs

Secure Encrypted Storage Setup with LUKS2, TPM2, FIDO2, and Btrfs

Disclaimer: Use this guide at your own discretion. The author is not responsible for any data loss or security breaches that may occur. Always ensure you understand each step and its implications before proceeding.

This guide walks you through setting up a secure external drive, perfect for backing up sensitive data, securely handing over large data sets, or storing important files. It covers creating an encrypted drive that’s easy to unlock with trusted devices, such as a security key, while remaining highly secure if misplaced. Ideal for safeguarding personal data or business files, it offers practical recovery steps to ensure access even if you change devices.

By following this guide, you will have established a secure and user-friendly encrypted storage solution that leverages:

  • LUKS2 Encryption: Provides robust disk encryption.
  • TPM2 Integration: Enables automatic unlocking on trusted hardware.
  • FIDO2 Tokens: Offers flexible acc
@onvrb
onvrb / extend.md
Created April 14, 2022 21:36
extend your luks encrypted btrfs

Extend luks encrypted btrfs

  • cfdisk to resize your desired partition. write then quit.
  • cryptsetup resize luks-***... (your luks partition commonly located in /dev/mapper/luks-***...)
  • btrfs filesystem resize max / use max or whatever custom size you want done. reboot not necessary
@jerodg
jerodg / windows_and_office_kms_setup.adoc
Last active December 8, 2025 17:04
Activate Windows and Office Using KMS Server

Microsoft Windows and Office KMS Setup

@eXenon
eXenon / scapy_bridge.py
Last active May 12, 2024 03:00
Use scapy as a modifying proxy
#!/usr/bin/python2
"""
Use scapy to modify packets going through your machine.
Based on nfqueue to block packets in the kernel and pass them to scapy for validation
"""
import nfqueue
from scapy.all import *
import os
@dmitshur
dmitshur / gist:6927554
Last active December 29, 2024 12:06
[Legacy GOPATH mode] How to `go get` private repos using SSH key auth instead of password auth.