Blog posts

2026

Give AI Agents Sudo with SUDO_ASKPASS

2 minute read

Published:

When an agent cannot type a sudo password into a TTY, a short zenity askpass helper unlocks a stable sudo -A workflow.

Using BaiduPCS-Go cli

4 minute read

Published:

BaiduPCS-Go is a command-line Baidu Netdisk client.

VFS 签证预约系统访问慢,可以先检查 DNS

1 minute read

Published:

在中国使用 VFS 签证预约系统时,如果 Cloudflare 验证加载很慢、页面经常卡死或登录被临时锁定,可以先尝试把 DNS 改成 1.1.1.1 和 8.8.8.8。

Ubuntu 下给微信添加显示/隐藏快捷键

1 minute read

Published:

Linux 版微信在 Ubuntu 中没有内置的显示/隐藏窗口快捷键,可以用 xdotool 和 GNOME 自定义快捷键实现一个类似的切换功能。

BLE Random Address Type Bits

1 minute read

Published:

BLE random device addresses encode their address type in the two most significant bits of the random address.

A Professional Git Worktree Workflow with a Bare Repository

7 minute read

Published:

If you regularly switch between branches, keep separate runtime environments, or want AI agents to work without disturbing your main checkout, a bare repository plus git worktree is one of the cleanest setups.