A page of simple things I frequently look up more than once

capture a window for ten seconds with ffmpeg and output as a .webm file:

ffmpeg -f x11grab -t 00:00:10 -framerate 25 \
$(xwininfo | gawk 'match($0, /-geometry ([0-9]+x[0-9]+).([0-9]+).([0-9]+)/, a)\
{ print "-video_size " a[1] " -i +" a[2] "," a[3] }') \
$(date +%Y-%m-%d_%H-%M_%S).webm

show a neat output of the directory tree:

tree [dir]

screenshot of what this looks like

caveat: the `tree` command is not installed by default on macos

show lines of code in a local git repo:

git ls-files | grep -E 'news|webpack|server' | xargs wc -l

omit the grep pipe to show all the things

how to rebuild a debian package with missing dependency(ies):

source

nginx local alias not resolving: update /etc/hosts

add 127.0.0.1 [x].local to /etc/hosts

ensure server_name [x].local; in nginx conf

when the kde launcher does not open with meta key

there are two places to set the keybinding. one doesn't work. if kde application launcher doesn't open with meta, right click on app launcher, config app launcher, and set a keybinding to open the menu

evoluent mouse back button doesnt work out of the box

key-mapper utility to remap evoluent mouse buttons on linux

how to make disk image with usb on linux: sudo dd bs=4M if=/home/jonathan/Downloads/-image.img-/-image.img- of=/dev/sdd status=progress oflag=sync
xdotool findapp.sh in the home dir
simplescreenrecoder webm to gif via ffmpeg ffmpeg -i simplescreenrecorder*.webm -vf "fps=10,scale=320:-1:flags=lanczos,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" output.gif
how to i make a command with args, save it in my home folder, and add it to my path?

A few interesting places I've found myself

text test around photo

words at bottom

You could also have text over here…

…or image captions
add a solid background

or go full bleed

John Doe HTML with ES6 modules, Less, and webpack. Assets served via nginx.

Hello, welcome to my personal homepage. This website stands on the shoulders of giants, and generally is a ripoff of anyone who influenced me over the years.

Formatting test

Footnote test test

E tamrim