阿萍的博客

“工具”

将 mdbook 部署到 GitHub Pages

创建文件 .github/workflows/mdbook.yaml:https://github.com/felicityin/wtd-bayarea-mdbook/blob/main/.gi...

Consul KV Store

读写 KV Storedemo: https://github.com/felicityin/consul-testWhat is consul’s KV store ?Consul’s KV ...

go 编译为 flutter 可调用的 API

安装可参考如下链接:https://studygolang.com/articles/19679https://www.cnblogs.com/ghj1976/p/gomobile-pei-zh...

halo2 example

源码:https://zcash.github.io/halo2/user/simple-example.html 证明 $a^2⋅b^2=c$private 数据:a, bpublic 数据:...

npm 发布包

在 npm 官网上注册账户,本步略。修改 tsconfig.jsona. 打开如下注释:"declaration": true这一步是为了在执行打包命令 yarn run b...

初始化一个 typescript 项目

1 初始化 typescript 项目mkdir demo-ts cd demo-ts yarn init yarn add typescript npx tsc --init创建文件:mkdi...

git fork 后与原仓库同步

git remote add upstream https://github.com/selfteaching/the-craft-of-selfteaching.git git fetch u...

K8s 切换身份

如果有多套 k8s 环境,比如本地一套,线上一套,需要切换身份:kubectl config use-context infra@kubernetes其中,infra@kubernetes 可以...

Nginx 代理 TCP 和 UDP

在 nginx 配置文件的末尾添加:stream { log_format proxy '$remote_addr [$time_local] ' '$...

解析命令行参数

#!/bin/sh TEMP=`getopt -o a:b: --long aa:,bb: -- "$@"` eval set -- "$TEMP" ...