Skip to content

Instantly share code, notes, and snippets.

View Dominaezzz's full-sized avatar

Dominic Fischer Dominaezzz

View GitHub Profile
@Dominaezzz
Dominaezzz / README.md
Last active April 16, 2024 19:58
Linux Boot Environments with ZFS

Linux Boot Environments

ZFSBootMenu

ZFSBootMenu is a bootloader for Linux kernels residing in a ZFS pool. It basically searches your ZFS pools for datasets that look like a Linux root filesystem and it presents them to you as options to boot from (source). Once an OS has been selected to boot, it lets go of the pool and boots the OS, at which point it's the OS's responsibility to mount the ZFS pool(s) (source).

All this tool does it provide a convenient means to load up your kernel from a zpool and boot it, that's it (and some nice pre-boot tools).

@Dominaezzz
Dominaezzz / AnimatedGif.kt
Last active March 22, 2024 02:45
Rendering GIF animation with compose
import androidx.compose.animation.core.*
import androidx.compose.desktop.Window
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.Canvas
import androidx.compose.foundation.border
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.aspectRatio
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.runtime.*
import androidx.compose.ui.Alignment
@Dominaezzz
Dominaezzz / c_opt_sum.c
Created November 6, 2019 14:17
Lightning Talk
float values[10];
// Initialise values
float sum = 0.0f;
for (int i = 9; i >= 0; --i) {
sum += values[i];
}
return sum;