Latest

回首向来萧瑟处 也无荒野也无灯

  • Published on
    之前有一用一个 Chrome 插件优化 Github UI 体验的,叫 [refined-github](https://github.com/refined-github/refined-github) 当然现在我已经没有使用了,主要是由于 Github UI 更新太快,有时候它追不太上。容易导致一些奇怪的 UI问题。 它有一个神奇的功能是, 你访问他人的 github profile, 或者, 鼠标悬浮在某人头像上时,它会显示出这个用户是在哪个时区,此时此刻他是几点。 后面我发现,它其实是通过 github restful api 去获取仓库的 commit log 信息, 然后找到最近的一条是作者本人提交的 commit, 通过 git 本身记录的原 commit log ...
  • Published on
    之前为了方便解密客户端日志,我基于 https://github.com/Tencent/mars/tree/master/mars/xlog/crypt/decode_log_file_c_impl 写了个简单的命令行工具 `xlog-decode`。 这个工具很简单, 就是支持递归地解密当前目录及其下所有的 xlog 文件 (由于是公司项目,因此 xlog 文件的后缀是统一且固定的)。 如 `foo/xxx.xlog` 会自动解密在同级目录下,变成 `foo/xxx.xlog.log` 最近一次编译还是几年前,这不有童鞋需要我给他编译一个 Mac (Intel CPU版) 版的(ps: 我是 Linux 用户),于是有了这个文章。 ...
  • Published on
    有这个文章是因为,曾经不小心看到了 Arch wiki 里有个神奇的页面, 里面介绍了"回"字的X种写法 然后我在 C+ glib2 这种写法上面翻车了: https://wiki.archlinux.org/title/Desktop_notifications#C 完全按 wiki 来的: Dependency: `glib2` Build with: ```shell gcc -o hello_world `pkg-config --cflags --libs gio-2.0` hello_world.c ``` ```c:hello_world.c #include <gio/gio.h> int main() { ...
  • Published on
    ## kernel modules 以 pve 8 (基于 debian 12) 为例,里面的 zfs 模块在 `/lib/modules/$(uname -r)/zfs/` 目录。 ```shell root@pve:~# ls -lh /lib/modules/$(uname -r)/zfs/ total 4.1M -rw-r--r-- 1 root root 569K Jun 17 13:58 icp.ko -rw-r--r-- 1 root root 241K Jun 17 13:58 spl.ko -rw-r--r-- 1 root root 29K Jun 17 13:58 zavl.ko ...
  • Published on
    ## 使用 GNOME 自定义快捷键无法调起 flameshot gui 这个解决办法主要来自 https://github.com/flatpak/xdg-desktop-portal/issues/1070#issuecomment-1762884545 注意, 这里比较奇怪的是,直接在 GNOME 自定义 key binding 里面的 command 写上 `/usr/bin/env QT_QPA_PLATFORM=wayland flameshot gui` 是不会工作的. 必须通过 shell 脚本执行。暂时不知道原因。 ```shell sudo tee /usr/local/bin/flameshot-gui-workaround > /dev/null <<'EOF' ...
Subscribe to the newsletter