Skip to content

Instantly share code, notes, and snippets.

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