<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[i.sshe的博客]]></title><description><![CDATA[Small thing follow your head, big thing follow your heart.]]></description><link>https://blog.youkuaiyun.com/i_scream_</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; i_scream_]]></copyright><item><title><![CDATA[Postgresql 慢查询语句记录与分析]]></title><link>https://blog.youkuaiyun.com/i_scream_/article/details/120386192</link><guid>https://blog.youkuaiyun.com/i_scream_/article/details/120386192</guid><author>i_scream_</author><pubDate>Sun, 19 Sep 2021 23:10:49 +0800</pubDate><description><![CDATA[1. 记录

postgresql 以 12 版本为例

我们需要先打开 postgresql 的慢查询日志，此为前置条件，先记录下我们时间较长的查询。

编辑配置文件：/var/postgres12/data/postgresql.conf

#log_min_duration_statement = -1        # -1 is disabled, 0 logs all statements
                                        # and their d]]></description><category></category></item><item><title><![CDATA[对主机或 Docker 镜像进行漏洞扫描]]></title><link>https://blog.youkuaiyun.com/i_scream_/article/details/120381379</link><guid>https://blog.youkuaiyun.com/i_scream_/article/details/120381379</guid><author>i_scream_</author><pubDate>Sun, 19 Sep 2021 16:01:41 +0800</pubDate><description><![CDATA[本文主要介绍如何使用 nessus 进行主机扫描以及使用 snyk 进行 Docker 镜像扫描。
1. 主机扫描
1.1 安装 nessus
注意：需要空间 20 GB。

打开 nessus 官网

注册：


进入 nessus 下载页 下载：


安装
  rpm -i Nessus-8.15.1-es7.x86_64.rpm
启动
  /bin/systemctl start nessusd.service
进入管理界面: https://10.0.0.199:8834/

设置账号密码

初始化]]></description><category></category></item><item><title><![CDATA[【资源汇总】个人上传资源汇总]]></title><link>https://blog.youkuaiyun.com/i_scream_/article/details/88088027</link><guid>https://blog.youkuaiyun.com/i_scream_/article/details/88088027</guid><author>i_scream_</author><pubDate>Sun, 03 Mar 2019 14:38:45 +0800</pubDate><description><![CDATA[文章目录资源汇总1. 视频播放器2. 待续emmm...

日期：2016.10.8
作者：isshe
github：github.com/isshe
邮箱：i.sshe@outlook.com
平台：ubuntu16.04 64bit

资源汇总
1. 视频播放器

ffmpeg + SDL2 实现的视频播放器「视音频同步」
ffmpeg+SDL2实现的音频播放器其他资源

2. 待续
emmm...]]></description><category></category></item><item><title><![CDATA[Linux 工具 | 第1篇：高级流控-TC+HTB+IFB+内核模块]]></title><link>https://blog.youkuaiyun.com/i_scream_/article/details/82776333</link><guid>https://blog.youkuaiyun.com/i_scream_/article/details/82776333</guid><author>i_scream_</author><pubDate>Wed, 19 Sep 2018 18:32:16 +0800</pubDate><description><![CDATA[
作者：isshe
日期：2018.09.19
邮箱：i.sshe@outlook.com
github: https://github.com/isshe

高级流控-TC+HTB+IFB+内核模块1. 前言2. 约定及环境3. 需求、问题及解决方案3.1 需求3.2 最终实现图3.3 遇到的问题4. 相关文档
1. 前言
接触了TC以后，感觉就是：别说入门了，根本连门都找不到。
网上资料一大堆...]]></description><category></category></item><item><title><![CDATA[[AUPE chapter 14] 高级IO]]></title><link>https://blog.youkuaiyun.com/i_scream_/article/details/53041616</link><guid>https://blog.youkuaiyun.com/i_scream_/article/details/53041616</guid><author>i_scream_</author><pubDate>Sun, 06 Nov 2016 15:49:54 +0800</pubDate><description><![CDATA[作者：isshe  
  日期：2016.10.30  
  邮箱：i.sshe@outlook.com  
  github: https://github.com/isshe


1. 基础知识

1.1 非阻塞I/O



问题


