Skip to content

Instantly share code, notes, and snippets.

View ellenhp's full-sized avatar
🐈

Ellen Poe ellenhp

🐈
  • Seattle
  • 05:27 (UTC -07:00)
View GitHub Profile
@evinism
evinism / fizzbuzz.d.ts
Created April 29, 2022 05:46
Type-level FizzBuzz in Typescript
/* Summon the naturals */
type Zero = 0;
type Succ<T extends Succ<any> | Zero> = {
next: T;
}
// Construct a few naturals.
type n0 = Zero;
type n1 = Succ<n0>;
type n2 = Succ<n1>;
@theodric
theodric / kvm-passthrough-notes
Last active July 2, 2024 21:19
Notes on device passthrough configuration for KVM hosts
2024 ADDENDUM TO BELOW NOTES:
1. I have found that the linux-amd-znver3 kernel reliaby works for passthrough, initializing devices in a sane order and respecting boot-time blacklist kernel args https://aur.archlinux.org/packages/linux-amd-znver3
2. I have since managed to get the Nvidia RTX A2000 12GB working in passthrough with a few different settings which I will document here Real Soon Now, I Swear™.
3. The RTX 4000 SFF Ada Generation 20GB works as a drop-in replacement for the A2000.
4. Stability is not guaranteed - I don't know what to blame, but it's infrequent enough (i.e. one crash every few months) that I haven't spent time on it.
5. I have recently transitioned away from Arch to openSUSE Tumbleweed, which works out-of-the-box as a passthrough host and does not constantly break.
6. I am separately maintaning a variant of the linux-amd-znver3 and linux-amd-znver2 configs which have been tweaked to work on openSUSE. I can share these or even provide builds if there is interest.
2022 NOTES - FULLY WOR