摘要:
- func Cbrt(x float64) float64 // 立方根函数 - func Pow(x, y float64) float64 // x 的幂函数 - func Pow10(e int) float64 // 10 根的幂函数 - func Sqrt(x float64) floa 阅读全文
posted @ 2021-03-31 12:46
贝隆
阅读(1083)
评论(0)
推荐(0)
|
摘要:
- func Cbrt(x float64) float64 // 立方根函数 - func Pow(x, y float64) float64 // x 的幂函数 - func Pow10(e int) float64 // 10 根的幂函数 - func Sqrt(x float64) floa 阅读全文
posted @ 2021-03-31 12:46
贝隆
阅读(1083)
评论(0)
推荐(0)
摘要:
惰性匹配.*? 1、. 匹配任意除换行符“\n”外的字符;2、*表示匹配前一个字符0次或无限次;3、?表示前边字符的0次或1次重复4、+或*后跟?表示非贪婪匹配,即尽可能少的匹配,如*?重复任意次,但尽可能少重复;5、 .*? 表示匹配任意数量的重复,但是在能使整个匹配成功的前提下使用最少的重复。如 阅读全文
posted @ 2021-03-17 14:08
贝隆
阅读(344)
评论(0)
推荐(0)
摘要:
clone某标签代码 git clone --branch calcite-1.18.0 https://hub.fastgit.org/apache/calcite.git 查看当前分支 git branch 切换到其他标签 git checkout xxx 切换到标签 git checkout 阅读全文
posted @ 2021-03-17 11:30
贝隆
阅读(2121)
评论(0)
推荐(0)
摘要:
#!/bin/bash#es_index_delete.sh#日期: 2020.07.07#DATE=`date -d "-226 days" "+%Y.%m.%d"`ES_URL=10.155.200.7:9200#删除七天前过期索引#curl -XDELETE http://${ES_URL}/ 阅读全文
posted @ 2021-03-15 20:32
贝隆
阅读(148)
评论(0)
推荐(0)
摘要:
#获取末尾字符 TIM=`tail -c 18 a1.json | egrep -o "[0-9]+"` #查询多字段中包含的关键字,单引号中要获取变量值,需要用单引号包住$变量 curl -X GET 'http://127.0.0.1:9200/dra-nta-dt_packet_http_se 阅读全文
posted @ 2021-03-15 20:29
贝隆
阅读(2622)
评论(0)
推荐(0)
摘要:
循环创建表 drop procedure IF EXISTS create_table; DELIMITER //CREATE procedure create_table() BEGIN SET @i=0; WHILE @i < 10 DO SET @sqlstr = CONCAT( "CREAT 阅读全文
posted @ 2021-01-22 15:44
贝隆
阅读(75)
评论(0)
推荐(0)
摘要:
1.mongodb常用操作 1.1聚合,查询,更新 // 3.1db.sensitive_info_base.aggregate([{ "$match" :{"date":{ "$gte" : 20201223}}}, { "$group" : { "_id" : "$sensitive_type" 阅读全文
posted @ 2021-01-13 12:08
贝隆
阅读(114)
评论(0)
推荐(0)
摘要:
排序算法 Mysql中当order by不能使用索引进行排序时,将使用排序算法进行排序: 若排序内容能全部放入内存,则仅在内存中使用快速排序; 若排序内容不能全部放入内存,则分批次将排好序的内容放入文件,然后将多个文件进行归并排序 若排序中包含limit语句,则使用堆排序优化排序过程 代码实现地址: 阅读全文
posted @ 2020-12-21 14:11
贝隆
阅读(162)
评论(0)
推荐(0)
摘要:
1.格式化新分区 fdisk /dev/sda n, 默认 ,w创建/dev/sda3重启机器格式化 mkfs.xfs /dev/sda3 2.创建对应的vg,并扩容 pvcreate /dev/sda3 vgs vgextend centos /dev/sda3 vgs lvs lvextend 阅读全文
posted @ 2020-12-14 12:13
贝隆
阅读(418)
评论(0)
推荐(0)
摘要:
切换到需要提交commit的分支, git checkout master 选择一个待合入的commit hash,多个hash值,按提交时间顺序排序。即最先提交的commit放在前面。 git cherry-pick hash1 hash2 a - b - c - d - hash1 - hash 阅读全文
posted @ 2020-11-16 19:20
贝隆
阅读(162)
评论(0)
推荐(0)
|