Skip to content

Instantly share code, notes, and snippets.

@superjamie
superjamie / install-ubuntu-luks-lvm.md
Last active April 29, 2024 19:08
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).

@oprypin
oprypin / instructions.md
Last active April 14, 2024 04:39
systemd user unit + timer example

Save these files as ~/.config/systemd/user/some-service-name.*

Run this now and after any modifications: systemctl --user daemon-reload

Try out the service (oneshot): systemctl --user start some-service-name

Check logs if something is wrong: journalctl -u --user-unit some-service-name

Start the timer after this user logs in: systemctl --user enable --now some-service-name.timer

@lelandrichardson
lelandrichardson / eachAsync.js
Created March 13, 2015 15:17
Asynchronous Serial iteration
function eachAsync(iter, list, delay) {
var i = 0,
stopped = false,
fwhenDone;
delay = delay || 0;
function run() {
iter(list[i], done);
}
function hold() {
@cdwilson
cdwilson / setup_apc_ups.sh
Created July 7, 2012 19:55
Setup APC USB UPS on Ubuntu
#!/bin/sh
# https://help.ubuntu.com/community/apcupsd
# don't actually run this
exit 0
# install apcupsd
sudo apt-get -y install apache2 apcupsd apcupsd-cgi