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

KVM VM console access

Access guest console from host via virsh console <domain-name> Run this on guest (debian, ubuntu) systemctl enable [email protected] systemctl start [email protected] The exit keystroke is ctrl+5.

2020-01-05 · 1 min · EK

Simple TFTP setup

sudo su apt-get install xinetd tftpd tftp vim /etc/xinetd.d/tftp service tftp { protocol = udp port = 69 socket_type = dgram wait = yes user = nobody server = /usr/sbin/in.tftpd server_args = /tftp disable = no } mkdir /tftp chmod -R 777 /tftp chown -R nobody /tftp service xinetd restart

2019-09-07 · 1 min · EK

Debian Matrix server

It’s a chat network. As far as I’ve understood it, it’s like IRC, but Slack. Selfhosted, but also more like modern. It’s supposed to be safer, and in a way, kind of XMPP. It’s called Matrix. I will not explain why I decided to deploy it. Deploy it, learn it, use it or discart it. It’s a lifecycle of technology. So let’s just skip to it. It’s supposed to be self-hosted communications infrastructure that you can scale and so on. So let’s see, how do I set it up. ...

2019-08-29 · 5 min · EK