Skip to content

Instantly share code, notes, and snippets.

type
Foo[T] = concept x
var t = T()
x.foo(t)
x.bar(t) is T
FooImpl[T] = object
proc foo[T](f: FooImpl[T], t: T) = discard
proc bar[T](f: FooImpl[T], t: T): T = t
type
Foo[T] = concept x
x.foo(T)
proc foobar[T](f: Foo[T]) =
f.foo(42)
type
FooImpl[T, U] = object
@gmpreussner
gmpreussner / archlinux-install-nvme-luks-lvm-btrfs-usb
Last active March 23, 2023 09:31
Minimal instructions for installing a fully encrypted ArchLinux with USB boot on Lenovo Yoga 920.
# Install a fully encrypted ArchLinux on NVMe with detached LUKS
# headers and LUKS encrypted UEFI boot partition on a USB dongle.
#
# Full tutorial can be found here:
# https://headcrash.industries/reference/fully-encrypted-archlinux-with-secure-boot-on-yoga-920/
#
# Written by Gerke Max Preussner <info@headcrash.industries>
# Overview ############################################################