摘要: 简易的命令行入门教程: Git 全局设置: git config --global user.name "xxxx" git config --global user.email "xxx@qq.com" 创建 git 仓库: mkdir test02 cd test02 git init touc 阅读全文
posted @ 2021-09-17 14:45 语不停 阅读(31) 评论(0) 推荐(0) 编辑
摘要: nohup 基本使用, 阅读全文
posted @ 2021-09-09 09:22 语不停 阅读(90) 评论(0) 推荐(0) 编辑
摘要: python的版本比较多,不同的项目 会使用不同的python 以及 不同的类库依赖;在同一台电脑上有一个python的环境管理器就非常实用。 anaconda: 非常好用官网地址:https://www.anaconda.com/ pyenv : GitHub: https://github.co 阅读全文
posted @ 2021-07-08 16:43 语不停 阅读(41) 评论(0) 推荐(0) 编辑
摘要: 在java语言中有maven 来管理项目的包和库;在JavaScript 中有npm 和cnpm 进行管理项目的包; 在PHP中有composer中管理项目的包。 那么在go 语言中也有包管理器,是 mod;go modules ,这个是随着 Go 1.11 的发布和我们见面的,这是官方提倡的新的包 阅读全文
posted @ 2021-07-06 16:28 语不停 阅读(123) 评论(0) 推荐(0) 编辑
摘要: pip 国内源的地址有: 阿里云 http://mirrors.aliyun.com/pypi/simple/中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/豆瓣(douban) http://pypi.douban.com/simple/清华大学 ht 阅读全文
posted @ 2021-07-05 16:51 语不停 阅读(42) 评论(0) 推荐(0) 编辑
摘要: package main import "fmt" type ListNode struct { next *ListNode value interface{} } type LinkedList struct { head *ListNode length uint } func NewList 阅读全文
posted @ 2021-06-22 18:12 语不停 阅读(43) 评论(0) 推荐(0) 编辑
摘要: 了解和介绍目前市面的的数据库产品以及选型。 1.MySQL 2.Oracle 3.Redis 4.Mongdb 5.PostgreSql 6.OceanBase 7.TIdb 8.sqlite 9.SQL server 10.Cassandra 11.&Elasticsearch 12.etcd 1 阅读全文
posted @ 2021-06-16 09:31 语不停 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 1.查看GOPATH 及其go的其它相关参数。 在命令行中执行: go env 2. 简单的使用beego: 使用go下载命令 把 beego 源码下载到了 GOPATH 的github.com 中。 3.Golang源码探索(二) 协程的实现原理 https://studygolang.com/a 阅读全文
posted @ 2021-06-10 16:58 语不停 阅读(30) 评论(0) 推荐(0) 编辑
摘要: 业务:每次更新 2 3条数据,然后提交事务,在业务量大的时候,可以达到上百万条更新 导致 提交达到 数十万个commit ,过于频繁的commit 导致了 大量log file sync等待 ,从而导致 及时是以 id 主键作为条件 更新 也导致了数据无法更新成功。 解决方案: 可以更新 100 - 阅读全文
posted @ 2021-06-10 11:50 语不停 阅读(122) 评论(0) 推荐(0) 编辑
摘要: /** * Method to tail (a few last rows) of a file. * * @param $filename * @param int $lines * @param int $buffer * * @return string */ public function 阅读全文
posted @ 2021-06-07 13:50 语不停 阅读(36) 评论(0) 推荐(0) 编辑