Posts
OpenSpec:让 AI 编程助手先对齐需求,再写代码
· ☕ 10 分钟
1. OpenSpec 是什么 OpenSpec 是一个开源的、轻量级 AI 辅助规格驱动开发框架。它用 Markdown 文件存规格与变更,用 Slash 命令(如 /opsx:propose、/opsx:apply)驱动 AI 助手,用 CLI 管理状态、验证格式、归档变更。 简单说,它把「聊出来的需求」变成「可追踪、可迭代、

ComfyUI Wan2.2 视频生成示例
· ☕ 2 分钟
参考:ComfyUI 官方 Wan2.2 教程 1. 下载模型 进入 ComfyUI 模型目录 1 cd models 下载仓库 1 GIT_LFS_SKIP_SMUDGE=1 git clone https://www.modelscope.cn/Comfy-Org/Wan_2.2_ComfyUI_Repackaged.git 下载模型 1 2 cd Wan_2.2_ComfyUI_Repackaged git lfs pull& 2. 5B 混合版(文生 + 图生) 2.1 下载工作流 1 wget https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/templates/video_wan2_2_5B_ti2v.json 或依次点击 工作流 → 浏览模板 → 视频 → Wan2.2 5B video generation 加载工作流。 2.2 生成视频 Load Diffusion Model → Wan_2.2_ComfyUI_Repackaged/split_files/diffusion_models/wan2.2_ti2v_5B_fp16.safetensors Load CLIP → Wan_2.2_ComfyUI_Repackaged/split_files/text_encoders/umt5_xxl_fp8_e4m3fn_scaled.safetensors Load VAE → Wan_2.2_ComfyUI_Repackaged/split_files/vae/wan2.2_vae.safetensors CLIP Text Encoder →

推理应用故障排查清单
· ☕ 1 分钟
Pod 查看 1 号进程的子进程 1 ps --ppid 1 -f 查看 Time_Wait 连接 1 netstat -anp | grep TIME_WAIT Istio Ingress 1 kubectl -n istio-ingress logs -l app=istio-ingress |grep vlm-tag-v1 EastWestGateway 1 kubectl -n istio-ingress logs -l app=istio-eastwestgateway |grep vlm-tag-v1 XDS 推送慢 1 2 3 4 5 histogram_quantile(0.99, sum by (le, pod, type) ( rate(pilot_xds_push_time_bucket{}[1m]) ) ) 达到 30s 就需要注意优化推送。 Node 抓包 1 tcpdump -i bond0 -n -v -tttt 指定目标 IP 和端口 1 tcpdump -i bond0 -n -v -tttt host 10.0.0.10 AI 安装 Nodejs 1 2 3 4 5 6 7 curl -o-

Elasticsearch troubleshooting
· ☕ 1 分钟
处理 Red 状态的 ES 索引 GET _cat/shards?v=true&h=index,shard,prirep,state,node,unassigned.reason&s=state 1 2 ops-pod-loggie-2026.06.11 0 p UNASSIGNED NODE_LEFT ops-pod-loggie-2026.06.11 0 r UNASSIGNED ALLOCATION_FAILED 尝试重新分配 1 POST _cluster/reroute?retry_failed=true 或者直接删除 1 DELETE ops-pod-loggie-2026.06.11 定时清理索引 全部索引仅保留 7 天 创建 ILM 策略 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 PUT _ilm/policy/ops-delete-after-7d { "policy": { "phases": { "hot": { "actions": {} }, "delete": { "min_age": "7d", "actions": { "delete": {} } } } } } 创建索引模板 1 2 3 4 5 6 7 8 9 10 PUT _index_template/ops-delete-after-7d

容器化部署 Hermes Agent
· ☕ 2 分钟
1. 启动容器 设置镜像 1 export IMAGE=nousresearch/hermes-agent:v2026.6.5 设置目录权限 1 2 mkdir -p hermes-agent-home chmod -R 777 hermes-agent-home 设置环境变量 1 2 3 cat <<EOF > hermes-agent-home/.env GATEWAY_ALLOW_ALL_USERS=true EOF 启动 hermes-agent 1 2 3 4 5 6 7 8 9 10 nerdctl run -d \ --name hermes-agent \ --restart always \ --security-opt apparmor=unconfined \ --security-opt seccomp=unconfined \ --user hermes \ --network host \ -v $(pwd)/hermes-agent-home:/opt/data \ -v $(pwd)/openclaw-home/.openclaw:/opt/data/.openclaw \ $IMAGE gateway run 启动 hermes-agent dashboard 1 2 3 4 5 6 7 8 9 nerdctl run -d \ --name hermes-dashboard \ --restart always \ --security-opt apparmor=unconfined \ --security-opt seccomp=unconfined \ -p 9119:9119 \ -v $(pwd)/hermes-agent-home:/opt/data