| title | tags | created | status | language | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
กระจกไม่ได้ยึดบังลังก์: Oracle Philosophy ตอบ Harari ที่ WEF 2026 |
|
2026-01-21 |
draft |
th |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # claude-cleanup - Kill orphan Claude Code processes | |
| # Usage: claude-cleanup [--dry-run] | |
| DRY_RUN=false | |
| [[ "$1" == "--dry-run" ]] && DRY_RUN=true | |
| # Count before | |
| BEFORE=$(ps aux | grep -E "claude.*resume" | grep -v grep | wc -l | tr -d ' ') | |
| MEM_BEFORE=$(ps aux | grep -E "claude.*resume" | grep -v grep | awk '{sum+=$6} END {printf "%.0f", sum/1024}') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // OpenCode Plugin: Prepend prefix to all user messages | |
| // | |
| // DISCOVERY: Message structure uses msg.info.role, NOT msg.role! | |
| // Structure: { info: { role: "user" }, parts: [{ type: "text", text: "..." }] } | |
| // | |
| // INSTALLATION: | |
| // 1. Save this file to: ~/.config/opencode/plugins/prefix.ts (global) | |
| // OR: .opencode/plugins/prefix.ts (project-level) | |
| // 2. Restart OpenCode | |
| // 3. Test by asking: "What are the first 5 characters of this message?" |
AI Agent Safety Hook - blocks dangerous commands before execution
Repo: https://github.com/Dicklesworthstone/destructive_command_guard Learned: 2026-01-18 16:01
| Instructor | Nat Weerawan (ณัฐ วีระวรรณ์) |
| Version | 2.0 |
| Created | 13 January 2026 |
| Contact | nat.wrw@gmail.com |
NewerOlder