Skip to content

Instantly share code, notes, and snippets.

@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 / 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-08-06-ncursesw.md
Last active November 10, 2022 05:50
How to ncursesw (as of 2022)
@superjamie
superjamie / 2022-05-24-c-static-analysis-tools.md
Last active November 10, 2022 05:48
C Static Analysis Tools
@superjamie
superjamie / 2022-01-24-raspberry-pi-os-raspbian-bash-ps1-prompt-explained.md
Last active November 10, 2022 05:30
Raspberry Pi OS (Raspbian) Bash PS1 Prompt Explained
@superjamie
superjamie / v700-fashion-gaming-streamer-rgb-keyboard.md
Last active February 1, 2022 23:37
V700 Fashion Gaming Streamer RGB Keyboard

I got one of these cheap keyboards for a laugh:

It's a 61-key keyboard with some Fn function keys like a laptop.

They come with a manual which explains most of the operation but not all.

@superjamie
superjamie / install-ubuntu-luks-lvm.md
Last active November 8, 2024 18:28
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 / 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 / 2016-04-28-reversing-for-dummies.md
Last active November 10, 2022 05:46
Reversing for Dummies - Brisbane SecTalks 0x09