摘要: git log和git help的运用 git log --pretty=oneline git log -p 展开显示每次提交的内容差异 git log -n 仅显示最近的几次变更 git log --stat 仅显示简要的增改行数统计 git log --pretty=format: "%h - 阅读全文
posted @ 2021-03-14 14:05 ty1539 阅读(63) 评论(0) 推荐(0) 编辑
摘要: 参考自: https://blog.csdn.net/TomorrowAndTuture/article/details/108611882 git daemon 好似没有用 新建,初始化空目录仓库 [root@ /home/PythonProject]$ mkdir git [root@ /hom 阅读全文
posted @ 2021-03-12 10:25 ty1539 阅读(453) 评论(0) 推荐(0) 编辑
摘要: 1.git的配置命令 配置命令: git config 配置系统项目: git config --system[选项] 配置文件位置:/etc/gitconfig 配置全局项目: git config --global[选项] 配置文件位置:~.gitconfig 配置当前项目: git confi 阅读全文
posted @ 2021-03-03 09:44 ty1539 阅读(57) 评论(0) 推荐(0) 编辑
摘要: grpc的自用ssl协议证书: 报错 rpc error: code = Unavailable desc = connection error: desc = "transport: authentication handshake failed: x509: certificate relies 阅读全文
posted @ 2021-02-22 14:41 ty1539 阅读(312) 评论(0) 推荐(0) 编辑
摘要: https://www.liwenzhou.com/posts/Go/go_nsq/ 阅读全文
posted @ 2021-01-21 21:22 ty1539 阅读(54) 评论(0) 推荐(0) 编辑
摘要: mysql的备份和恢复 >>> mysqldump -uroot -p stu > stu.sql >>> mysqldump -uroot -p stu < stu.sql 阅读全文
posted @ 2021-01-20 22:55 ty1539 阅读(50) 评论(0) 推荐(0) 编辑
摘要: 1. 生成列表的费时对比 #_*_coding:utf-8_*_ from timeit import Timer def test1(): li =[] for i in range(10000): li.append(i) def test2(): li = [] for i in range( 阅读全文
posted @ 2021-01-20 22:51 ty1539 阅读(94) 评论(0) 推荐(0) 编辑
摘要: proto生成proto.go protoc -I . --go_out=plugins=grep:. ./user.proto 阅读全文
posted @ 2021-01-18 16:39 ty1539 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 3.1事件循环 理解成为一个死循环,去检测并执行某些代码。 仿代码 任务列表-【任务1。任务2。任务3.] while True: 可执行的任务列表,已完成的任务列表 = 去任务列表中检查所有的任务,将"可执行" 和 "已完成"的任务返回 for就绪任务 in可执行的任务列表: 执行已就堵旳任务 f 阅读全文
posted @ 2021-01-14 17:20 ty1539 阅读(77) 评论(0) 推荐(0) 编辑
摘要: 1、常用文件 /etc/samba/smb.conf #配置文件 /etc/samba/lmhosts #对应NetBOIS名与主机的IP的文件,一般samba会自动搜索(只对本机生效) /etc/samba/smbpasswd #samba密码保存文件,默认不存在 /etc/samba/smbus 阅读全文
posted @ 2021-01-14 16:39 ty1539 阅读(153) 评论(0) 推荐(0) 编辑