博文

python3 gdb使用教程

https://wiki.python.org/moin/DebuggingWithGdb https://kouk.surukle.me/2014/09/25/debugging-python-objects-and-fields-with-gdb/ # py-fields https://gist.github.com/fake-name/9ea90ec8551ee2dc3a758921c3853bec # tested in Debian apt install python3-dbg gdb -y gcore <process pid> gdb python3 <process pid> or <core dump file> py-{up|down|} py-{list|locals|print} # ext py-fields # run in gdb source py-fields.py py-fields self.<attr>

Mingw64添加regex库

http://blog.creke.net/766.html http://sourceforge.net/projects/gnuwin32/files/regex/2.7/ 下载其中的regex-2.7-bin.zip, 将include中的regex.h放进MinGW的include目录,如:D:\msys64\mingw64\lib\gcc\x86_64-w64-mingw32\7.2.0\include 将lib中的libregex.dll.a和libregex.la放进MinGW的lib目录,如:D:\msys64\mingw64\lib\gcc\x86_64-w64-mingw32\lib 将regex2.dll放进程序所在目录。 在编译连接时加上-lregex参数即可。

php执行部分shell命令无权限

vim /etc/sudoers 找到root    ALL=(ALL)       ALL这一行 添加 www ALL=(root)  NOPASSWD:ALL www ALL=(root)  NOPASSWD:/bin/yourexcutefile 在php命令加个sudo就可以了

远程连接鼠标左键

qq自带远程连接,有时候鼠标左键用不了。 解决办法:anydesk,连接之后请求uac认证。

ext2fsd挂载ext3分区-踩坑

0.69不能挂载 0.68可以 最新版有bug 通过软件将分区更改为ext3后,必须马上重启 若不重启就用ext2fsd挂载,就会一直卡,重启也是一样,只有删区重来

ffmpeg使用-win

ffmpeg下载 https://www.ffmpeg.org/download.html 视频录制文档 https://trac.ffmpeg.org/wiki/Capture/Capture/Desktop%E4%B8%AD%E6%96%87%E7%89%88%E6%9C%AC 视频采集插件 https://github.com/rdp/screen-capture-recorder-to-video-windows-free 在win上用ffmpeg录制屏幕,现在官网下载win平台的ffmpeg, 之后去采集插件那里,有个sourceforge下载点,下载插件,安装, 之后直接用文档里的命令就可以录制了。 更多细节详见文档

错误0x80070522:客户端没有所需的特权

icacls c:\ /setintegritylevel M