Skip to content

Instantly share code, notes, and snippets.

Liberate desktops from ugly fonts

Blocking unwanted fonts

Certain surrogate fonts have plagued open source desktops for way too long, making them all look ugly. Trying to uninstall them will lead to the package manager uninstalling other vital packages, and just deleting them will reinstate them on package updates. The clean solution is to block them in fontconfig.

On FreeBSD (Linux is similar, but without the "local" part):

#! @see - https://github.com/gorhill/uBlock/wiki/Static-filter-syntax
#! Donation reminder banner
www.etools.ch###etools_header
#! Unknown
www.etools.ch##form > table:nth-of-type(1) > tbody:nth-of-type(1) > tr:nth-of-type(2) > td:nth-of-type(2) > table > tbody > tr > td:nth-of-type(2)
#! Advertisements
www.etools.ch##.small.light
@kairusds
kairusds / 1-termux-adb.md
Last active March 29, 2026 19:08
Instructions for connecting Termux's android-tools adb to the current device via Wireless debugging and fixing phantom process killing

Install android-tools if you haven't already:

pkg update ; pkg upgrade
pkg install android-tools

adb pair 127.0.0.1:port
@probonopd
probonopd / Wayland.md
Last active July 31, 2026 04:20
Think twice about Wayland. It breaks everything!

Think twice before abandoning X11. Wayland breaks everything!

tl;dr: Wayland is not "the future", it is merely an incompatible alternative to the established standard with a different set of priorities and goals.

Wayland breaks everything! It is binary incompatible, provides no clear transition path with 1:1 replacements for everything in X11, and is even philosophically incompatible with X11. Hence, if you are interested in existing applications to "just work" without the need for adjustments, then you may be better off avoiding Wayland.

Wayland solves no issues I have but breaks almost everything I need. Even the most basic, most simple things (like xkill) - in this case with no obvious replacement. And usually it stays broken, because the Wayland folks mostly seem to care about Automotive, Gnome, maybe KDE - and alienating e

@rarecoil
rarecoil / CF-RZ4-Windows10-Install.md
Last active March 20, 2026 00:24
Using the Panasonic Let's Note CF-RZ4 in America

I own a Japanese-market Panasonic Let's Note RZ series as a go-everywhere laptop running some Windows utilities, WSL2, and a terminal to access more powerful hardware in the cloud. I vastly prefer its clamshell layout to current-gen competitors such as the Microsoft Surface Go - my RZ4 is also still relatively capable compared to the Surface Go 2 hardware which is using a newer but similar Core M processor. The Intel Core M 5Y71 is the same processor as used in the original 12" MacBook and is still plenty fast for use as a netbook-type device.

Unfortunately, this computer is basically unknown to the American market. The keyboard is nowhere near full size, all of the manuals and websites are in Japanese, and most western reviews I can find of the Let's Note RZ look at the laptop's design as dated, its price tag exorbitant and its accessibility overall poor. I believe that they are completely missing the point of this 10 inch d

@samiraguiar
samiraguiar / MC Cheat Sheet
Last active June 13, 2026 20:50 — forked from maciakl/MC Cheat Sheet
Midnight Commander Cheat Sheet / Shortcuts
Note for newcomers:
In the shortcuts below, "C" stands for CTRL and "A" stands for "ALT". This is a convention
used in the Midnight Commander documentation and was kept here.
You can also use "ESC" instead of "ALT", which is useful on Macbooks.
Main View
---------------------------------------------------------------
- File/directory operations
@mullnerz
mullnerz / archive-website.md
Last active August 3, 2026 01:05
Archiving a website with wget

The command I use to archive a single website

wget -mpck --html-extension --user-agent="" -e robots=off --wait 1 -P . www.foo.com

Explanation of the parameters used

  • -m (Mirror) Turns on mirror-friendly settings like infinite recursion depth, timestamps, etc.
/* The world's smallest Brainfuck interpreter in C, by Kang Seonghoon
* http://j.mearie.org/post/1181041789/brainfuck-interpreter-in-2-lines-of-c */
s[99],*r=s,*d,c;main(a,b){char*v=1[d=b];for(;c=*v++%93;)for(b=c&2,b=c%7?a&&(c&17
?c&1?(*r+=b-1):(r+=b-1):syscall(4-!b,b,r,1),0):v;b&&c|a**r;v=d)main(!c,&a);d=v;}