工具
-缘故-
这个作者很懒,什么都没留下…
展开
-
wireshark 实用过滤表达式(针对ip、协议、端口、长度和内容)
首先说几个最常用的关键字,“eq” 和 “==”等同,可以使用 “and” 表示并且,“or”表示或者。“!" 和 "not” 都表示取反。 一、针对wireshark最常用的自然是针对IP地址的过滤。其中有几种情况: (1)对源地址为192.168.0.1的包的过滤,即抓取源地址满足要求的包。 表达式为:ip.src == 192.168.0.1转载 2016-10-12 08:40:19 · 758 阅读 · 0 评论 -
shell 按行读文件
i=0cat body.txt | while read LINEdo echo "$LINE" i=$((i+1))echo $idone原创 2019-01-02 10:21:57 · 479 阅读 · 0 评论 -
go pprof 使用说明
简单版import( "net/http" _ "net/http/pprof" )go func() { log.Info(http.ListenAndServe("localhost:6060", nil))}()$ go tool pprof http://10.111.101.121:6060/debug/pprof/profile$ web转载 2019-01-02 10:21:09 · 1737 阅读 · 0 评论 -
git 清理本地分支
git remote show origingit remote prune origin原创 2018-12-25 10:37:52 · 3382 阅读 · 0 评论 -
librdkafka 生产者 消费者 使用
// installgit clone https://github.com/edenhill/librdkafka.gitcd librdkafka./configure --prefix /usrmakesudo make installexport PKG_CONFIG_PATH=/usr/lib/pkgconfig//mabyeln -s /usr/lib/librdka...原创 2018-12-25 10:36:12 · 903 阅读 · 0 评论 -
ffprobe 分析视频信息
ffprobe -i 1.mp4 -v quiet -print_format json -show_streams -select_streams v:0{ "streams": [ { "index": 0, "codec_name": "h264", "codec_long_name": ...原创 2018-12-25 10:30:04 · 3604 阅读 · 0 评论 -
ffmpeg MP4 moov 前移
-y -c:v copy -c:a libfdk_aac -movflags faststart ffmpeg -i '0.mp4' -y -c:v copy -c:a libfdk_aac -movflags faststart 1.mp4原创 2018-12-25 10:25:47 · 2337 阅读 · 0 评论 -
下载ts 拼接成flv
#!/usr/bin/env bash url=$2 echo `pwd`$1/$1.flv cd /tmp/ mkdir $1 cd $1 wget $2_$1/$1.m3u8 i=0 cat $1.m3u8 |grep ts | while read line do echo "file '"$line"'" >> $1.txt ...原创 2018-12-25 10:24:20 · 717 阅读 · 0 评论 -
vmaf 安装使用
vmaf安装# 系统版本 MacOS 10.13.2brew install gcc freetype pkg-config homebrew/science/hdf5 python# 替换 MacOS 自带的 Pythonecho "export PATH=/usr/local/opt/python/libexec/bin:$PATH" >> ~/.bash_profile...原创 2018-12-25 10:20:48 · 3895 阅读 · 0 评论 -
直播延迟相关的知识
https://www.processon.com/view/56ebb341e4b01c9aeb5f137f https://github.com/ossrs/srs/wiki/v1_CN_LowLatency延迟主要由推流延迟+gop延迟+网络延迟引起,其中gop特征和网络链路质量是两个关键因素; GOP表示视频流中两个I帧的时间距离 解码器只有拿到GOP才能开始解码播放。对于在意首...原创 2017-09-05 12:45:24 · 719 阅读 · 0 评论 -
MySql避免重复插入记录
方案一:使用ignore关键字如果是用主键primary或者唯一索引unique区分了记录的唯一性,避免重复插入记录可以使用:insert ignore into table_name(email,phone,user_id) values('test9@163.com','99999','9999'),这样当有重复记录就会忽略,执行后返回数字0,还有个应用就是复制表,避免转载 2017-03-23 11:53:28 · 288 阅读 · 0 评论 -
heartbeat 安装 配置
centos 安装 yum -y install heartbeat-devel配置参考http://www.linuxidc.com/Linux/2014-12/110416.htm原创 2017-03-23 12:07:47 · 400 阅读 · 0 评论 -
elasticsearch, logstash 安装
安装搞了好久下面是一些参考资料https://www.elastic.co/guide/en/logstash/current/installing-logstash.htmlhttps://www.elastic.co/downloads/elasticsearchElasticsearch5.0 安装问题集锦http://www.cnblogs.原创 2017-03-23 11:50:02 · 254 阅读 · 0 评论 -
shell 笔记 date格式化, 按行读取文件,批量重命名
date格式化[root@linuxidc ~]# date -d today +"%Y-%m-%d" 2016-11-26 [root@linuxidc ~]# date -d today +"%Y_%-m_%-d"2008_5_7 [root@linuxidc ~]# date -d today +"%Y-%m-%d %T"2016-11-26 11:55原创 2019-01-03 15:11:40 · 210 阅读 · 0 评论