背景
在家远程办公的时候 git clone
报错:
remote: HTTP Basic: Access denied
remote: You must use a personal access token with 'api' scope for Git over HTTP.
"解决 `remote: You must use a personal access token with 'api' scope for Git over HTTP.`"继续阅读
在家远程办公的时候 git clone
报错:
remote: HTTP Basic: Access denied
remote: You must use a personal access token with 'api' scope for Git over HTTP.
"解决 `remote: You must use a personal access token with 'api' scope for Git over HTTP.`"继续阅读
sub_filter
和 subs_filter
区别sub_filter
( 0.7.24):替换响应体(Response Body)中的文本,只能设置一组替换。subs_filter
:替换响应体(Response Body)和响应头(Response Headers)中的文本,可以设置多组替换。"CentOS 9 安装 Nginx 模块 `subs_filter`"继续阅读
作为文档工具人,经常需要把代码里面的注释转换成语义化的 Markdown 文档,有时也需要进行反向操作。以前是写正则表达式全局匹配,时间长了这种方式也变得繁琐乏味。所以写了脚本来互转,增加一些便捷性。
"快捷转换/互转 Markdown 文档和 TypeScript/TypeDoc 注释"继续阅读
Warning: the RSA host key for 'github.com' differs from the key for the IP address 'x.x.x.x'
Offending key for IP in /root/.ssh/known_hosts:5
Matching host key in /root/.ssh/known_hosts:9
Are you sure you want to continue connecting (yes/no)?
You can add the RSA host key for github.com
to your server's known_hosts
file to avoid seeing this warning every time you run git pull
. Here's how to do it:
"解决 `Warning: the RSA host key for 'github.com' differs from the key for the IP address 'x.x.x.x'`"继续阅读
在 Go 中,可以使用 fmt.Sprintf()
和 fmt.Printf()
函数来格式化字符串,这两个函数类似于 C 语言中的 scanf
和 printf
函数。
"Go 中的格式化字符串 `fmt.Sprintf()` 和 `fmt.Printf()`"继续阅读
npm
命令运行时,往往通过命令行指定相关配置,最常用的便是使用 --registry
来指定依赖的安装源。
npm install --registry=https://registry.npmmirror.com
同样的效果也可以使用 .npmrc
来实现:
registry=https://registry.npmmirror.com
"Node.js 项目通过 .npmrc 文件指定依赖安装源"继续阅读
读完时间:2022 年 9 月 20 日
出版时间:2021 年 10 月 14 日
Compared to everything else we have to learn, new languages often feel like a poor investment of our time.
"读书笔记:《The Little Go Book》 – Karl Seguin 著"继续阅读