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):
sourcenginx 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
localhost ssl and lets encrypt with nginx
evoluent mouse back button doesnt work out of the box
key-mapper utility to remap evoluent mouse buttons on linux
qemu setup
sources sources sources sourcessimplescreenrecoder 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
A few interesting places I've found myself
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