上一页 1 2 3 4 5 6 7 8 9 10 ··· 31 下一页
摘要: ############################### 删除: 删除 ctrl + u : 从光标处向前删除指令串 ctrl + k : 从光标处向后删除指令串 删除(具体可以说是剪切)的字符串可以 ctrl + y 进行粘贴 Ctrl + w: 按照单次向前删除,删除光标前面的单词 移动: 阅读全文
posted @ 2021-07-15 15:14 igoodful 阅读(39) 评论(0) 推荐(0) 编辑
摘要: ################################### 先上效果图: 第一步:配置字体: 第二步:选择主题: 第三步:买个32寸的显示器,比如VOC,白色的显示器就很不错,简洁美观 ################################# 阅读全文
posted @ 2021-07-14 21:09 igoodful 阅读(84) 评论(0) 推荐(0) 编辑
摘要: ######################### 业务反映某一天这个Lock wait timeout异常特别严重,于是找到我来排查,这不很明显的吗?就是等待锁超时异常了,但是呢,业务不知道哪个地方出现了锁等待,也不清楚什么sql导致的,拉一堆人马在那里等待我救命 于是,我迅雷不及掩耳之势查找了m 阅读全文
posted @ 2021-07-13 18:08 igoodful 阅读(740) 评论(0) 推荐(0) 编辑
摘要: ########################### 首先,咱们的mysql数据库拓扑结构如下: 拓扑简要说明: 1)lvs:这是业务使用的连接,通常提供ip和port给业务,比如lvs提供了ip为10.10.10.10,port为6688 2)kingshard是go语言实现的一个中间件,这里将 阅读全文
posted @ 2021-07-13 15:07 igoodful 阅读(144) 评论(0) 推荐(0) 编辑
摘要: ############################## go build --ldflags “-s -w ” -o myexe main.go -X importpath.name=value 编译期设置变量的值 -s disable symbol table 禁用符号表 -w disabl 阅读全文
posted @ 2021-07-13 11:56 igoodful 阅读(457) 评论(0) 推荐(0) 编辑
摘要: ################ Makefile有三个非常有用的变量。分别是$@,$^,$<代表的意义分别是: $@--目标文件, $^--所有的依赖文件, $<--第一个依赖文件。 ########################### 阅读全文
posted @ 2021-07-13 11:29 igoodful 阅读(54) 评论(0) 推荐(0) 编辑
摘要: ########################################### 在桌面右键,选择“显示设置”: 选择“高级显示设置”: 选择“显示适配器属性”:(因为我是将笔记本外接AOC显示器,因此会有两个显示器:笔记本自带的显示器和AOC外接显示器) 选择“监视器”: 选择75HZ: # 阅读全文
posted @ 2021-07-10 03:48 igoodful 阅读(1609) 评论(0) 推荐(0) 编辑
摘要: ####################### 1).MySQL中的全文索引是FultLeXT类型的索引。 2).全文索引只能用于InnoDB或MyISAM表,只能为CHAR、VARCHAR、TEXT列创建。 3).在MySQL 5.7.6中,MySQL提供了支持中文、日文和韩文(CJK)的内置全文 阅读全文
posted @ 2021-07-08 17:58 igoodful 阅读(508) 评论(0) 推荐(0) 编辑
摘要: ############################################ https://www.percona.com/doc/percona-backup-mongodb/installation.html#install-pbm-on-red-hat-enterprise-li 阅读全文
posted @ 2021-07-07 15:42 igoodful 阅读(1185) 评论(0) 推荐(0) 编辑
摘要: ############################# Barycenter({(2, 0), (0, 2), (-2, 0), (0, -2)}, {1, 1, 1, 1}) yields point A(0, 0) Barycenter({(2, 0), (0, 2), (-2, 0), ( 阅读全文
posted @ 2021-07-06 22:23 igoodful 阅读(381) 评论(1) 推荐(0) 编辑
摘要: ############################# 结论:一亿行数据:花费时间约2个半小时 环境:内存为128G,磁盘为固态硬盘,cpu为40核,Silver4210处理器,处理器主频/睿频为2.20GHz/3.20GHz 表行数:109124722 执行时间:8399.792s 开始时间: 阅读全文
posted @ 2021-07-06 14:15 igoodful 阅读(90) 评论(0) 推荐(0) 编辑
摘要: ############################ 获取某个配置参数的值: xxx:PRIMARY> db.runCommand( { getParameter :1, "cursorTimeoutMillis":1 } ) { "cursorTimeoutMillis" : NumberLo 阅读全文
posted @ 2021-06-28 10:51 igoodful 阅读(1030) 评论(0) 推荐(0) 编辑
摘要: #################################### 地址:https://github.com/alibaba/canal.git ################################## 阅读全文
posted @ 2021-06-24 17:37 igoodful 阅读(336) 评论(0) 推荐(0) 编辑
摘要: ################################################# 代码位置:https://github.com/chaosblade-io/chaosblade-exec-os.git 文件位置:chaosblade-exec-os/exec/bin/burnio 阅读全文
posted @ 2021-06-24 16:41 igoodful 阅读(147) 评论(0) 推荐(0) 编辑
摘要: ################################# root@10.10.10.10 (mac) > show create table apple\G *************************** 1. row *************************** Ta 阅读全文
posted @ 2021-06-23 14:45 igoodful 阅读(455) 评论(0) 推荐(0) 编辑
摘要: ################################### 问题出现背景: falcon监控集群,一是由于长期大量的写数据,二是业务用来清理过期数据的定时任务异常而停止了,导致数据量持续增长,直到达到了报警阈值 当前现状:单表的ibd文件大小为2.1T,磁盘空间总共才2.6T [work 阅读全文
posted @ 2021-06-18 14:22 igoodful 阅读(914) 评论(0) 推荐(0) 编辑
摘要: ############################# mysql服务器使用时间越久,性能越差,这句话像是一句废话, 特别是当服务器上的mysql服务处于较大的QPS的时候,就会非常明显 那么是如何发现的呢? 在我给falcon监控业务替换机器的时候,发现同配置的新机器的从库主从延迟很小很小,而 阅读全文
posted @ 2021-06-08 11:28 igoodful 阅读(72) 评论(0) 推荐(0) 编辑
摘要: ################################ mysql删除binlog日志的正确方式: purge binary logs to 'mysql-bin.039790'; purge binary logs before '2021-06-06 22:46:26'; ; #### 阅读全文
posted @ 2021-06-07 10:05 igoodful 阅读(670) 评论(0) 推荐(0) 编辑
摘要: ############# func (c *multiBankClient) DumpState(ctx context.Context) (interface{}, error) { txn, err := c.db.Begin() if err != nil { return nil, err 阅读全文
posted @ 2021-05-31 10:09 igoodful 阅读(207) 评论(0) 推荐(0) 编辑
摘要: ############################# 错误写法: var DB *sql.DB func init() { DB, err := sql.Open("mysql", "tmp:tmp@tcp(10.10.10.10:3306)/mysql") if err != nil { r 阅读全文
posted @ 2021-05-28 11:20 igoodful 阅读(586) 评论(1) 推荐(0) 编辑
摘要: ############################# 01 展开:展开因式:expand(f) 幂函数:则根据次数从高到低 三角函数:展开角部分 指数:展开指数部分 >> z=(x+y+3)*(2*x-4*y+7)+sin(x+y)+exp(x+y)+log(x*y) z = exp(x + 阅读全文
posted @ 2021-05-15 03:35 igoodful 阅读(491) 评论(0) 推荐(0) 编辑
摘要: ######################## 01:数据显示格式: 实数以小数点后14位显示: format long; 以最接近的有理数显示 format rational; 实数默认以小数点后4位 format; >> pi ans = 3.1416 >> format long >> pi 阅读全文
posted @ 2021-05-15 00:41 igoodful 阅读(83) 评论(12) 推荐(0) 编辑
摘要: ####################### 在实际的业务种,我们可能会有这么一种场景:需要我们主动的通知某一个goroutine结束。比如我们开启一个后台goroutine一直做事情,比如监控,现在不需要了,就需要通知这个监控goroutine结束,不然它会一直跑,就泄漏了。 我们都知道一个go 阅读全文
posted @ 2021-05-14 10:58 igoodful 阅读(300) 评论(0) 推荐(0) 编辑
摘要: ######################### 控制并发有两种经典的方式,一种是WaitGroup,另外一种就是Context,今天我就谈谈Context。 什么是WaitGroup WaitGroup以前我们在并发的时候介绍过,它是一种控制并发的方式,它的这种方式是控制多个goroutine同 阅读全文
posted @ 2021-05-14 10:30 igoodful 阅读(83) 评论(0) 推荐(0) 编辑
摘要: 这是我目前见过的git资料中,最优秀的书籍了,有pdf版本: 阅读全文
posted @ 2021-05-10 21:27 igoodful 阅读(112) 评论(0) 推荐(0) 编辑
摘要: ########################### 一:直接输入:同行数据之间用空格或逗号分隔,不同行之间用分号或回车: % 逗号分隔同行元素:>> [1,2,3;4,5,6] ans = 1 2 3 4 5 6 % 空格分隔同行元素:>> [10 20 30;40 50 60] ans = 1 阅读全文
posted @ 2021-05-03 01:53 igoodful 阅读(187) 评论(0) 推荐(0) 编辑
摘要: ############################ 结论一:处理公共事件的能力,中国最优,日韩次之,欧美再次之,印度最差! 结论二:中国遭遇公共危机的时候,印度则毫无关心,夜郎自大的印度选择了无视,作为一个合格的政府首脑,遇到这种级别的危机,难道不应该极其关注吗? 结论三:任何国家遇到这种级别 阅读全文
posted @ 2021-05-02 00:40 igoodful 阅读(79) 评论(0) 推荐(0) 编辑
摘要: ################################ 案例一:自变量从1到length(y) >> x=linspace(0.1,6,50); >> stem(sin(x)) 案例二:指定自变量: >> x=linspace(0.1,6,100); >> stem(x,sin(x)) 案 阅读全文
posted @ 2021-05-01 01:38 igoodful 阅读(105) 评论(0) 推荐(0) 编辑
摘要: ################################### 一:合并绘图: plot(X1,Y1,LineSpec1,...,Xn,Yn,LineSpecn) x = linspace(-2*pi,2*pi,200); y1 = sin(x); y2 = cos(x); plot(x,y 阅读全文
posted @ 2021-04-30 23:08 igoodful 阅读(992) 评论(1) 推荐(0) 编辑
摘要: ################################## 一:符号表达式expr对自变量x在a处的极限:limit(expr,x,a) 二:符号表达式expr对自变量x在a处的左极限:limit(expr,x,a,'left') 三:符号表达式expr对自变量x在a处的右极限:limit 阅读全文
posted @ 2021-04-29 21:13 igoodful 阅读(1006) 评论(0) 推荐(0) 编辑
摘要: ################################# 表达式f对自变量从a到b求和:其中inf表示正无穷大 F = symsum(f,k,a,b) F = symsum(f,k) syms k x S1 = symsum(k^2, k, 0, 10) S2 = symsum(1/k^2 阅读全文
posted @ 2021-04-29 21:05 igoodful 阅读(2704) 评论(0) 推荐(0) 编辑
摘要: ############################# sym/taylor taylor(f) is the fifth order Taylor polynomial approximation of f about the point x=0 (also known as fifth or 阅读全文
posted @ 2021-04-29 20:53 igoodful 阅读(1942) 评论(0) 推荐(0) 编辑
摘要: ################################### 四舍五入: 取模: ################################## 阅读全文
posted @ 2021-04-27 19:52 igoodful 阅读(60) 评论(0) 推荐(0) 编辑
摘要: ################################# ########################### 阅读全文
posted @ 2021-04-26 23:12 igoodful 阅读(71) 评论(0) 推荐(0) 编辑
摘要: ####################### 表示: 一:行向量>> a=[1,2,3] a = 1 2 3 二:列向量>> b=[4;5;6] b = 4 5 6 三:矩阵 >> c=[1,2,3;4,5,6] c = 1 2 3 4 5 6 行向量的产生与转换: 一:冒号法>> a=2:10 阅读全文
posted @ 2021-04-26 22:44 igoodful 阅读(504) 评论(0) 推荐(0) 编辑
摘要: ####################### >> realmax ans = 1.7977e+308 >> realmin ans = 2.2251e-308 >> pi ans = 3.1416 >> eps ans = 2.2204e-16 >> ans ans = 2.2204e-16 > 阅读全文
posted @ 2021-04-26 22:30 igoodful 阅读(130) 评论(0) 推荐(0) 编辑
摘要: #################################### ####################### 阅读全文
posted @ 2021-04-26 22:23 igoodful 阅读(707) 评论(0) 推荐(0) 编辑
摘要: ################## 使用XShell或者SecureCRT可以用rz、sz命令上下传文件到本地windows,但经常会上传一部分后退出并显示一堆乱码,这是因为这中间有控制字符的原因。 解决方式是使用: rz -bey 我们知道用linux命令rz/sz可以通过一些终端软件如secu 阅读全文
posted @ 2021-04-23 15:26 igoodful 阅读(10316) 评论(1) 推荐(1) 编辑
摘要: ##################################### 举例说明: root@10.10.10.10(test) > select * from apple; + + + + + | id | uuid | name | title | + + + + + | 1 | 1 | g 阅读全文
posted @ 2021-04-22 12:23 igoodful 阅读(145) 评论(0) 推荐(0) 编辑
摘要: ########################## 纳秒级别时间: const ( Nanosecond Duration = 1 Microsecond = 1000 * Nanosecond Millisecond = 1000 * Microsecond Second = 1000 * Mi 阅读全文
posted @ 2021-04-19 11:06 igoodful 阅读(48) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 31 下一页