摘要: import pytest import requests import time from scapy.all import * @pytest.mark.usefixtures("get_config_instance") def test_76_vlan(get_config_instance 阅读全文
posted @ 2024-04-22 11:44 ☞@_@ 阅读(13) 评论(0) 推荐(0) 编辑
摘要: export GOPRIVATE=gitlab.com/xxx 阅读全文
posted @ 2024-03-26 16:54 ☞@_@ 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 以此执行如下命令: docker exec -it containter_name bash su - omm gsql -U user_name -d database_name 阅读全文
posted @ 2024-03-04 17:38 ☞@_@ 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 1、安装libpcre++-dev mac环境依次运行如下命令: brew --prefix pcre export CGO_CFLAGS="-I$(brew --prefix pcre)/include" export CGO_LDFLAGS="-L$(brew --prefix pcre)/li 阅读全文
posted @ 2024-02-01 17:19 ☞@_@ 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 1、sm2 package crypto import ( "crypto/rand" "github.com/emmansun/gmsm/sm2" ) func Sm2Decrypt(priKey, cipherText []byte) (plainText []byte, err error) 阅读全文
posted @ 2024-01-19 10:25 ☞@_@ 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 一、query相关 1. 展示正在处理的请求列表 show processlist 2. 杀掉正在处理的查询 KILL QUERY WHERE query_id='2-857d-4a57-9ee0-327da5d60a90' 二、修改名称 -- 1. 重命名 RENAME DATABASE|TABL 阅读全文
posted @ 2023-09-19 18:31 ☞@_@ 阅读(44) 评论(0) 推荐(0) 编辑
摘要: -- json和jsonb操作符 -- select '[{"a":"foo"},{"b":"bar"},{"c":"baz"}]'::json->2; -- select '{"a": {"b":"foo"}}'::json->'a'; -- 支持 -> -- SELECT '[1,2,3]':: 阅读全文
posted @ 2023-05-17 18:05 ☞@_@ 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 一、clickhouse特性 1、多样化引擎 ClickHouse 和 MySQL 类似,把表级的存储引擎插件化,根据表的不同需求可以设定不同的存储引擎。目前包括合并树、日志、接口和其他四大类 20 多种引擎。 2、高吞吐写入能力 ClickHouse 采用类 LSM Tree 的结构,数据写入后定 阅读全文
posted @ 2023-04-23 16:54 ☞@_@ 阅读(28) 评论(0) 推荐(0) 编辑
摘要: 1、参数说明 使用方法: wrk <选项> <被测HTTP服务的URL> Options: -c, --connections <N> 跟服务器建立并保持的TCP连接数量 -d, --duration <T> 压测时间 -t, --threads <N> 使用多少个线程进行压测 -s, --scri 阅读全文
posted @ 2023-04-21 15:53 ☞@_@ 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 1、使用tshark编辑pcap文件 //过滤掉不是tcp的数据包 tshark -r sichuandianli.pcap -w tcp_output.pcap -Y "tcp" //过滤掉消息长度大于1500字节的数据包 tshark -r outcap.pcap -Y "frame.len < 阅读全文
posted @ 2023-04-20 17:15 ☞@_@ 阅读(110) 评论(0) 推荐(0) 编辑