摘要: git clone https://github.com/kiennq/emacs-build cd emacs-build .\emacs-build.cmd --slim --clone --deps --variant mps --build --branch scratch/igc --wi 阅读全文
posted @ 2024-12-03 10:23 七つ一旋桜 阅读(288) 评论(0) 推荐(0)
摘要: 配置文件可以参考helix的lsp配置文件helix/languages.toml at master · helix-editor/helix 例如添加go的lsp配置 使用M-x lsp-copilot-open-config-file打开配置文件 [language-server.gopls] 阅读全文
posted @ 2024-11-17 21:26 七つ一旋桜 阅读(136) 评论(0) 推荐(0)
摘要: pipx install semgrep GO111MODULE=on CGO_ENABLED=0 go install -v -trimpath -ldflags '-s -w' github.com/golangci/golangci-lint/cmd/golangci-lint@latest 阅读全文
posted @ 2024-11-15 18:36 七つ一旋桜 阅读(51) 评论(0) 推荐(0)
摘要: 尝试编译 安装nixpkgs sh <(curl -L https://nixos.org/nix/install) --daemon 为nixpkgs换源 nix-channel --add https://mirrors.ustc.edu.cn/nix-channels/nixpkgs-unst 阅读全文
posted @ 2024-06-20 23:20 七つ一旋桜 阅读(68) 评论(0) 推荐(0)
摘要: 依赖 implementation("org.ufoss.kotysa:kotysa-spring-jdbc:3.2.1") implementation("org.springframework.data:spring-data-jdbc") implementation("com.alibaba 阅读全文
posted @ 2023-11-28 18:15 七つ一旋桜 阅读(84) 评论(0) 推荐(0)
摘要: mold mold目前不支持windows 在 Linux 上,实际上非常容易使用,只需安装 Mold,然后在 cargo 命令前加上 mold -run 。例如, mold -run cargo build 。也可以在 .cargo/config.toml 中启用,就像这样: [target.x8 阅读全文
posted @ 2023-11-23 14:57 七つ一旋桜 阅读(384) 评论(0) 推荐(0)
摘要: go mod tidy出现报错 dial tcp: lookup proxy.golang.org on [::1]:53: read udp [::1]:46622->[::1]:53: read: connection refused 解决方案 编辑/etc/resolv.conf,添加如下内容 阅读全文
posted @ 2023-11-20 14:40 七つ一旋桜 阅读(955) 评论(0) 推荐(0)
摘要: 启动容器时添加--net host参数即可 podman run -d -p 80:80 --rm --network=host --name nginx nginx 如果有防火墙可以尝试放行端口 # 放行 ufw allow 80 # 关闭 ufw deny 80 阅读全文
posted @ 2023-11-20 13:08 七つ一旋桜 阅读(239) 评论(0) 推荐(0)
摘要: 安装 /bin/bash -c "$(curl -sL https://gitee.com/nanakura/apt-fast-mirror/raw/main/install.sh)" 使用 sudo apt-fast install git build-essential gdb-multiarc 阅读全文
posted @ 2023-11-19 16:32 七つ一旋桜 阅读(67) 评论(0) 推荐(0)
摘要: gin package main import ( "flag" "fmt" "github.com/gin-gonic/gin" "github.com/valyala/fasthttp/reuseport" "log" "net" "net/http" "os" "os/exec" "runti 阅读全文
posted @ 2023-11-14 12:31 七つ一旋桜 阅读(121) 评论(0) 推荐(0)