emacs tramp: ssh + sudo

TIL I can use Emacs Tramp not only to use sudo on localhost with the Emacs running under unprivilidged user:

C-x C-f /sudo:localhost:/path/to/file RET

or that I can ssh with Emacs:

C-x C-f /ssh:pilosus@raspberrypi:/path/to/file RET

but I also can pipeline ssh …

Read more

Recording a screencast on Linux

TIL I can record a screencast using GNOME’s tool, trim it with ffmpeg like this:

cd ~/Screencasts
ffmpeg -i screencast.webm -ss 00:00:03.120 -t 00:00:11.500 output.webm

then resize with ImageMagick:

magick output.webm -resize 50% -layers coalesce output.webp

and simply use …

Read more