摘要: go 不同系统编译 阅读全文
posted @ 2021-08-23 10:29 有为则无心 阅读(177) 评论(0) 推荐(0) 编辑
摘要: &命令 用途:在后台运行 nohup 命令 用途:不挂断地运行命令。 语法:nohup Command [ Arg … ] [ & ] nohup python3 main.py >> main.log 2> &1 & 0:代表 – stdin (standard input)标准输入 1: 代表– 阅读全文
posted @ 2021-07-14 14:48 有为则无心 阅读(977) 评论(0) 推荐(0) 编辑
摘要: keycloak使用心得 阅读全文
posted @ 2021-05-24 11:10 有为则无心 阅读(1206) 评论(1) 推荐(0) 编辑
摘要: 性能分析:htop 代码同步部署工具:Rsync,Git Hook,Laravel Envoy 阅读全文
posted @ 2021-04-21 19:27 有为则无心 阅读(47) 评论(0) 推荐(0) 编辑
摘要: 循环添加数据到表: DO $$DECLAREi INTEGER := 1;BEGIN WHILE i < 10000000 LOOP insert into "beego-api"."User" (name, phone) values (concat('name', i, NULL, NULL), 阅读全文
posted @ 2021-04-16 11:02 有为则无心 阅读(87) 评论(0) 推荐(0) 编辑
摘要: go 时间日期格式化 年2006 月01 日02 时03(12小时算)/15(24小时算) 分01 秒05 year1 := time.Now().Format("060102") fmt.Println("year1: ", year1) year2 := time.Now().Format("2 阅读全文
posted @ 2021-03-26 17:01 有为则无心 阅读(123) 评论(0) 推荐(0) 编辑
摘要: golang 的fmt 包实现了格式化I/O函数,类似于C的 printf 和 scanf。 # 定义示例类型和变量 type Human struct { Name string } var people = Human{Name:"zhangsan"} 1|0普通占位符 占位符 说明 举例 输出 阅读全文
posted @ 2021-01-19 13:58 有为则无心 阅读(75) 评论(0) 推荐(0) 编辑
摘要: settings.json 文件配置 { "editor.wordWrap": "off", "go.useLanguageServer": false, "editor.minimap.renderCharacters": false, "editor.minimap.enabled": fals 阅读全文
posted @ 2020-12-14 17:08 有为则无心 阅读(683) 评论(0) 推荐(0) 编辑
摘要: 安装适用于Linux的Windows子系统 适用于Linux的Windows子系统有两个不同的版本,可以在安装过程中进行选择。WSL 2具有更好的整体性能,我们建议使用它。如果您的系统不支持WSL 2,或者您遇到需要跨系统文件存储的特殊情况,那么您可能希望坚持使用WSL1。了解有关比较WSL 2和W 阅读全文
posted @ 2020-11-19 14:13 有为则无心 阅读(307) 评论(0) 推荐(0) 编辑
摘要: python 常用开发技巧 列表推导式 >>> chars = [ c for c in 'python' ] >>> chars ['p', 'y', 't', 'h', 'o', 'n'] 字典推导式 >>> dict1 = {'a': 1, 'b': 2, 'c': 3, 'd': 4, 'e 阅读全文
posted @ 2020-11-12 20:03 有为则无心 阅读(63) 评论(0) 推荐(0) 编辑