Skip to content

Instantly share code, notes, and snippets.

@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 / 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 / raspberry-pi-vpn-router.md
Last active December 29, 2024 07:04
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 / 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 / 2014-09-21-the-8-byte-two-step-redux.md
Last active November 10, 2022 05:33
The 8-Byte Two-Step Redux