Plurrrr

week 21, 2019

Knee surgery

The 12th of November 2018 I broke the kneecap (patella) in my right knee. Two days later I got surgery and the 2 pieces were put together with metal wires. Today this metal support got removed. All went well and I had no pain afterwards.

X-rays of right knee showing metal wires around patella
X-rays of the right knee showing the metal wires around the patella. November 14, 2018.
X-ray of right knee showing metal wires around patella
X-ray of the right knee showing the metal wires around the patella. Januari 3, 2019.

Open a man page as PDF on macOS

In the afternoon I found a nice Bash function in the comments section of Hacker News by user danielecook, reformatted to fit the width of this page:

function pman() {
    man -t ${1} |
    open -f -a  \
    /Applications/Preview.app
}

It calls man with the given argument and the -t option, which outputs the man page as PostScript. This output is piped to the open command with the -f option to read from standard in, the pipe in this case, and opens the application specified with -a with this output.

Very neat.

The Art of Command Line

This is a selection of notes and tips on using the command-line that we've found useful when working on Linux. Some tips are elementary, and some are fairly specific, sophisticated, or obscure. This page is not long, but if you can use and recall all the items here, you know a lot.

Check out The Art of Command Line

SSH disconnects and Wi-Fi

In the afternoon I suddenly figured out why my SSH connections to a virtual machine kept getting disconnected despite having the following two lines in my ~/.ssh/config:

ServerAliveInterval 30
ServerAliveCountMax 4

It turned out that the virtual machine still used Wi-Fi to connect to the local network, and because I am quite far away from the router this connection drops regularly. Switching the VM to cabled network interface en0 fixed this issue.