win11安装emacs+igc+mps
摘要:
git clone https://github.com/kiennq/emacs-build cd emacs-build .\emacs-build.cmd --slim --clone --deps --variant mps --build --branch scratch/igc --wi
emacs使用lsp-copilot作为lsp-client添加新语言的lsp配置
摘要:
配置文件可以参考helix的lsp配置文件helix/languages.toml at master · helix-editor/helix 例如添加go的lsp配置 使用M-x lsp-copilot-open-config-file打开配置文件 [language-server.gopls]
emacs go-mode
摘要:
pipx install semgrep GO111MODULE=on CGO_ENABLED=0 go install -v -trimpath -ldflags '-s -w' github.com/golangci/golangci-lint/cmd/golangci-lint@latest
ubuntu下使用spdk-rs
摘要:
尝试编译 安装nixpkgs sh <(curl -L https://nixos.org/nix/install) --daemon 为nixpkgs换源 nix-channel --add https://mirrors.ustc.edu.cn/nix-channels/nixpkgs-unst
kotlin orm kotysa笔记
摘要:
依赖 implementation("org.ufoss.kotysa:kotysa-spring-jdbc:3.2.1") implementation("org.springframework.data:spring-data-jdbc") implementation("com.alibaba
使用mold和cranelift加速rust构建速度
摘要:
mold mold目前不支持windows 在 Linux 上,实际上非常容易使用,只需安装 Mold,然后在 cargo 命令前加上 mold -run 。例如, mold -run cargo build 。也可以在 .cargo/config.toml 中启用,就像这样: [target.x8
dial tcp: lookup proxy.golang.org on [::1]:53: read udp [::1]:46622->[::1]:53: read: connection refused
摘要:
go mod tidy出现报错 dial tcp: lookup proxy.golang.org on [::1]:53: read udp [::1]:46622->[::1]:53: read: connection refused 解决方案 编辑/etc/resolv.conf,添加如下内容
podman容器无法从外部连接
摘要:
启动容器时添加--net host参数即可 podman run -d -p 80:80 --rm --network=host --name nginx nginx 如果有防火墙可以尝试放行端口 # 放行 ufw allow 80 # 关闭 ufw deny 80
Ubuntu中使用apt-fast加速apt的执行速度
摘要:
安装 /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
go启用prefork
摘要:
gin package main import ( "flag" "fmt" "github.com/gin-gonic/gin" "github.com/valyala/fasthttp/reuseport" "log" "net" "net/http" "os" "os/exec" "runti