Bookmarks
Portucalio
Organic forms
Compress PNG images
Install: zopfli; pngquant; gnu_parallel
Run in folder with png images:
pngquant --ext .png --force --skip-if-larger --strip --speed 1 *.png
find . -name "*png" | parallel -I% --max-args 1 zopflipng --lossy_transparent -m -y % %
Compress JPG images
mogrify -strip -interlace Plane -gaussian-blur 0.05 -quality 85% *.jpg
or individually
imagick source.jpg -strip -interlace Plane -gaussian-blur 0.05 -quality 85% result.jpg
Converting ODF
soffice --headless --convert-to html:HTML --outdir . hello-world.odt
or
odf2xhtml --plain hello-world.odt > hello-world.html
or using writer2xhtml extension
soffice --headless --convert-to html:org.openoffice.da.writer2xhtml5 document.odt
GIF in GIMP
Convert image to indexed colors
Inkscape export
With the jump for 0.x to 1.x inkscape command line have suffered some changes --without-gui= is now deprecated, from now on this option is not needed since there is now an enforced option to use gui. Also option -e doesn't exist anymore. So for 1.x:
inkscape -w 48 -h 48 -o "$DEST"/mipmap-mdpi/myicon.png myicon.svg
For older:
inkscape -z -w 48 -h 48 myicon.svg -e "$DEST"/mipmap-mdpi/myicon.png
Merge PDF
Using ghostscript
gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -dPDFSETTINGS=/prepress -sOutputFile=out.pdf in1.pdf in2.pdf
Images to pdf using ImageMagick
convert "{image1.jpg,image2.jpg}" -quality 100 output.pdf
Convert to Video to GIF
ffmpeg -i input.mp4 output.gif
From FFmpeg v2.6 and above, it has two important filters which are very useful in creating a high-quality GIF: palettegen and paletteuse.
ffmpeg -ss 23.0 -t 1.8 -i input.mp4 -filter_complex "[0:v] split [a][b];[a] palettegen [p];[b][p] paletteuse" output_trimmed_enhanced.gif
more info: https://www.bannerbear.com/blog/how-to-make-a-gif-from-a-video-using-ffmpeg/
Git remove multiple branches
git branch -a | grep yourFilterString | sed 's#remotes/##' | xargs -n 1 git branch -d -r