Skip to content

Instantly share code, notes, and snippets.

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

@superjamie
superjamie / raspberry-pi-vpn-router.md
Last active April 13, 2024 12:22
Raspberry Pi VPN Router

Raspberry Pi VPN Router

This is a quick-and-dirty guide to setting up a Raspberry Pi as a "router on a stick" to PrivateInternetAccess VPN.

Requirements

Install Raspbian Jessie (2016-05-27-raspbian-jessie.img) to your Pi's sdcard.

Use the Raspberry Pi Configuration tool or sudo raspi-config to:

@superjamie
superjamie / iso2chd.sh
Created December 17, 2023 00:06
iso2chd - Bash script to convert ISO to CHD
#!/bin/bash
if [ -z "$1" ]; then
echo "Usage: $0 ISO|CUE"
echo " Converts input file to same-name CHD"
exit
fi
if ! [ -x "$(which chdman)" ]; then
echo "ERROR: Need chdman. Install mame-tools."
@superjamie
superjamie / marblemouse.conf
Created June 14, 2020 01:54
xorg.conf for Logitech Trackman Marble Mouse
# https://help.ubuntu.com/community/Logitech_Marblemouse_USB
# https://wiki.archlinux.org/index.php/Logitech_Marble_Mouse
#
# Xorg Functions
# 1 = Left Click
# 2 = Middle Click
# 3 = Right Click
# 4 = Mouse Cursor Down
# 5 = Mouse Cursor Up
# 6 = Mouse Cursor Left
@superjamie
superjamie / 2020-01-14-delay-loop-in-6502-assembly.md
Last active August 20, 2023 05:53
Delay Loop in 6502 Assembly
@superjamie
superjamie / 2022-08-06-ncursesw.md
Last active November 10, 2022 05:50
How to ncursesw (as of 2022)
@superjamie
superjamie / 2022-11-06-sdl-fullscreen-scaling.md
Last active November 10, 2022 05:49
How to do SDL 2D Fullscreen and Scaling
@superjamie
superjamie / 2022-11-04-c-static-analysis-tools-part-2.md
Last active November 10, 2022 05:49
C Static Analysis Tools - Part 2
@superjamie
superjamie / 2022-05-24-c-static-analysis-tools.md
Last active November 10, 2022 05:48
C Static Analysis Tools
@superjamie
superjamie / 2016-04-28-reversing-for-dummies.md
Last active November 10, 2022 05:46
Reversing for Dummies - Brisbane SecTalks 0x09