Skip to content

Instantly share code, notes, and snippets.

@superjamie
superjamie / install-ubuntu-luks-lvm.md
Last active January 14, 2025 18:31
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).

@Jiab77
Jiab77 / create-DNS-over-TLS-bridge-with-unbound-stubby-and-systemd-on-ubuntu-server-18.04.md
Last active October 16, 2024 03:22
This gist will explain how to create a DNS-over-TLS bridge for the local network.
@chriswayg
chriswayg / show_openbsd_filesets.sh
Created September 12, 2019 07:27
Display a list of file sets which have been installed by the OpenBSD installer
#!/bin/sh
set -e
# This script displays a list file sets which have been installed by the OpenBSD installer.
# It only checks one typical file per file set, as well as checking for the (renamed) bsd.mp kernel.
printf "\nInstalled OpenBSD file sets:\n"
[[ -f /bsd.sp ]] && printf "[X] bsd\n"
[[ -f /bsd ]] && [[ -f /bsd.mp ]] && printf "[X] bsd\n"
[[ -f /bsd.mp ]] && printf "[X] bsd.mp\n"
@nathwill
nathwill / pf.conf
Last active December 22, 2024 17:33
a dummy's sample pf.conf
# $OpenBSD: pf.conf,v 1.52 2013/02/13 23:11:14 halex Exp $
#
# See pf.conf(5) for syntax and examples.
#
# Remember to set net.inet.ip.forwarding=1 and/or net.inet6.ip6.forwarding=1
# in /etc/sysctl.conf if packets are to be forwarded between interfaces.
### Macros
# system