Skip to content

Instantly share code, notes, and snippets.

View pahud's full-sized avatar
🏠
Working from home

Pahud Hsieh pahud

🏠
Working from home
View GitHub Profile
@pahud
pahud / ssh-refresh.sh
Created February 16, 2026 20:11
Script to refresh SSO tokens
#!/bin/bash
# ┌─────────────────────────────────────────────────┐
# │ SSO Token Auto-Refresh for sso-bot session │
# │ │
# │ [Check TTL] ──► TTL < 1hr? ──► [AWS SSO Login] │
# │ │ │ │ │
# │ ▼ ▼ ▼ │
# │ Valid ✓ Expiring ⚠ Telegram 📱 │
# └─────────────────────────────────────────────────┘
#
@pahud
pahud / SANDBOX.md
Last active February 17, 2026 04:02
圖解 OpenClaw SandBox 設計與現況
@pahud
pahud / example.md
Created February 6, 2026 02:43
一次創建路人甲乙丙丁四個subagents

使用方式

直接跟Agent說:

參考以網址下配置範例, 設定四個subagents,名稱比照下面的配置,唯獨home dir做相應的修改符合實際路徑。注意:只新增或修改 subagents 配置即可,model部分不要調整。 https://gist.github.com/pahud/141c35bd9a84af0befe52a4ff475bd2f

 "agents": {
@pahud
pahud / openclaw.json
Created February 6, 2026 02:02
OpenClaw multi-agent sample
{
"bindings": [
{
"agentId": "main",
"match": {
"channel": "telegram",
"accountId": "default"
}
},
{
@pahud
pahud / openclaw.json.md
Last active February 23, 2026 02:06
~/.openclaw/openclaw.json for Aamzon Bedrock API KEY
@pahud
pahud / qchat.sh
Created June 11, 2025 00:20
~/.local/bin/qchat.sh
#!/bin/bash
echo "Searching for trusted tools..."
TOOLS=$(grep -v "not trusted$" "$0" | grep "trusted$" | sed 's/^- \([^ ]*\).*/\1/' | tr '\n' ',' | sed 's/,$//')
echo "Found tools: $TOOLS"
if [ -z "$TOOLS" ]; then
echo "Warning: No trusted tools found!"
exit 1
fi
#!/bin/sh
kubectl --namespace=kube-system get po
helm upgrade --install --create-namespace -n nginx my-nginx oci://registry-1.docker.io/bitnamicharts/nginx
kubectl --namespace=nginx get po
@pahud
pahud / updatePrice.ts
Last active May 12, 2022 02:25
Apps Script to update STEPN prices
function updateData(){
// var ss = SpreadsheetApp.getActiveSpreadsheet(),
var sheet = SpreadsheetApp.getActive().getSheetByName('GST')
let coins = [
'green-satoshi-token-bsc',
'green-satoshi-token',
'binancecoin',
'solana',
];
var prices = getCGSimplePrices(coins.join(','), 'usd')