astyle formating model
astyle --style=kr --indent=tab --pad-oper --pad-header --break-closing-brackets --suffix=none ./*.cpp ./*.hpp
or (with recursive option)
astyle --style=kr --indent=tab --pad-oper --pad-header --break-closing-brackets --recursive --suffix=none ./*.cpp ./*.hpp
Images to video with ffmpeg
ffmpeg -framerate 24 -i im_%06d.png -s:v 752x752 -c:v libx264 -profile:v high -crf 20 -pix_fmt yuv420p video.mp4
The size can be different from the real image size but bigger and multiple of 16.
Modifying a file content with sed
sed 's/STRING/NEW_STRING/g' file
If you want to modify the file add -i to the command. We can also get the result in a new file by redirecting with > newFile. Example:
sed 's/tmax 2/tmax 10/g' conf200 > Input2.txt
svn diff visualization
The diff file between two revision can created that way:
svn diff -r 420:425 > file.diff
To visualize it nicely, you may use tkdiff for instance:
svn diff -r 420:425 --diff-cmd tkdiff
To make the diff on one particular file only:
svn diff Rockable.cpp -r 420:425 --diff-cmd tkdiff