a. 什么是低速系统调用？都有哪些？
b. 与磁盘I/O有关的系统调用的相关描述？
c. 如何指定非阻塞I/O？




解答


a. 低速系统调用：可能会使]]></description><category></category></item><item><title><![CDATA[[APUE chapter 13] 守护进程]]></title><link>https://blog.youkuaiyun.com/i_scream_/article/details/53010352</link><guid>https://blog.youkuaiyun.com/i_scream_/article/details/53010352</guid><author>i_scream_</author><pubDate>Fri, 04 Nov 2016 10:05:07 +0800</pubDate><description><![CDATA[作者：isshe  
  日期：2016.10.30  
  邮箱：i.sshe@outlook.com  
  github: https://github.com/isshe


1. 相关概念


系统进程以赖于操作系统实现。
父进程ID为0的各进程通常是内核进程，它们作为系统引导装入过程的一部分而启动。
内核守护进程以无控制终端方式启动，用户层守护进程缺少控制终端可能是守护进程调用了set]]></description><category></category></item><item><title><![CDATA[[APUE chapter 12] 线程控制]]></title><link>https://blog.youkuaiyun.com/i_scream_/article/details/52972695</link><guid>https://blog.youkuaiyun.com/i_scream_/article/details/52972695</guid><author>i_scream_</author><pubDate>Wed, 02 Nov 2016 10:46:06 +0800</pubDate><description><![CDATA[作者：isshe 
  日期：2016.10.30 
  邮箱：i.sshe@outlook.com  
  github: https://github.com/isshe
1.前言2. 相关概念
线程分离： 
就是说与创建线程分离，当新建线程运行结束，就终止线程并释放资源。
默认情况下是不线程分离的，此时新线程运行结束后如果创建线程没有结束就等待创建线程结束，或者使用pthread_join()]]></description><category></category></item><item><title><![CDATA[[APUE chapter 11] POSIX线程]]></title><link>https://blog.youkuaiyun.com/i_scream_/article/details/52957472</link><guid>https://blog.youkuaiyun.com/i_scream_/article/details/52957472</guid><author>i_scream_</author><pubDate>Sun, 30 Oct 2016 11:58:42 +0800</pubDate><description><![CDATA[简介

线程有学习了使用，以及一些基础的知识，现在再细致地学习一下线程。因此做此记录。

线程的基础概念及知识


每个线程都包含表示执行环境所需的信息：

线程ID
一组寄存器 
栈 
调度优先级和策略
信号屏蔽字
errno变量（见AUPE 1.7节）
线程私有数据（见APUE 12.6节）
POSIX线程的功能测试宏是 _POSIX_THREADS，可以用#ifdef进行测试，从而编译时确定]]></description><category></category></item><item><title><![CDATA[[9]【ffmpeg源码分析 1】av_register_all()和avcodec_register_all()]]></title><link>https://blog.youkuaiyun.com/i_scream_/article/details/52852960</link><guid>https://blog.youkuaiyun.com/i_scream_/article/details/52852960</guid><author>i_scream_</author><pubDate>Tue, 18 Oct 2016 22:01:53 +0800</pubDate><description><![CDATA[日期：2016.10.18  
  作者：isshe  
  github：github.com/isshe  
  邮箱：i.sshe@outlook.com 
前言接下来打算学习一下编解码，不过好像很难的样子， 希望能看懂。1. av_register_all()
所在文件：allformats.c
主要代码：(每个宏只列举一个)
void av_register_all(void)
{]]></description><category></category></item><item><title><![CDATA[[8] ffmpeg + SDL2 实现的视频播放器「快进、快退」]]></title><link>https://blog.youkuaiyun.com/i_scream_/article/details/52787222</link><guid>https://blog.youkuaiyun.com/i_scream_/article/details/52787222</guid><author>i_scream_</author><pubDate>Tue, 11 Oct 2016 13:24:06 +0800</pubDate><description><![CDATA[前言：实现暂停、播放的时候就在想，快进快退要如何实现呢？没想到ffmpeg提供了这个av_seek_frame()这么方便的函数。相关知识：
ffmpeg的一些define：AV_TIME_BASE : 1000000 
AV_TIME_BASE_Q: (AVRational) {1, AV_TIME_BASE}
AVSEEK_FLAG_BACKWARD: 1           //这个是flag]]></description><category></category></item><item><title><![CDATA[[7]ffmpeg+SDL2实现的视频播放器「退出、暂停、播放」]]></title><link>https://blog.youkuaiyun.com/i_scream_/article/details/52767338</link><guid>https://blog.youkuaiyun.com/i_scream_/article/details/52767338</guid><author>i_scream_</author><pubDate>Mon, 10 Oct 2016 11:04:51 +0800</pubDate><description><![CDATA[问题：


