Skip to content

Instantly share code, notes, and snippets.

Dawnscape - Xacla

(lyrics sampled from Neverland by Central Seven)

Don't make a sound all around
Silence is everywhere
Fills in the clouds

There is a way across the time
Future is coming up

@kivikakk
kivikakk / (:.rs
Last active March 24, 2023 08:51
pub fn rtrim_slice_a(i: &[u8]) -> &[u8] {
let mut len = i.len();
while len > 0 && isspace(i[len - 1]) {
len -= 1;
}
&i[..len]
}
pub fn rtrim_slice_b(mut i: &[u8]) -> &[u8] {
let mut len = i.len();
a: 8 bit address
i: 3 bit input address
o: 3 bit output address
v: 1 bit value
function vyxnix -d "vyxos nix3 launcher"
# Principal nix3 launcher.
#
# "develop" and "shell" are treated specially:
# vyxnix develop -> nix develop --command fish
# vyxnix develop x y z -> nix develop x y z --command fish
# vyxnix develop x -- y z -> nix develop x --command fish -c "y z"
# vyxnix develop x --command y z -> nix develop x --command y z
# "d/s" below refers to these cases.
#
function ZZZ -d "multi-host rebuilder"
# Multi-host Nix rebuilder.
# Force a rebuild on targets even if a new version wasn't pulled.
set -f force 0
if test "$argv[1]" = -f
set -f force 1
set -e argv[1]
end