Skip to content

Instantly share code, notes, and snippets.

View kaihendry's full-sized avatar

Kai Hendry kaihendry

View GitHub Profile
@kaihendry
kaihendry / index.html
Created October 23, 2025 14:24
Terminal output HTML
<pre>
╭─── Claude Code v2.0.25 ────────────────────────────────────────────────────────────────────────────────╮
│ │ Tips for getting started │
│ Welcome back! │ Run /init to create a CLAUDE.md file with instructions for Claude │
│ │ ───────────────────────────────────────────────────────────────── │
│ ▐▛███▜▌ │ Recent activity │
│ ▝▜█████▛▘ │ No recent activity │
│ ▘▘ ▝▝ │ │
│ │ │
│ Sonnet 4.5 · API Usage Billing │ │
@kaihendry
kaihendry / index.html
Created October 23, 2025 14:01
Terminal output HTML
<pre>╭─── Claude Code v2.0.25 ──────────────────────────────────────────────────────────────────────────────────╮
│ │ Tips for getting started │
│ Welcome back! │ Run /init to create a CLAUDE.md file with instructions for Claude │
│ │ ───────────────────────────────────────────────────────────────── │
│ ▐▛███▜▌ │ Recent activity │
│ ▝▜█████▛▘ │ No recent activity │
│ ▘▘ ▝▝ │ │
│ │ │
│ Sonnet 4.5 · API Usage Billing │ │
│ /Users/hendry/tmp/snowflake-oidc
esphome:
name: esphome-web-995964
friendly_name: ESPHome Web A
min_version: 2025.9.0
name_add_mac_suffix: false
esp32:
variant: esp32
framework:
type: arduino
event=ac_adapter ACPI0003:00 00000080 00000000
action=/etc/acpi/actions/power-loss.sh
#!/bin/bash
# Check if running on battery (optional, but good practice)
on_ac=$(acpi -a | grep -c "on-line")
if [ "$on_ac" -eq 0 ]; then
logger "Power loss detected (ACPI event), initiating suspend."
systemctl suspend
fi
@kaihendry
kaihendry / main.go
Last active October 24, 2024 13:47
Minimal HTMX 2.0 example in Golang
package main
import (
"log"
"net/http"
"math/rand"
)
func main() {
@kaihendry
kaihendry / gist:8f8a5dc352cb831f93e7ff48234e6117
Created May 19, 2024 06:10
02:00.0 Network controller: Qualcomm Technologies, Inc QCNFA765 Wireless Network Adapter (rev 01)
Wiphy phy0
wiphy index: 0
max # scan SSIDs: 16
max scan IEs length: 138 bytes
max # sched scan SSIDs: 16
max # match sets: 16
Retry short limit: 7
Retry long limit: 4
Coverage class: 0 (up to 0m)
Device supports RSN-IBSS.
❯ helm install op prometheus-community/kube-prometheus-stack
NAME: op
LAST DEPLOYED: Mon Mar 4 13:59:29 2024
NAMESPACE: default
STATUS: deployed
REVISION: 1
NOTES:
kube-prometheus-stack has been installed. Check its status by running:
kubectl --namespace default get pods -l "release=op"
@kaihendry
kaihendry / set-secret.sh
Created January 25, 2024 17:01
Store a secret
name=$1
value=$2
aws ssm put-parameter \
--name "${name}" --value "${value}" --type "SecureString"
@kaihendry
kaihendry / t14g3-6.0.6-arch1-1
Created October 31, 2022 06:08
journalctl -k -b -p err
Oct 31 10:03:23 t14g3 kernel: ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PCI0.GPP1], AE_NOT_FOUND (20220331/dswload2-162)
Oct 31 10:03:23 t14g3 kernel: ACPI Error: AE_NOT_FOUND, During name lookup/catalog (20220331/psobject-220)
Oct 31 10:03:23 t14g3 kernel: ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PCI0.GPP2], AE_NOT_FOUND (20220331/dswload2-162)
Oct 31 10:03:23 t14g3 kernel: ACPI Error: AE_NOT_FOUND, During name lookup/catalog (20220331/psobject-220)
Oct 31 10:03:23 t14g3 kernel: ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PCI0.GPP2.WWAN], AE_NOT_FOUND (20220331/dswload2-162)
Oct 31 10:03:23 t14g3 kernel: ACPI Error: AE_NOT_FOUND, During name lookup/catalog (20220331/psobject-220)
Oct 31 10:03:23 t14g3 kernel: ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PCI0.GPP0], AE_NOT_FOUND (20220331/dswload2-162)
Oct 31 10:03:23 t14g3 kernel: ACPI Error: AE_NOT_FOUND, During name lookup/catalog (20220331/psobject-220)
Oct 31 10:03:23 t14g3 kernel: ACPI BIOS Error (bug): Failur