一行命令共享 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 分钟

国内使用 gitea action 加速

部署 打开管理界面 -> Actions -> Runners 创建 runner,复制 token,假设为 nU6hLEMzujntxxxxCBz0JxmikkyIySTmoY 1 2 3 4 5 6 7 8 9 10 11 12 13 services: act_runner: image: docker.1panel.live/gitea/act_runner:nightly container_name: act_runner environment: GITEA_INSTANCE_URL: https://git.example.com GITEA_RUNNER_REGISTRATION_TOKEN: nU6hLEMzujntxxxxCBz0JxmikkyIySTmoY GITEA_RUNNER_NAME: 运行器名称 volumes: - /var/run/docker.sock:/var/run/docker.sock - ./data:/data - ./runner_cache:/root/.cache network_mode: host 部署完成,执行命令 sudo docker exec act_runner act_runner generate-config > config.yaml​ ...

十二月 8, 2025 · 2 分钟

非侵入式容器日志收集

前言 使用 grafana + loki + alloy 搭建日志收集系统,该系统监控机器上 docker 容器日志,然后推送至 loki,使用 grafana 进行可视化查询 相比于之前在代码中使用 promtail sdk 进行日志推送的方案,该方案无需懂代码 ...

九月 19, 2025 · 2 分钟

huma 中如何和 int64 搭配使用

golang + huma 开发过程中,如果你有过前端开发的经验,可能知道最好将 bigint(int64)(比如雪花 id)序列化成字符串(因为 js 处理 bigint 需要额外的手段) ...

九月 16, 2025 · 2 分钟

搭建 golang mips 容器测试环境

原文链接:搭建 golang mips 容器测试环境 | Akkuman 的技术博客 背景 需要golang 编译 mips 程序,然后本地做测试 注意 mips 架构分为很多,以下是名词和对应的含义区别: mips:32 位大端 mipsel/mipsle:32 位小端 mips64:64 位大端 mips64el/mips64le: 64 位小端 记录 编译 golang程序 ...

七月 17, 2025 · 2 分钟