Inkscape batch SVG to EPS

Converting SVGs to EPS so so pdflatex can convert them to pdf and embed them to your document,… overhead, ikr? find . -name "*.svg" | xargs -I% inkscape --without-gui % -E %.eps --export-ignore-filters --export-ps-level=3 for f in *.svg.eps; do mv "$f" "${f/.svg/}"; done or #!/bin/sh for file in "$@"; do if test "${file##*.}" = "svg" -a \( ! -e "${file%.svg}.eps" -o "$file" -nt "${file%.svg}.eps" \) then inkscape "$file" -E "${file%.svg}.eps" fi done

2020-03-30 · 1 min · EK

Concatenate PDFs from scanned JPEGs

Note: All of those commands are Mac compatibile. (use brew to install pdftk-java and imagemagick) I’ve had a bunch of scanned documents “name 01.jpg”, “name 02.jpg”, “name 03.jpg”, that I wanted to push together into a nice PDF file. Documents had to remain separated from each other, so all-to-one concatenation was a no-go. Also, there was a freaking setload of them (20+ different document) to get done, and they seemed to differ in length. ...

2020-03-04 · 3 min · EK

Buster upgrade procedure

apt-get update apt-get install -y aptitude aptitude search '~i(!~ODebian)' # should return as little as possibile apt-get upgrade apt-get dist-upgrade dpkg -C # should return nothing or as little as possibile apt-mark showhold # should return nothing or as little as possibile dpkg --audit # should return nothing cp /etc/apt/sources.list /etc/apt/sources.list_backup sed -i 's/stretch/buster/g' /etc/apt/sources.list apt-get update apt list --upgradable apt-get upgrade -y apt-get dist-upgrade -y aptitude search '~i(!~ODebian)' # should return same as before apt-get autoremove or ...

2019-08-29 · 1 min · EK