Skip to content

Instantly share code, notes, and snippets.

View ijanos's full-sized avatar

János Illés ijanos

View GitHub Profile
@ijanos
ijanos / repairstdout.txt
Created October 29, 2026 15:44
btrfs check --repair
[root@sysrescue ~]# btrfs check --repair /dev/nvme0n1p3
enabling repair mode
WARNING:
Do not use --repair unless you are advised to do so by a developer
or an experienced user, and then only after having accepted that no
fsck can successfully repair all types of filesystem corruption. E.g.
some software or hardware bugs can fatally damage a volume.
The operation will start in 10 seconds.
Use Ctrl-C to stop it.
@ijanos
ijanos / btrfs.md
Created October 27, 2026 08:44
Btrfs metadata corruption

Btrfs metadata corruption — investigation summary

Date: 26 October 2026
System: Bluefin / OSTree-based Linux installation, investigated from SystemRescue
Affected partition: /dev/nvme0n1p3
Status: Root cause not established; corruption identified; no repair performed in this discussion.

Executive summary

btrfs scrub passed, but an offline btrfs check detected inconsistent filesystem metadata. An earlier kernel error occurred while unlinking parental-controls.page, aborted the Btrfs transaction, and forced the filesystem read-only. Subsequent investigation identified the affected directory and file in an OSTree deployment. The file's contents remain readable.

Running target/debug/parallel_letter_frequency-633a2f434576b678
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured
Running target/debug/parallel_letter_frequency-92f6d5c26c276ad3
running 9 tests
test test_all_three_anthems_1_worker ... ignored
tests/parallel-letter-frequency.rs:40:16: 40:36 error: unresolved name `frequency::frequency` [E0425]
tests/parallel-letter-frequency.rs:40 assert_eq!(frequency::frequency(&[], 4), HashMap::new());
^~~~~~~~~~~~~~~~~~~~
tests/parallel-letter-frequency.rs:40:5: 40:62 note: in this expansion of assert_eq! (defined in <std macros>)
tests/parallel-letter-frequency.rs:40:16: 40:36 help: run `rustc --explain E0425` to see a detailed explanation
tests/parallel-letter-frequency.rs:48:16: 48:36 error: unresolved name `frequency::frequency` [E0425]
tests/parallel-letter-frequency.rs:48 assert_eq!(frequency::frequency(&["a"], 4), hm);
^~~~~~~~~~~~~~~~~~~~
tests/parallel-letter-frequency.rs:48:5: 48:53 note: in this expansion of assert_eq! (defined in <std macros>)
tests/parallel-letter-frequency.rs:48:16: 48:36 help: run `rustc --explain E0425` to see a detailed explanation
[Match]
Name=eth*
[Network]
DHCP=v4
IPv4LL=true
for _, intro := range introspectPath("/com/github/guelfey/Demo") {
fmt.Println(intro.path, intro.introspectableXML)
conn.Export(introspect.Introspectable(intro.introspectableXML), dbus.ObjectPath(intro.path), "org.freedesktop.DBus.Introspectable")
}
@ijanos
ijanos / sleepsort.bash
Created June 15, 2011 16:41
Sleep sort!
#!/bin/bash
# Sleep sort
# http://dis.4chan.org/read/prog/1295544154
function f() {
sleep "$1"
echo "$1"
}