Skip to content

Instantly share code, notes, and snippets.

View AlKhrulev's full-sized avatar

AlKhrulev

  • Toronto, Canada
  • 02:34 (UTC -05:00)
View GitHub Profile
@phase3dev
phase3dev / claude-glm
Last active July 1, 2026 01:50
Launcher to run GLM 5.2 in Claude Code harness
#!/usr/bin/env bash
set -euo pipefail
# --- Your GLM API key, kept OUT of this script -----------------------------
# Put the key in a private file once (readable only by you), and this launcher
# loads it at runtime. That way the key never lives in this script, so you can
# copy, share, or post the launcher without leaking it.
# mkdir -p ~/.config/glm
# printf '%s\n' 'YOUR_ZAI_API_KEY' > ~/.config/glm/api_key
# chmod 600 ~/.config/glm/api_key # 0600 = only you can read it
@tkafka
tkafka / Detect electron apps causing macOS Tahoe lag.md
Last active July 27, 2026 00:52
Detect Electron apps on mac where the Electron hasn't yet been updated to fix the system wide lag
@Killeroid
Killeroid / gpg-import-and-export-instructions.md
Created October 18, 2017 11:51
How to export and import gpg keys

Every so often I have to restore my gpg keys and I'm never sure how best to do it. So, I've spent some time playing around with the various ways to export/import (backup/restore) keys.

Method 1

Gotten from the RedHat GPG migration manual

Backup the public and secret keyrings and trust database

## Export all public keys

gpg -a --export >mypubkeys.asc

BLACK => "\033[30m",
RED => "\033[31m",
GREEN => "\033[32m",
YELLOW => "\033[33m",
BLUE => "\033[34m",
PURPLE => "\033[35m",
CYAN => "\033[36m",
WHITE => "\033[37m",
# background color