如何处理退出?如何判断一个流结束？如果有两个流，如何只结束其中一个？


  想到的方法： 
  判断packet队列是否为空，空的话延时一段时间再判断一次，如果再为空就退出。 
  但是如果延时，延时多长呢？ 

如何用键盘按键触发暂停/播放？如何单独声音和视频？


  暂停/播放声音：
  
  SDL_PauseAudio(1)/SDL_PauseAudio(0);]]></description><category></category></item><item><title><![CDATA[[6] ffmpeg + SDL2 实现的视频播放器「视音频同步」]]></title><link>https://blog.youkuaiyun.com/i_scream_/article/details/52760033</link><guid>https://blog.youkuaiyun.com/i_scream_/article/details/52760033</guid><author>i_scream_</author><pubDate>Sun, 09 Oct 2016 00:40:27 +0800</pubDate><description><![CDATA[日期：2016.10.8 
作者：isshe  
github：github.com/isshe  
邮箱：i.sshe@outlook.com  
平台：ubuntu16.04 64bit前言
这个程序使用的视音频同步方法是视频同步音频。接下来大概还会学习其他方法，不过下一步应该是先完善功能，实现暂停，播放之类的。
这个版本中是用的是较新的两个解码函数avcodec_send_packet(),]]></description><category></category></item><item><title><![CDATA[[5] ffmpeg+SDL2实现的音频播放器V2.0（无杂音）]]></title><link>https://blog.youkuaiyun.com/i_scream_/article/details/52736200</link><guid>https://blog.youkuaiyun.com/i_scream_/article/details/52736200</guid><author>i_scream_</author><pubDate>Wed, 05 Oct 2016 01:31:03 +0800</pubDate><description><![CDATA[日期：2016.10.4  
作者：isshe  
github：github.com/isshe  
邮箱：i.sshe@outlook.com  
平台：ubuntu16.04 64bit1. 前言目前为止，学习了并记录了ffmpeg+SDL2显示视频以及事件(event)的内容。 
这篇中记录ffmpeg+SDL2播放音频，没加入事件处理。 
接下来加入事件处理并继续学习音视频同步，再接下来就]]></description><category></category></item><item><title><![CDATA[[4] ffmpeg + SDL2 实现的有杂音的音频播放器]]></title><link>https://blog.youkuaiyun.com/i_scream_/article/details/52734805</link><guid>https://blog.youkuaiyun.com/i_scream_/article/details/52734805</guid><author>i_scream_</author><pubDate>Tue, 04 Oct 2016 18:39:16 +0800</pubDate><description><![CDATA[日期：2016.10.4 
作者：isshe  
github：github.com/isshe  
邮箱：i.sshe@outlook.com 
平台：ubuntu16.04 64bit前言
ffmpeg将数据解码成pcm。
SDL将pcm数据输出。
1. 程序流程图
初始化
找到相应的解码器，打开解码器
打开音频设备（可用SDL_OpenAudioDriver()代替），这里会开线程运行call]]></description><category></category></item><item><title><![CDATA[[3] ffmpeg基础知识以及使用示例]]></title><link>https://blog.youkuaiyun.com/i_scream_/article/details/52716849</link><guid>https://blog.youkuaiyun.com/i_scream_/article/details/52716849</guid><author>i_scream_</author><pubDate>Sat, 01 Oct 2016 10:41:47 +0800</pubDate><description><![CDATA[* 学习自雷神的博客和视频，图片来自他的课件，雷神博客：* 
http://blog.youkuaiyun.com/leixiaohua1020/日期：2016.10.1  
作者：isshe  
github：github.com/isshe  
邮箱：i.sshe@outlook.comffmpeg的基础知识ffmpeg的库
avdecoc: 编解码。
avformat: 封装格式的处理（flv,avi,m]]></description><category></category></item><item><title><![CDATA[[2] SDL的基础知识以及利用SDL播放视频]]></title><link>https://blog.youkuaiyun.com/i_scream_/article/details/52714378</link><guid>https://blog.youkuaiyun.com/i_scream_/article/details/52714378</guid><author>i_scream_</author><pubDate>Sat, 01 Oct 2016 01:07:54 +0800</pubDate><description><![CDATA[SDL 的基础知识以及利用SDL播放视频此博文相关知识点从雷神的博客以及视频学习，截图也是用了他的课件,  
雷神博客地址：http://blog.youkuaiyun.com/leixiaohua1020/日期：2016.10.1 
作者：isshe 
github：github.com/isshe 
邮箱：i.sshe@outlook.com SDL基础知识
SDL结构图 SDL函数调用的一般流程 
最最主]]></description><category></category></item><item><title><![CDATA[[1] ubuntu 16.04下ffmpeg+sdl的开发环境搭建及测试]]></title><link>https://blog.youkuaiyun.com/i_scream_/article/details/52691233</link><guid>https://blog.youkuaiyun.com/i_scream_/article/details/52691233</guid><author>i_scream_</author><pubDate>Wed, 28 Sep 2016 16:24:19 +0800</pubDate><description><![CDATA[ubuntu 16.04 下 ffmpeg+sdl的开发环境搭建日期：2016.09.28 
作者：isshe 
github：https://github.com/isshe  
邮箱：i.sshe@outlook.com安装ffmpeg：需要先安装相关工具以及库： 
yasm，libx264，libx265，libfdk-aac, libmp3lame，libopus，libvpx 
cmake]]></description><category></category></item><item><title><![CDATA[【初探】排序算法]]></title><link>https://blog.youkuaiyun.com/i_scream_/article/details/51762990</link><guid>https://blog.youkuaiyun.com/i_scream_/article/details/51762990</guid><author>i_scream_</author><pubDate>Sun, 26 Jun 2016 16:02:36 +0800</pubDate><description><![CDATA[日期：20160626
作者：i.sshe
https://github.com/isshe  【初探】排序算法 1. 基础问题
1.1 各个常见排序算法的思想及关键代码？
 2. 基础问题解答 2.1 各个排序算法的思想及关键代码？代码链接：https://github.com/isshe/Blog/tree/master/7_sort20160624选择排序的思想:
