欢迎来到 Akkuman 的博客
- 记录一些有关技术、生活的随想或随笔
欢迎来到 Akkuman 的博客
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 即可共享终端 ...
部署 打开管理界面 -> 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 ...
前言 使用 grafana + loki + alloy 搭建日志收集系统,该系统监控机器上 docker 容器日志,然后推送至 loki,使用 grafana 进行可视化查询 相比于之前在代码中使用 promtail sdk 进行日志推送的方案,该方案无需懂代码 ...
golang + huma 开发过程中,如果你有过前端开发的经验,可能知道最好将 bigint(int64)(比如雪花 id)序列化成字符串(因为 js 处理 bigint 需要额外的手段) ...
原文链接:搭建 golang mips 容器测试环境 | Akkuman 的技术博客 背景 需要golang 编译 mips 程序,然后本地做测试 注意 mips 架构分为很多,以下是名词和对应的含义区别: mips:32 位大端 mipsel/mipsle:32 位小端 mips64:64 位大端 mips64el/mips64le: 64 位小端 记录 编译 golang程序 ...