Blog posts

2026

GRUB’s GRUB_DEFAULT and GRUB_SAVEDEFAULT: Flexible but Confusing Design

6 minute read

Published:

GRUB splits reading and writing the saved boot entry across GRUB_DEFAULT and GRUB_SAVEDEFAULT. That flexibility helps admins and automation, but it exposes mechanism instead of user intent—and nested configfile menus can silently break remember-last-selection.

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.