使用脚本收发 protobuf 协议数据

服务器使用二进制的 protobuf 协议,如何使用脚本模拟请求?答案是将它转成 json 再用 jq 处理,一起来看看吧~

MySQL 数据分组后取第一条数据

SQL SERVER数据分组后取第一条数据——PARTITION BY -- 不加 distinct(a.id) order by 会有问题 导致获取出来的数据不对 SELECT id,title,description,poster_id,poster_time,drug_id FROM ( SE

基于Java Swing和BouncyCastle的证书生成工具

"Almost no one will remember what he had just not interested." - Nobody “几乎没有人会记得他所丝毫不感兴趣的事情。” —— 佚名 0x00 大纲 目录0x00 大纲0x01 前言0x02 技术选型0x03 需求分析目标用户用户故

[转帖]字节换算

https://www.cnblogs.com/huazhixu/p/16544808.html 1B (byte 字节); 1KB(Kilobyte 千字节) = 2^10 B = 1024 B; 1MB(Megabyte 兆字节) = 2^10 KB = 1024 KB = 2^20 B; 1G

selenium Webdriver版本和浏览器版本不匹配问题:ChromeDriver only supports Chrome version 119 Current browser version is 124.0.6367.202

问题描述 代码如下: from selenium import webdriver from selenium.webdriver.common.by import By def test01(): driver = webdriver.Chrome() driver.get("https://ww

[转帖]SystemTap Beginners Guide -profiling

Next ⁠5.3. Profiling The following sections showcase scripts that profile kernel activity by monitoring function calls. ⁠5.3.1. Counting Function Call

[转帖]关于大内存页面 transparent_hugepage

https://www.cnblogs.com/kevinlucky/p/9955486.html Transparent Huge Pages (THP) are enabled by default in RHEL 6 for all applications. The kernel attem

[转帖]Kickstart文件的编写

kickstart 完整示例 https://rtoax.blog.csdn.net/article/details/123448892 # Generated by Anaconda 34.25.0.17 # Generated by pykickstart v3.32 #version=RHEL

[转帖]CKA 真题

https://segmentfault.com/a/1190000021380185 1.列出pod并排序 kubectl get pod --sort-by .metadata.name 题目一般都是按名字排序 2.找出pod中的错误日志 kubectl logs heapster-798fcd

自用小技巧

实时查看日志tail -f cdx-api-1.0.log 随机查询三条数据ORDER BY rand() LIMIT 3 查询创建字段时间大于30分钟的数据TIMESTAMPDIFF( MINUTE, create_time, NOW( ) ) > 30 nginx配置ssl证书http://t.

使用 shell 脚本自动申请进京证 (六环外)

活动在帝都的外地车对进京证应该不陌生,六环外进京证虽然不限次数,但是超过中午就办不了当天的了,你是否还在为出门前才发现忘了办理当天的进京证而懊恼?你是否为办理每周的进京证定过闹钟?如今这一切不堪回首都将过去,欢迎使用 jinjing365 自动办理六环外进京证。

使用百度地图路书为骑行视频添加同步轨迹

想要将骑行视频和轨迹视频同步播放,试了几个工具都实现不了,最后发现 BMapLib.LuShu 组件的一个隐藏功能,完美的满足了我的需求。使用 shell 脚本做了个将轨迹数据一键导出为轨迹动画的工具,期间遇到了坐标转换、遗漏经停点等等难题,进来看看我是怎么解决的吧~

论文推荐|TDSC2022 安全补丁识别最新的方案E-SPI

摘要:TDSC 2022发表了安全补丁识别最新的方案“Enhancing Security Patch Identification by Capturing Structures in Commits” (E-SPI)。 本文分享自华为云社区《【论文推荐】TDSC2022 安全补丁识别最新的方案E

[转帖]Testing Docker multi-host network performance

https://www.percona.com/blog/2016/08/03/testing-docker-multi-host-network-performance/ 03Aug2016 By Vadim Tkachenko Cloud, MySQL Docker, multi-host ne

[转帖]little-endian and big-endian

https://www.cnblogs.com/jenneyblog/archive/2010/06/29/1767330.html Some computer architectures number bytes in a binary word from left to right, which

[转帖]@Autowired 和 @Resource 的区别

@Autowired 和 @Resource 的区别 默认注入方式不同 @Autowired 默认的注入方式为byType(根据类型进行匹配),也就是说会优先根据接口类型去匹配并注入 Bean (接口的实现类),如果想要指定名称,可以通过@Qualifier配合使用。 @Autowired priv

[转帖]Windows Server 2022 简体中文版、英文版下载 (updated Oct 2022)

https://sysin.org/blog/windows-server-2022/ Windows Server 2022 正式版,2022 年 10 月更新,VLSC Posted by sysin on 2022-10-27 Estimated Reading Time 8 Minutes

[转帖]Fallacies of Distributed Systems

https://unchartedterritories.tomaspueyo.com/p/world-chessboard Fallacies of distributed systems are a set of assertions made by L Peter Deutsch and ot

[转帖]关于Java:是否可以覆盖-XX + HeapDumpOnOutOfMemoryError生成的堆转储的文件权限?

https://www.codenong.com/12484559/ Can you override the file permissions for the heap dump produced by -XX+HeapDumpOnOutOfMemoryError? 在Linux上,使用-XX+H

[转帖]linux 内核跟踪神器 BPF 及实战

https://cloud.tencent.com/developer/article/2031857?areaSource=103001.19&traceId=rX8kmZPurwFtXqEtY-bY- 1. 引言 作为一个程序员,在日常工作中,我们往往对于程序的运行情况十分关注,而随着计算机系统