Skip to content

Instantly share code, notes, and snippets.

@FireEgl
FireEgl / make-bcache.txt
Created April 9, 2024 20:46
BCache make-bcache example using my preferred options
make-bcache --block 4096 --bucket 16384 -B /dev/disk/by-partlabel/WDRED20b -C /dev/disk/by-partlabel/BCACHE1 --wipe-bcache --writeback -o 65536
@FireEgl
FireEgl / mdadm-create-example.txt
Created April 9, 2024 20:43
mdadm example using my preferred options
mdadm --create --verbose /dev/md0 --level=0 --chunk=16 --raid-devices=2 /dev/disk/by-partlabel/SOL2a3 /dev/disk/by-partlabel/TG256a2
@FireEgl
FireEgl / mke2fs.txt
Last active April 9, 2024 20:48
ext4 mke2fs and tune2fs example using my preferred options
mke2fs -c -b 4096 -i 4096 -j -L SOL2HOME -m 1 -t ext4 -O casefold,dir_index,encrypt,extent,dir_nlink -E lazy_itable_init=0,lazy_journal_init=0,stride=4,stripe_width=4 -e continue /dev/sdc2
tune2fs -c 1 -e continue -i 1 -o journal_data_writeback -O casefold,dir_index,encrypt,extent,dir_nlink -E stride=4,stripe_width=4 /dev/sdc2
@FireEgl
FireEgl / zpool-create.txt
Last active April 9, 2024 20:39
ZFS zpool create example using my preferred options
zpool create \
-o ashift=12 \
-o autotrim=on \
-o autoexpand=on \
-o failmode=continue \
-o listsnapshots=on \
-O recordsize=16k \
-O redundant_metadata=most \
-O compression=on \
-O dedup=on \
@FireEgl
FireEgl / zfs-install-2.2.3+.txt
Last active August 8, 2025 15:02
ZFS Install v2.2.3+ on Ubuntu jammy from Zabbly repos
# May not need all these packages:
apt install build-essential autoconf automake libtool gawk alien fakeroot dkms libblkid-dev uuid-dev libudev-dev libssl-dev zlib1g-dev libaio-dev libattr1-dev libelf-dev linux-headers-generic python3 python3-dev python3-setuptools python3-cffi libffi-dev python3-packaging debhelper-compat dh-python po-debconf python3-all-dev python3-sphinx libpam0g-dev
mkdir -p /etc/apt/keyrings/
curl -fsSL https://pkgs.zabbly.com/key.asc -o /etc/apt/keyrings/zabbly.asc
sh -c 'cat <<EOF > /etc/apt/sources.list.d/zabbly-kernel-stable.sources
Enabled: yes
Types: deb
URIs: https://pkgs.zabbly.com/kernel/stable
Suites: jammy
@FireEgl
FireEgl / zfs-install-2.1.15.txt
Last active April 9, 2024 20:40
ZFS Install v2.1.15 on Ubuntu
apt install build-essential autoconf automake libtool gawk alien fakeroot dkms libblkid-dev uuid-dev libudev-dev libssl-dev zlib1g-dev libaio-dev libattr1-dev libelf-dev linux-headers-generic python3 python3-dev python3-setuptools python3-cffi libffi-dev python3-packaging debhelper-compat dh-python po-debconf python3-all-dev python3-sphinx libpam0g-dev
wget https://github.com/openzfs/zfs/releases/download/zfs-2.1.15/zfs-2.1.15.tar.gz
tar -zxf zfs-2.1.15.tar.gz
cd zfs-2.1.15
./configure --enable-systemd
make -j1 deb-utils deb-dkms
rm openzfs-zfs-dracut_*.deb
apt-get install --fix-missing ./*.deb
@josefnpat
josefnpat / readme.md
Last active November 7, 2025 09:18
Going from Lua 5.2 to PICO-8's Lua

This information applies to the PICO-8 0.1.6 release.

This document is here to help folks with a proficiency in Lua understand the limitations and discrepencies between Lua and PICO-8's Lua.

You can always view the manual or yellowafterlife's extended 0.1.1 manual.

General

  • anything written in uppercase the PICO-8 editor or .p8 is made lowercase by the editor. → editing the .p8 file directly can work
  • print(function() end) outputs the string function instead of the string function: 0x0000000.