Skip to content

Instantly share code, notes, and snippets.

@izzyleung
izzyleung / README.md
Last active December 19, 2025 00:29
Manage Homebridge as a SystemD service via Podman

New way

If the version of podman installed in your system supports podlet (a.k.a >= 4.4.0), you should consider using podlet generators to help you generate SystemD unit files.

You should create a file named homebridge.container under $HOME/.config/containers/systemd:

[Unit]
Description=Homebridge Service

[Service]
@izzyleung
izzyleung / README.md
Last active May 23, 2024 19:20
Simplified QMK firmware building guide

Prerequisite

  • Podman or Docker
  • Git

Clone the repository with all the submodules

$ git clone --recurse-submodules https://github.com/qmk/qmk_firmware.git

Create your keymap

@izzyleung
izzyleung / README.md
Last active April 15, 2024 17:51
Strands from New York Times Assistant

Assistant for New York Times Puzzle - Strands

This is a super primitive assistant to help you solve Strands from New York Times

Explanation

  • Read words from /usr/share/dict/words
  • Build Trie
  • BFS on each coordinate, only search when neighbor is not seen, and its letter can make up a word
Details How to cheat
@izzyleung
izzyleung / README.md
Last active July 17, 2023 21:50
NYT Digits Solver

About

This is a program that tries to solve the New York Times Digits game

Usage:

usage: digits_solver [-h] number number number number number number number

NYTimes Digits Solver

positional arguments:
@izzyleung
izzyleung / README.md
Last active December 8, 2025 08:26
Update your WireGuard public key in Mullvad via its public API

Generate a new pair of keys via wg

$ wg genkey | tee privatekey | wg pubkey > publickey

Rotate your public key via the same logic as in Mullvad's source code:

  • Step 1: Obtaining an access token:
$ curl -fsSL -X POST \
    -H 'Content-Type: application/json' \