Skip to content

Instantly share code, notes, and snippets.

@rra3b
rra3b / 00-README.md
Last active May 20, 2024 07:37
Arch full disk encryption with BTRFS, FIDO2, Secure Boot, rEFInd boot manager

Arch Linux Installation Guide

Tested with Yubikey 5 NFC and Yubikey 5c NFC, but any security key with FIDO2 should work too.

Prepare

  1. Boot into the Arch Linux live ISO.
  2. Change the root password:
passwd
@rra3b
rra3b / php_ver_by_dir_for_mac.md
Last active March 8, 2022 10:51
Change php version by directory for mac (HomeBrew).

Prerequisites

Install php

install php versions you want from homebrew

brew install php@7.2 php@7.4 php@8.1
@rra3b
rra3b / GenericExtension.kt
Created October 2, 2019 12:42
Generic extension function in Kotlin
package io.rra3b.kotlin
inline fun <T, reified ProcessorOfT : AbstractDslStyleProcessor<T>> ProcessorOfT.process(
t: T,
processorOptions: ProcessorOfT.() -> Unit
) {
this.apply(processorOptions).process(t)
}
abstract class AbstractDslStyleProcessor<T> {