![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
CrossPlatform
hushui
Coding Since 1998
展开
-
SSH through HTTP proxy
SSH proxy原创 2022-10-08 16:44:49 · 591 阅读 · 0 评论 -
ffmpeg拆分视频按fps为图片/合并多个同源同格式视频
1.ffmpeg将视频导出成多张图片ffmpeg -i output.mp4 -r your_fps_of_your_video-f image%05d.jpeg2.ffmpeg合并多少video(同一格式),比如Iphone/MOV视频输入文件/文本文件filelist.txtfile 'IMG_1.mov'file 'IMG_2.mov'Exampleffmpeg -f concat -i filelist.txt -c copy output.mov...原创 2022-05-05 10:39:11 · 1001 阅读 · 0 评论 -
gdb uboot relocation/symbol aarch64
[U-Boot] README.arm-relocation: get relocated address in gdb - Patchwork原创 2022-01-26 15:07:51 · 304 阅读 · 0 评论 -
overflow.h/Gcc5
#if __GNUC__ >= 5 || __has_builtin(__builtin_add_overflow)/** assume clang and gcc (>=5) to only have builtins for now. */# define add_of(a, b, r) __builtin_add_overflow(a, b, r)# define sub_of(a, b, r) __builtin_sub_overflow(a, b, r)# define.原创 2021-11-17 10:48:09 · 476 阅读 · 0 评论 -
Google C++ Unit test sample
[lake@localhost source]$ git clone -b v1.8.x --depth 1 https://github.com/google/googletest.gitCloning into 'googletest'...remote: Enumerating objects: 369, done.remote: Counting objects: 100% (369/369), done.remote: Compressing objects:...原创 2021-09-14 14:50:09 · 584 阅读 · 0 评论 -
readelf instead of file for elf Machine/arch check
./host/bin/aarch64-buildroot-linux-gnu-readelf -h build/qt5declarative-5.12.2/bin/qmlsceneELF Header: Magic: 7f 45 4c 46 02 01 01 03 00 00 00 00 00 00 00 00 Class: ELF64 Data: 2's co..原创 2021-07-20 09:40:26 · 147 阅读 · 0 评论 -
Qemu/qemu-img raw.img to qcow2
### versionlake@lake-Latitude-5491:~/qemu$ qemu-system-i386 -versionQEMU emulator version 2.11.1(Debian 1:2.11+dfsg-1ubuntu7.10)Copyright (c) 2003-2017 Fabrice Bellard and the QEMU Project deve...原创 2019-03-09 14:39:23 · 2878 阅读 · 0 评论 -
readelf/cross tool without ldd
arm-none-linux-gnueabi-readelf -a $elffilename | grep "Shared library:"原创 2021-06-18 13:53:45 · 94 阅读 · 0 评论 -
Online C/C++ source build/compile
在线编译器在线C/C++编译器列表coliru:在线编译器/shell, 支持各种C++编译器 http://coliru.stacked-crooked.com/ Compiler Explorer:交互式编译器,可以进行汇编输出 https://gcc.godbolt.org/ CompileOnline:Linux上在线编译和执行C++程序 https://www.tutorialspoint.com/compile_cpp11_online.php Ideone...原创 2021-04-13 09:18:41 · 586 阅读 · 0 评论 -
vscode-cpptools/gdb/linux 远程调试的限制
https://github.com/microsoft/vscode-cpptools1.pipeTransport /miDebuggerServerAddress 冲突 不可同时使用 https://github.com/Microsoft/vscode-cpptools/issues/5282. pipeTransport可以attach ("request"/"attach") 远程process/Linux 但必须指定processId和debugger...原创 2021-03-29 17:13:52 · 582 阅读 · 0 评论 -
Cross Build procps/ps/free/kill/pidof etc
Source https://gitlab.com/procps-ng/procps###tool chain[lake@localhost8 toolchain]$ which aarch64-your-toolchain-gnu-gcc~/usr/local/kreatv/toolchain/aarch64/2.0.3/bin/aarch64-your-toolchain-gnu-gcc[lake@localhost8 toolchain]$ basename /usr/lo...原创 2021-03-29 16:59:00 · 204 阅读 · 1 评论 -
gdb non-stop/target-async remote debug
## target / # gdbserver --multi localhost:1234Listening on port 1234Remote debugging from host 10.213.0.8Attached; pid = 379 <<<<<<<< gdb client connect [lake@localhost]$ cat ~/.gdbinitset target-asy..原创 2021-03-26 16:32:10 · 353 阅读 · 0 评论 -
Qemu static chroot busybox buildroot
Refer toQemu2.x user mode/Ubuntu18 for Chroot/ARM qemu-user-static/CONFIG_BINFMT_MISC/Ubuntu/ARM/Rootfshttps://blog.csdn.net/hushui/article/details/103791704Try qemu/ARM/buildrootsudo mount -t proc /proc /home/lake/nfs/busybox-buildroot/proc...原创 2021-03-17 15:40:55 · 235 阅读 · 0 评论 -
sshfs_2_5 build on Centos7.x/RHEL7.x
[lake@localhost source]$ git clone --depth 1 --branch sshfs_2_5 https://github.com/libfuse/sshfsCloning into 'sshfs'...remote: Enumerating objects: 19, done.remote: Counting objects: 100% (19/19), done.remote: Compressing objects: 100% (18/18).原创 2021-01-28 08:48:11 · 187 阅读 · 0 评论 -
scp folder/keep symbolic link etc (by tar or rsync)
1. folder sync scp -r user@server:remove_folder local2. keep symbolic link through tar# On the source server:# cd /path/to/contenttar cf - * | ssh user@destination '(cd /path/to/content; tar xf - )'The files are compressed and...原创 2020-12-03 17:46:00 · 329 阅读 · 0 评论 -
FFMPEG convert
1. Imageffmpeg -pix_fmts ?ffmpeg -i ImageSegmentation_threshold_histogram.jpg -f rawvideo -pix_fmt yuv420p ImageSegmentation_threshold_histogram_4032X3024_yuv420.yuv2. audio$ffmpeg-iINPUT.ape output.wav$ffmpeg-iINPUT.ape outpu...原创 2020-11-30 14:09:54 · 328 阅读 · 0 评论 -
Ubuntu18/ffmpeg version n4.3.1 build
Refer toRHEL7.2 build FFMPEG/n3.0.10 and ffplay(Based on SDL1.x)https://blog.csdn.net/hushui/article/details/81487407WSL/Ubuntu18lake@PC-HM6DD43:~$ cat /etc/issueUbuntu 18.04.4 LTS \n \l## remove Ubuntu18/ffmpeg3.4 lake@PC-HM6DD43:...原创 2020-10-28 17:15:31 · 1291 阅读 · 0 评论 -
msys2 Windows 32/64bit native exew
msys2===================================MSYS2providestwoversionsofmake,oneinthemakepackageandoneinthemingw-w64-{i686,x86_64}-makepackages.Thelatteroneiscalledmingw32-makeoncommandline,isfullynativeanddoesn'tdependo...原创 2020-10-19 14:37:50 · 593 阅读 · 1 评论 -
Windows BAT %~dp0
SET mypath=%~dp0set vc_path=%mypath:~0,-1%### Example C:\work\Develop>.\VC6\Bin\VCVARS32_win10.BATC:\work\Develop>echo %mypath%C:\work\Develop\VC6\Bin\C:\work\Develop>echo %mypath:~0,-1%C:\work\Develop\VC6\Bin原创 2020-10-09 16:08:51 · 201 阅读 · 0 评论 -
SSH tunnel Aliyun to Home Windows Desktop
Ethernet adapter Ethernet: Connection-specific DNS Suffix . : WindowsHOME IPv4 Address. . . . . . . . . . . : 10.73.197.146 Subnet Mask . . . . . . . . . . . : 255.255.255.01. Step on Windows side Win10 has OpenSSH Server now! Wind...原创 2020-09-27 14:18:43 · 171 阅读 · 0 评论 -
Win10 Native openssh client
Win10 Native openssh clientWindows PowerShellCopyright (C) Microsoft Corporation. All rights reserved. Try the new cross-platform ...原创 2020-09-27 10:39:42 · 528 阅读 · 1 评论 -
SSH tunnel manual login手工
Background192.168.137.0/ 192.168.137.2~192.168.137.9 and 192.168.137.200Internet Server/47.114.46.84 with FRP server/port 6004 for FRP client.192.168.137.200 is FRP clientInternet Server/47.114.46.84 requires to access192.168.137.2~192....原创 2020-05-19 13:14:25 · 296 阅读 · 0 评论 -
Linux exp script to test remote ARM through SSH/login
[localroot]$ cat stresstest.exp#!/usr/bin/expectset timeout 60set prompt {~ # }#exp_internal 1set mtc 0set starttime [exec date ]set ip [lindex $argv 0]set NUM 0while { 1 } { set sleeptime [expr int(rand() * 10 + 30)] set NUM [ expr $N.原创 2020-09-17 11:01:21 · 136 阅读 · 0 评论 -
VLC Video Stream Test
Env:VLC Server/Win10 IP 10.213.1.94, VLC3.0.11Client/TV box 10.213.5.821.Network Stream: MPEG/TS UDP 3940 1.1 UDP send stream to10.213.5.82:3940C:\work\vlc-3.0.11>vlc c:\work\Shawshank.ts --sout "#standard{mux=t...原创 2020-08-28 08:58:30 · 274 阅读 · 0 评论 -
RHEL7.2 build FFMPEG/n3.0.10 and ffplay(Based on SDL1.x)
RHEL7.2/Kernel4.13/X86_64bitlake@localhost:~$ cat /proc/versionLinux version 4.13.0+ (lake@localhost.localdomain) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-4) (GCC)) #5 SMP Mon Apr 23 04:09:02 E...原创 2018-08-07 19:55:03 · 784 阅读 · 0 评论 -
readelf string from .text code
examplecat hello.c#include <stdio.h>int main(){ printf("Hello world \n"); return 1 ;}$ readelf -p .rodata hello-x86String dump of section '.rodata': [ 10] Hello worldExample with toolchaine...原创 2020-08-25 10:28:03 · 217 阅读 · 0 评论 -
Qemu2.x boot sdcard raw image with -M raspi2
#Qemu2.xbootsdcardrawimagewith-Mraspi2##Qemuinfoqemu-system-arm-versionQEMUemulatorversion2.9.1Copyright(c)2003-2017FabriceBellardandtheQEMUProjectdevelopers##virtualmachine-Mraspi2qemusupportraspi2from2.6...原创 2020-08-24 16:37:51 · 868 阅读 · 0 评论 -
Vim中粘贴代码//缩进
1.vi取消自动缩进在命令模式下,使用“:set nosmartindent”和“:set noautoindent”取消自动缩进,然后再粘贴即可。2.vim通过“:set paste”和“:set nopaste”进入和退出该模式 可以在Vim中配置文件virmrc中设置一个进入和退出Paste模式的快捷键,往“~/.vimrc”中添加一行配置“set pastetoggle=<F12>”,...原创 2020-08-17 14:18:18 · 736 阅读 · 0 评论 -
vscode/gdbserver/arm
sysbol put into $target /usr/local/lib/debug/=thread-group-added,id="i1"GNU gdb (GDB) 7.10Copyright (C) 2015 Free Software Foundation, Inc.License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>This is free software:...原创 2020-08-13 14:35:25 · 1221 阅读 · 0 评论 -
omniorb (CORBA) C++
#### ubuntu18 x86### omniorb runtimelake@PC-HM6DD43:~$ sudo apt-get install -y omniorb libomniorb4-devidllake@PC-HM6DD43:/mnt/c/work/omiidl/example$ cat echo.idlinterface Echo { string echoString(in string mesg);};lake@PC-HM6DD43:/mn...原创 2020-08-05 11:27:13 · 674 阅读 · 0 评论 -
vscode ARM GDBserver reference
https://github.com/microsoft/vscode/issues/90288https://medium.com/@karel.l.vermeiren/cross-architecture-remote-debugging-using-gdb-with-visual-studio-code-vscode-on-linux-c0572794b4efhttps://medium.com/@spe_/debugging-c-c-programs-remotely-using-visua原创 2020-07-31 17:45:28 · 219 阅读 · 0 评论 -
Cross Build GDB
1.Gdb host side with specified program profix[lake@XXXX gdb-7.10]$ ./configure --target=arm-linux-gnueabihf --program-prefix=arm-YourName-linux-gnueabihf- --prefix=$HOME/usr/local/kreatv/toolchain/hi53/2.0.3[lake@xxxx gdb-7.10]$ ./configure --...原创 2020-07-27 17:25:19 · 286 阅读 · 0 评论 -
wget -r --convert-links doc/link
lake@PC-XXX:/mnt/c/work/test$ wget --level=inf --limit-rate=20K --recursive --page-requisites --user-agent=Mozilla --no-parent --convert-links --adjust-extension --no-clobber -e robots=off \ https://XXXXX.com/products/master/docs...原创 2020-07-24 08:33:52 · 384 阅读 · 0 评论 -
WSL/Ubuntu18 try ARM binfmt_misc/qemu-user-static
lake@PC-HM6DD43:~$ sudo apt install qemu-user-binfmtReading package lists... DoneBuilding dependency treeReading state information... DoneThe following additional packages will be installed: qemu-userThe following NEW packages will be instal...原创 2020-07-20 17:53:31 · 857 阅读 · 0 评论 -
vim打开多窗口、多文件之间的切换
Refer https://blog.csdn.net/derkampf/article/details/72629875打开多个文件:一、vim还没有启动的时候:1.在终端里输入vim file1 file2 ... filen便可以打开所有想要打开的文件2.vim已经启动输入:e file可以再打开一个文件,并且此时vim里会显示出file文件的内容。3.同时显示多个文件::sp //水平切分窗口:vsplit //垂直切分窗口二、在文件之间切...转载 2020-07-15 17:51:07 · 796 阅读 · 0 评论 -
SSH tunnel/backgroud automatic 自动后台
## Portssh -p 4567 apollo@example.com## keep alivessh -o ServerAliveInterval=600 lake@47.100.203.63## Tunnel 9902 at server Remote sidessh -R 9902:10.213.2.104:22lake@47.100.203.63原创 2020-07-14 11:17:18 · 218 阅读 · 0 评论 -
i386 in WSL/Ubuntu
By default, i386 is NOT supported in WSL/Ubuntulake@PC-HM6DD43:~$ sudo dpkg --add-architecture i386lake@PC-HM6DD43:~$ sudo apt-get updateHit:1 http://archive.ubuntu.com/ubuntu bionic InReleaseHit:2 http://security.ubuntu.com/ubuntu bionic-security ..原创 2020-07-10 16:28:11 · 341 阅读 · 0 评论 -
mysql DB file imigration/maintainment
mysql DB file imigration/maintainmentD:\git-yl\Win\mysql-5.5.60-winx64\bin>mysql_upgrade.exe -u root -pEnter password: ******Looking for 'mysql.exe' as: D:\git-yl\Win\mysql-5.5.60-winx64\bin\mysql.exeLooking for 'mysqlcheck.exe' as: D:\git-y...原创 2020-06-24 09:19:52 · 382 阅读 · 0 评论 -
MQ middle ware test/rocketmq-all-4.7.0-bin-release
1. set JAVA_HOME/ROCKETMQ_HOMED:\git-yl\rocketmq-all-4.7.0-bin-release>set JAVA_HOME=D:\git-yl\jdk-8u171-windows-x64D:\git-yl\rocketmq-all-4.7.0-bin-release>D:\git-yl\rocketmq-all-4.7.0-bin-release>set ROCKETMQ_HOME=D:\git-yl\rocketmq-all-4.原创 2020-06-22 12:25:26 · 463 阅读 · 0 评论 -
caddy/DNS SSL certification file/auto update
1. Note :DNS should be valid whenLet's Encrypt. is used.[lake@DESKTOP-P55Q2H7 caddy_v1.0.0_linux_amd64]$ cat CaddyfileDESKTOP-P55Q2H7.mshome.net{##tls self_signedtls your@qq.com}[lake@DESKTOP-P55Q2H7 caddy_v1.0.0_linux_amd64]$ sudo ./caddy...原创 2020-06-17 19:13:13 · 713 阅读 · 0 评论