Linux下各项代理设置 发表于 2019-12-31 更新于 2020-06-07 分类于 coding 阅读次数: Valine: GIT设置 12345# 只对github生效git config --global http.https://github.com.proxy socks5://127.0.0.1:1080# 对所有生效git config --global http.proxy http://127.0.0.1:8118git config --global https.proxy http://127.0.0.1:8118 阅读全文 »
Golang中使用Protobuf 发表于 2019-12-22 更新于 2020-06-07 分类于 coding 阅读次数: Valine: 安装protochttps://github.com/protocolbuffers/protobuf/releases 下载对应版本的protoc 安装protoc-gen-go https://godoc.org/github.com/golang/protobuf/protoc-gen-go 1go get github.com/golang/protobuf/protoc-gen-go 生成go文件1protoc --go_out=output_directory input_directory/file.proto proto文件编写原文译文
公钥私钥对生成 发表于 2019-10-30 更新于 2020-06-07 分类于 coding 阅读次数: Valine: 生成公钥私钥对1ssh-keygen 通过私钥生成公钥1ssh-keygen -y -f id_rsa > id_rsa.pub
PHP调用curl设置CURLOPT_TIMEOUT_MS小于1秒时无效 发表于 2019-05-13 更新于 2020-06-07 分类于 coding 阅读次数: Valine: 今天使用php调用curl时碰到一个奇怪的问题,现象为当CURLOPT_TIMEOUT_MS小于1000时,直接返回错误 代码如下: 阅读全文 »
Mac外接2k显示器开启HiDPI支持 发表于 2019-05-13 更新于 2020-06-07 分类于 coding 阅读次数: Valine: 关闭SIP(System Integrity Protection) 关机 按住 command+R 开机 实用工具 -> 终端 输入 csrutil disable,回车 重启系统 12-bash-3.2# csrutil disableSuccessfully disabled System Integrity Protection. Please restart the machine for the changes to take effect. 阅读全文 »