Skip to content

Instantly share code, notes, and snippets.

@superjamie
superjamie / 2014-09-21-the-8-byte-two-step-redux.md
Last active November 10, 2022 05:33
The 8-Byte Two-Step Redux
@superjamie
superjamie / 2014-10-31-running-a-python-script-only-if-it's-not-already-running.md
Last active November 10, 2022 05:34
Running a Python script only if it's not already running
@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 / branch-fu.md
Created August 21, 2016 10:27 — forked from unbracketed/branch-fu.md
Moving commits between branches

Example: Moving up to a few commits to another branch

Branch A has commits (X,Y) that also need to be in Branch B. The cherry-pick operations should be done in the same chronological order that the commits appear in Branch A.

cherry-pick does support a range of commits, but if you have merge commits in that range, it gets really complicated

git checkout branch-B
git cherry-pick X
git cherry-pick Y
@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 / 2016-04-28-reversing-for-dummies.md
Last active November 10, 2022 05:46
Reversing for Dummies - Brisbane SecTalks 0x09
@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 / 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).

@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 / 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