Skip to content

Instantly share code, notes, and snippets.

Avatar
🕸️

Ivan Kozik ivan

🕸️
View GitHub Profile
@ivan
ivan / wat.txt
Created April 1, 2023 09:04
dependency tree for the NPM package "del"
View wat.txt
├─┬ del 7.0.0
│ ├─┬ globby 13.1.3
│ │ ├─┬ dir-glob 3.0.1
│ │ │ └── path-type 4.0.0
│ │ ├─┬ fast-glob 3.2.12
│ │ │ ├── @nodelib/fs.stat 2.0.5
│ │ │ ├─┬ @nodelib/fs.walk 1.2.8
│ │ │ │ ├─┬ @nodelib/fs.scandir 2.1.5
│ │ │ │ │ ├── @nodelib/fs.stat 2.0.5
│ │ │ │ │ └─┬ run-parallel 1.2.0
@ivan
ivan / Cults are patronage networks.md
Last active January 31, 2023 16:35
Cults are patronage networks
View Cults are patronage networks.md

Cults are patronage networks. They distribute benefits. The benefits could be intangible, they don't have to be money. Belonging is a benefit, acceptance is a benefit, access to [partners] is a benefit, money is a benefit of course, but also power is a benefit; an internal hierarchy. It's a fantasy, it's what we call in psychology is a paracosm. A paracosm is an alternative cosmos; it's detached, it's a bubble. And so within this bubble you can create an entire universe with its own laws of physics of you wish, and then if you play by these rules, you're mightily rewarded, emotionally, materially, in other ways. And if you don't, of course, you're sanctioned, similarly. So it's what we call a reinforcement system. It's a reward-punishment system. Positive and negative. And it's fairly intermittently by the way, it's fairly intermittent in the sense that very often, the leader kind of punished you to remind you that you're still at his mercy. He demotes you, he criticizes you publicly, he does something to

