Skip to content

Instantly share code, notes, and snippets.

View alexleekt's full-sized avatar
🎯
Focusing

(Alex) Kwan Ting Lee alexleekt

🎯
Focusing
  • United States
View GitHub Profile
@alexleekt
alexleekt / bitwarden-zen-linux-biometrics.md
Created September 2, 2026 06:21
Bitwarden Desktop bridge for Zen Browser on Linux

Bitwarden Desktop bridge for Zen Browser on Linux

This guide documents the non-obvious part of this setup: connecting the official Bitwarden Firefox extension running in Zen Browser to Bitwarden Desktop through Firefox native messaging.

The fingerprint/polkit section is optional. It is included only for users who also want Bitwarden Desktop's Linux system-authentication unlock.

Primary setup: Zen ↔ Bitwarden Desktop bridge

Requirements

@alexleekt
alexleekt / doc-steward.md
Last active August 31, 2026 07:35
Doc Steward — a shared documentation steward subagent pattern for pi + herdr + pi-intercom (project-scoped singleton)

Doc Steward — a shared documentation steward for pi + herdr + pi-intercom

One persistent subagent that owns all documentation edits in a project, serving every simultaneous agent session. Working sessions send verified findings over pi-intercom; the steward edits, validates, commits, and pushes. Sessions never edit or commit docs themselves while the steward is alive. A singleton guard guarantees exactly one steward, and an optional pinned session file means crashes never lose its history.

The steward's name is derived from the project directory

@alexleekt
alexleekt / hermes-autoinstall.yaml
Last active May 15, 2026 05:57
Ubuntu 24.04 autoinstall for a dedicated Hermes AI agent machine
#cloud-config
# Ubuntu 24.04 LTS STANDARD SERVER autoinstall for dedicated Hermes machine
# Username: inference | SSH: GitHub keys only | Password auth: disabled
# Run unattended-upgrades | Reboots once after first-boot tasks finish
#
# TO USE:
# 1. Create meta-data alongside this file:
# instance-id: hermes-01
# local-hostname: hermes-01
# 2. Package both files into a nocloud ISO, mount as CD-ROM, boot Ubuntu installer ISO.
@alexleekt
alexleekt / hermes-dedicated-machine-plan.md
Created May 12, 2026 05:17
Hermes Agent - Dedicated Machine / VM Setup Guide

Hermes Agent — Dedicated Machine / VM Setup Guide

A complete, opinionated plan for setting up a fresh machine (physical or virtual) whose sole job is running the Hermes AI agent reliably 24/7.


1. Operating System Recommendation

Environment Recommended OS Notes
@alexleekt
alexleekt / create.json
Created May 6, 2026 06:37
Package Guard backup
{"status": "initial backup"}
@alexleekt
alexleekt / create.json
Created May 6, 2026 05:47
Package Guard backup
{"status": "initial backup"}
@alexleekt
alexleekt / package-guard-backup.json
Last active June 7, 2026 03:51
Package Guard backup
{
"$schema": "https://raw.githubusercontent.com/alexleekt/pi-extensions/v0.13.1/packages/pi-pkg-guard/schema/package-snapshot.json",
"timestamp": "2026-06-07T03:51:48.227Z",
"npmPackages": []
}
@alexleekt
alexleekt / script.js
Created February 16, 2021 19:51
robinhood history to excel and google sheets
// exports robinhood history to tab-separated file which can be imported to excel and google sheets
//
// modified version of the script from https://medium.com/@anonovation/how-to-download-your-robinhood-transaction-history-357b1ff4df15
// go to https://robinhood.com/account/history in Chrome
// Scroll down to the bottom to where it says “Show more items” and click that button (so that all transactions are shown)
// Open the Chrome Dev Tools window (Windows — Ctrl + Shift + I, Mac — Option + Cmd + I)
// Paste this code into the console
let csv = "Date\tType\tTotal\tPrice per share\tNumber of Shares\n";
let sections = document.querySelectorAll('section');
@alexleekt
alexleekt / alacritty.yml
Last active April 20, 2020 20:56
alacritty.yml
# Reference: https://github.com/alacritty/alacritty/blob/master/alacritty.yml
colors: # https://github.com/arcticicestudio/nord-alacritty
primary:
background: '0x2E3440'
foreground: '0xD8DEE9'
cursor:
text: '0x2E3440'
cursor: '0xD8DEE9'
normal:
@alexleekt
alexleekt / exiftool.sh
Created September 9, 2018 19:00
exiftool renaming script
exiftool -overwrite_original -Artist="Kwan Ting Lee (Alex)" -Copyright="(c) Kwan Ting Lee, all rights reserved" -Credit="photos.alexleekt.com" -Contact="Kwan Ting Lee (Alex), photos@alexleekt.com" '-filename<CreateDate' -d "%Y%m%d_%H%M%S_%%c_alexleekt_5DM2.%%e" -r -ext CR2 .