Skip to content

Instantly share code, notes, and snippets.

View alanzchen's full-sized avatar

Alan Chen alanzchen

View GitHub Profile
@alanzchen
alanzchen / keynote.scpt
Created September 4, 2023 04:57 — forked from lambdamusic/keynote.scpt
Apple Keynote: export presenter notes. This version accounts for skipped slides.
-- HOWTO:
-- after saving it, open with Script Editor (default) and run it
-- PREREQUISITES:
-- make sure your Keynote presentation is open in the background
-- AFTER EXPORT:
-- if you can't open the file due to encoding errors, open with Sublime (or another a text editor) and then "File / Save with encoding / UTF8"
tell application "Keynote"
@alanzchen
alanzchen / README.md
Created April 29, 2026 01:40
Himalaya + Ortie redacted setup templates and guide

Himalaya + Ortie Setup Guide (Redacted Template)

This guide is for setting up a new mail account on a new machine using Ortie (OAuth token flow) and Himalaya (IMAP client).

Files in this gist

  • ortie-config.redacted.toml: Ortie OAuth/account template
  • himalaya-config.redacted.toml: Himalaya account template
  • SETUP_GUIDE.md: this guide
@alanzchen
alanzchen / colab_cloudflare_init.py
Last active July 24, 2026 15:32
Cloudflare-only Colab SSH worker init script
#!/usr/bin/env python3
"""Cloudflare-only Colab SSH worker bootstrap.
Designed to be safe for a public GitHub gist. All deployment-specific values are
read from environment variables:
Required:
COLAB_WORKER_PUBLIC_KEY
SSH public key to authorize for root login in the Colab runtime.