sporeball

spellbook

"Ninety percent of most magic merely consists of knowing one extra fact."

notes on how to do certain things on the command line.
as of 00E02, this page assumes Arch Linux, btrfs, and Sway.

the idea for this page comes from the spellbook page on kokorobot.ca*.

image from text

create an image with text of your choice in the center of it:

convert -background black -fill white \
-font EnvyCodeR-Nerd-Font -pointsize 24 \
-extent 256x256 -gravity center label:"Hello, World!" \
out.png

useful for getting images of symbols like classical mercury.

ordered dither

convert a high-quality photograph to one with just 2 colors:

convert -define png:format=png32 \
-ordered-dither o2x2 -monochrome \
in.png out.png

omit -monochrome to get an 8-color palette.

system rescue

sometimes, something may go wrong, and your system will boot into a rescue shell. don't panic!
plug in a USB drive with an Arch Linux ISO on it, and boot into that instead.

decrypt the root filesystem (will ask for encryption password):

cryptsetup luksOpen /dev/xxxx crypt_xxxx

mount its primary subvolume, and chroot into it:

mount -o subvol=@ /dev/mapper/xxxx /mnt
arch-chroot /mnt

make sure you can access your files:

mount -a

fix things, then Ctrl+D, umount -a, and reboot when finished.

if you need to connect to the internet to fix things:

ip link set wlan0 up
iwctl station wlan0 get-networks
iwctl station wlan0 connect xxxx