A. 从数据中选择一个最小/]]></description><category></category></item><item><title><![CDATA[【初探】内存管理知多少]]></title><link>https://blog.youkuaiyun.com/i_scream_/article/details/51673697</link><guid>https://blog.youkuaiyun.com/i_scream_/article/details/51673697</guid><author>i_scream_</author><pubDate>Tue, 14 Jun 2016 18:05:49 +0800</pubDate><description><![CDATA[日期：20160614
作者：i.sshe
https://github.com/isshe 【初探】内存管理知多少?1. 基础问题
1.1 常见的内存管理方式有哪些？
1.2 什么是虚拟内存？
1.3 什么内存泄漏？如何检测？如何避免？
1.4 什么是内存溢出？
2. 拓展问题
2.1 什么是段错误？
2.2 什么是碎片？什么是外碎片？什么是内碎片？
2.3 什么是ELF？
2.4 如何知道系统中]]></description><category></category></item><item><title><![CDATA[【初探】遇见C语言]]></title><link>https://blog.youkuaiyun.com/i_scream_/article/details/51619456</link><guid>https://blog.youkuaiyun.com/i_scream_/article/details/51619456</guid><author>i_scream_</author><pubDate>Thu, 09 Jun 2016 02:34:11 +0800</pubDate><description><![CDATA[日期：20160608
作者：i.sshe
https://github.com/isshe C语言相关问题1. 基本问题
1.1 const知多少?
1.2 static知多少?
1.3 sizeof知多少?
1.4 volatile是什么?有何用?
1.5 哪些库函数是不安全函数?点解?
1.6 C语言中，预处理指令是否是语言类型（语句）？
* 
2.拓展问题
2.1 常量知多少？
2.2 不用]]></description><category></category></item></channel></rss>