Useful unix stuff

I put it here so that I don't lose it, if it happens to be useful to someone else, all the better.

HTML image gallery generator for vi:

 \""$1"\""}'
]]>

Combine multiple pdf files into one output file:

gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=out.pdf [infiles ...]

Server

This server is an Supermicro A1SRM-LN7F-2758 with an Atom C2757 (8 core@2.4 GHz). The server is powered by a 6A (max 10A) 12VDC supply which feeds OpenUPS with 12VDC - 80AH batteries: enough juice for 32 hours of operation without power! Try that with a silly AC -> DC -> AC -> DC commercial ups supply! Unfortunately my ISP's network cabinet to which I am connected only has enough battery for aprox. 30 minutes after power out.... See my rackmount and a screenshot from my workstation.

My main machine is an 4690K running at 4.2GHz with 0.89V. Ram is 16G, 1.35V CL9. The excessive ram means that I can mount /tmp and /usr as mfs (ramdisk) which means that I can launch openoffice in 0.01 sec right after boot, or that I can compile the OpenBSD kernel in 40.4 seconds (make -j4) all with a power usage of maximum 90W (AC - including transformation losses, not including monitor) at full load.

Software that rocks

Anything from OpenBSD
Anything from Suckless
GIT SCM
mupdf: Displays a pdf faster than you can blink even on old hardware.

Software that sucks

Java will never be on my server, it is controlled by an evil organization, it's bloated and I never understand anything that is written in it. (Ops, what is Android based on?)

Anything made by Microsoft. Currently I have this in unbound.conf (caching dns resolver): "local-zone: microsoft.com. refuse"

OpenBSD related sites

bsdly: That grumpy BSD guy