Skip to content

Instantly share code, notes, and snippets.

View Sidpatchy's full-sized avatar
🛠️
Has more projects than free time

Sidpatchy

🛠️
Has more projects than free time
View GitHub Profile
@hivian
hivian / raspberry-pi-static-ip.md
Last active April 2, 2025 23:53
Set a static IP Address on Raspberry Pi OS Bookworm (october 2023 update)

Use static network IP address on Raspberry PI Bookworm

With the release of Raspberry Pi OS Bookworm, networking on the Raspberry Pi was changed to use NetworkManager as the standard controller for networking, replacing the previous dhcpcd system. NetworkManager includes a command line tool called "nmcli," which can control NetworkManager and report on the network status.

Step 1

Display the list of network interfaces:

sudo nmcli -p connection show

Fix magisk stock backup does not exist

# put stock boot.img into /sdcard/boot.img

# get sha1
adb shell
su
SHA1=$(cat $(magisk --path)/.magisk/config | grep SHA1 | cut -d '=' -f 2)
@sm-Fifteen
sm-Fifteen / whats_a_yubikey.md
Last active September 8, 2025 05:52
"What the heck is a Yubikey and why did I buy one?": A user guide

"What the heck is a Yubikey and why did I buy one?": A user guide

(EDIT: Besides Reddit, I've also put this up on Github Gist)

So while looking for information on security keys before getting one myself, I got very confused reading about all the different modes and advertised features of Yubikeys and other similar dongles. The official documentation tends to be surprisingly convoluted at times, weirdly organized and oddly shy about a few of the limitations of these keys (which I'm making a point of putting front and center). Now that I have one, I decided to write down everything I figured out in order to help myself (and hopefully some other people reading this) make sense of all this.

Since I'm partly writing these notes for myself, there might be some back and forth between "exp