Akkuman 的博客

欢迎来到 Akkuman 的博客

  • 记录一些有关技术、生活的随想或随笔

headless-wps arm64 后续

有用过 [akkuman/headless-wps: run wps](https://linux.wps.cn/) in headless docker 的人可能知道这个一直没有 arm64 版本,此处记录下探索历程(相关内容均来自 是否有可能提供arm版本的镜像 · Issue #7 · akkuman/headless-wps) TLDR 4k 页大小内核的 arm64 linux,应该可以正常使用 64k 页大小内核的 arm64 linux,和 libcef(浏览器) 相关的功能存在严重的功能缺失 ...

三月 19, 2026 · 4 分钟

为什么我的 powershell 启动这么慢

背景 我的 windows terminal 每次启动 powershell 都很慢,并且会打印这样一行 1 Loading personal and system profiles took 1704ms. 排查 首先我们不加载任何内容,在 cmd 中执行 pwsh -NoProfile,powershell 立即启动,并且没有打印上面的日志 ...

三月 3, 2026 · 1 分钟

Clean up old versions of VSCode

introduce As is well known, this is a long-standing bug: VS Code always leaves behind old versions of extensions when upgrading extensions. 众所周知,这是一个长期存在的 bug:VS Code 在升级扩展程序时总是会留下旧版本的扩展程序。 Previously, this space usage was not a problem, but with the emergence of AI programming extensions, after long-term operation, the size of the related extensions may reach the GB level, quickly filling up the disk. ...

二月 28, 2026 · 1 分钟

迁移git仓库已有文件到 lfs

问题背景 我已经有了一个 .gitattributes 文件,我希望将仓库中的大文件全部重写到 lfs 上 .gitattributes 文件样例如下: 1 2 3 4 assets/geolite2-asn-ipv4.mmdb filter=lfs diff=lfs merge=lfs -text assets/geolite2-asn-ipv6.mmdb filter=lfs diff=lfs merge=lfs -text assets/qqwry.dat filter=lfs diff=lfs merge=lfs -text assets/zxipv6wry.db filter=lfs diff=lfs merge=lfs -text 最终解决方案(TLDR) 1 2 3 4 5 6 7 # 首先安装 git-filter-repo uv tool install git-filter-repo # 然后将 .gitattributes 添加到每个提交 HASH=$(git hash-object -w "$(pwd)/.gitattributes") git filter-repo --force --commit-callback "commit.file_changes.append(FileChange(b'M', b'.gitattributes', b'${HASH}', b'100644'))" # 然后使用 --fixup 根据 .gitattributes 文件转换为 lfs 格式 git lfs migrate import --everything --fixup 注意:该方案仅适用于 gitattributes 文件中不包含 exclude 规则的情况 ...

二月 5, 2026 · 2 分钟

一行命令共享 SSH 终端会话

1 TMP_DIR=$(mktemp -d) && trap 'rm -rf "$TMP_DIR"' EXIT && curl -fsSL https://github.com/owenthereal/upterm/releases/download/v0.20.0/upterm_linux_amd64.tar.gz | tar -xz -C "$TMP_DIR" && "$TMP_DIR"/upterm host && rm -rf "$TMP_DIR" upterm 是 tmate.io 的替代品 该命令会在执行完成后删除 upterm 文件 然后会打印出来 1 2 3 4 5 6 7 8 9 10 11 12 13 ╭─ Session: oNWF9treC2UudFSY7Ztx ─╮ ┌─────────┬────────────────────── ┐ │ Command: │ /bin/bash │ │ Force Command: │ n/a │ │ Host: │ ssh://uptermd.upterm.dev:22 │ │ Authorized Keys: │ n/a │ │ │ │ │ ➤ SSH Command: │ ssh [email protected] │ └─────────┴────────────────────── ┘ ╰─ Run 'upterm session current' to display this again ─╯ 🤝 Accept connections? [y/n] (or <ctrl-c> to force exit) 按 y 即可共享终端 ...

十二月 11, 2025 · 1 分钟