View gist:af8c4ff3e91950227a9dd75189a4f54c
Running unittests src/lib.rs (target/debug/deps/fclones-60f140ff6898185c)
running 7 tests [0/1927]
test hasher::test::test_file_hash_xxh3 ... FAILED
test hasher::test::test_file_hash_sha256 ... FAILED
test hasher::test::test_file_hash_sha3_512 ... FAILED
test hasher::test::test_file_hash_sha512 ... FAILED
test hasher::test::test_file_hash_metro_128 ... FAILED
test hasher::test::test_file_hash_blake3 ... FAILED
test hasher::test::test_file_hash_sha3_256 ... ok
View gist:b34285a55575f430f7bf0371f40b0e64
# while true; do echo "Again..."; rm -rf target/debug/build/blake3*; find target/debug -name '*blake3*' -type f -delete; RUSTFLAGS="-C target-cpu=haswell" low-pri cargo test test_file_hash || break; done
Again...
Compiling blake3 v1.3.1
Compiling fclones v0.29.1 (/home/at/trash/fclones)
Finished test [unoptimized + debuginfo] target(s) in 8.59s
Running unittests src/lib.rs (target/debug/deps/fclones-60f140ff6898185c)
running 7 tests
test hasher::test::test_file_hash_metro_128 ... ok
test hasher::test::test_file_hash_sha256 ... ok
@ivan
ivan / gist:9b0cf611a93612b3ad6f1d557db04b60
Last active January 25, 2023 07:42
checking some closed Signal-iOS bugs
View gist:9b0cf611a93612b3ad6f1d557db04b60
https://github.com/signalapp/Signal-iOS/issues/5459 closed without fix
https://github.com/signalapp/Signal-iOS/issues/4527 closed without fix but very rare?
https://github.com/signalapp/Signal-iOS/issues/902 closed without fix, somewhat important
https://github.com/signalapp/Signal-iOS/issues/4708 closed without fix
https://github.com/signalapp/Signal-iOS/issues/5454 closed without fix
https://github.com/signalapp/Signal-iOS/issues/5452 closed without fix
https://github.com/signalapp/Signal-iOS/issues/4066 closed without fix
https://github.com/signalapp/Signal-iOS/issues/5034 closed without fix
https://github.com/signalapp/Signal-iOS/issues/5143 closed without fix, but very rare probably
https://github.com/signalapp/Signal-iOS/issues/4542 closed without fix
View gist:09f944080f76d200a9734716370fc9a0
shrinking RPATHs of ELF executables and libraries in /nix/store/spwbdkpxr2837sbmqz23wpw6nyd4k9p8-python3.8-parsimonious-0.10.0
strip is /nix/store/6nv56m96hgvbf1s9gcxsqf8snynyib12-gcc-wrapper-11.3.0/bin/strip
stripping (with command strip and flags -S) in /nix/store/spwbdkpxr2837sbmqz23wpw6nyd4k9p8-python3.8-parsimonious-0.10.0/lib
patching script interpreter paths in /nix/store/spwbdkpxr2837sbmqz23wpw6nyd4k9p8-python3.8-parsimonious-0.10.0
checking for references to /build/ in /nix/store/spwbdkpxr2837sbmqz23wpw6nyd4k9p8-python3.8-parsimonious-0.10.0...
shrinking RPATHs of ELF executables and libraries in /nix/store/2v76xkk6qid6vgpzbmhcv3rm8flngsjc-python3.8-parsimonious-0.10.0-dist
strip is /nix/store/6nv56m96hgvbf1s9gcxsqf8snynyib12-gcc-wrapper-11.3.0/bin/strip
patching script interpreter paths in /nix/store/2v76xkk6qid6vgpzbmhcv3rm8flngsjc-python3.8-parsimonious-0.10.0-dist
checking for references to /build/ in /nix/store/2v76xkk6qid6vgpzbmhcv3rm8flngsjc-python3.8-parsimonious-0.10.0-dist...
Executing pyt
@ivan
ivan / Build CockroachDB on NixOS.md
Last active January 12, 2023 17:29
Build CockroachDB on NixOS (Cockroach Build Secrets Exposed)
View Build CockroachDB on NixOS.md

Build CockroachDB on NixOS

(entirely serious, this is how you do it, last tested January 12, 2023)

Summary: you can use nixpkgs's bazel_5 to build and run CockroachDB's bazelbuilder Docker container, which will use the bazel version it really wants to use for building cockroach. You need to patchelf a few things along the way, and then patchelf the resulting cockroach binary.


  1. Add this to your NixOS configuration:
@ivan
ivan / 2023_reading.md
Last active April 1, 2023 07:25
2023 reading list
View 2023_reading.md

Wherein I try to prioritize reading for the limited amount of time I have this year, and to remind myself to read more than just comments on the Internet. Because of problems of time and shifting interests, I will consider this a success if I read a third of the list. I'll reflect on the reading and deviations from the plan in Jan 2024.

{+} = added after initial planning

@ivan
ivan / All known numeric-only YouTube video IDs.md
Last active March 25, 2023 10:04
All known numeric-only YouTube video IDs as of 2023-01-02
View All known numeric-only YouTube video IDs.md
@ivan
ivan / filters.txt
Last active December 17, 2022 11:13
Some useful filters you can put into uBlock Origin
View filters.txt
! Generic rule to unjustify all justified text. Yes, you really need both rules.
! Test page: https://www.addameer.org/israeli_military_judicial_system/administrative_detention
! Test page: https://en.wikipedia.org/wiki/Typographic_alignment (needs !important)
! Test page: https://www.gwern.net/Screwfly (needs !important)
*#$#p:matches-css(text-align: justify) { text-align: left !important; }
*#$#p:matches-css(text-align: left) { text-align: left !important; }
! Set a line-height of 1.5 for <p> and <li> which do not already have a line-height specified by CSS
*#$#p:not(:matches-css(line-height: "")) { line-height: 1.5; }
*#$#li:not(:matches-css(line-height: "")) { line-height: 1.5; }