Skip to content

Instantly share code, notes, and snippets.

@baryluk
baryluk / plan9-run.sh
Last active January 26, 2026 16:02
Plan 9 in qemu / 9front in qemu
#!/bin/bash
wget -c https://9front.org/iso/9front-9442.0e66f87316e571f7edf5274369ec69a5905507aa.amd64.iso.gz
gunzip -k 9front-9442.0e66f87316e571f7edf5274369ec69a5905507aa.amd64.iso.gz
if ! [ -f plan9.raw ]; then
qemu-img create plan9.raw 10G
fi
exec qemu-system-x86_64 -enable-kvm \
-smp $(nproc) \
-m $((8*1024)) \
@baryluk
baryluk / 3da240b059b1710b47d8774b27dc84bd05fb409c.patch
Created November 30, 2022 01:57
Demangle D programming language symbol names in Valgrind
commit 3da240b059b1710b47d8774b27dc84bd05fb409c (HEAD -> master)
Author: Witold Baryluk <[email protected]>
Date: Wed Nov 30 02:56:29 2022 +0100
Demangle D programming language (dlang) symbol names
diff --git a/coregrind/m_demangle/demangle.c b/coregrind/m_demangle/demangle.c
index 3fd7cb75f..a4031dc8a 100644
--- a/coregrind/m_demangle/demangle.c
+++ b/coregrind/m_demangle/demangle.c
@baryluk
baryluk / rsync_full.sh.example
Last active August 26, 2025 15:39
Total recall - rsync full archive
rsync --archive --verbose --acls --xattrs --atimes --hard-links --atimes --open-noatime --one-file-system \
--progress --human-readable --info=name0,progress2 --stats --ipv6 example.com:/home/user/Foo/ /tank/Foo/ --dry-run
# --info=del0,remove0,misc1,name0,progress2
# --info=del1,remove1,misc1,name1,progress2 - show a bit more stuff as they happen on each file
# Quick overview:
#
# --archive == -a, archive mode is -rlptgoD (but no -A,-X,-U,-N,-H):