Skip to content

Instantly share code, notes, and snippets.

View tdgunes's full-sized avatar
🎯
Focusing

Taha Doğan Güneş tdgunes

🎯
Focusing
View GitHub Profile
@steffenmueller4
steffenmueller4 / k3s-syncthing.yaml
Last active October 21, 2025 19:58
Kubernetes (k3s + Traefik) Syncthing Deployment
---
apiVersion: v1
kind: Namespace
metadata:
name: syncthing
labels:
name: syncthing
---
apiVersion: v1
kind: PersistentVolumeClaim
@theharold
theharold / Configure TPM2 to automatically unlock LUKS encrypted drive during boot on Ubuntu Server.md
Created December 11, 2022 22:17
Configure TPM2 to automatically unlock LUKS encrypted drive during boot on Ubuntu Server

This is a step by step document to help you setup unlocking LUKS partition with Clevis. However, Arch Linux Wiki details the built in support for unlocking LUCS without requiring Clevis but the steps are not entirely cleaar.

Step 1: Install Clevis packages and refresh the TPM permissions

$ sudo -i
# apt install clevis clevis-tpm2 clevis-luks clevis-udisks2 clevis-systemd clevis-initramfs -y
# udevadm trigger
@return1
return1 / trim_enabler.txt
Last active August 1, 2025 02:11
TRIM Enabler for OS X Yosemite 10.10.3
#
# UPDATE for 10.10.4+: please consider this patch obsolete, as apple provides a tool called "trimforce" to enable trim support for 3rd party SSDs
# just run "sudo trimforce enable" to activate the trim support from now on!
#
# Original version by Grant Parnell is offline (http://digitaldj.net/2011/07/21/trim-enabler-for-lion/)
# Update July 2014: no longer offline, see https://digitaldj.net/blog/2011/11/17/trim-enabler-for-os-x-lion-mountain-lion-mavericks/
#
# Looks for "Apple" string in HD kext, changes it to a wildcard match for anything
#
# Alternative to http://www.groths.org/trim-enabler-3-0-released/