Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am linuxluser on github.
  • I am linuxluser (https://keybase.io/linuxluser) on keybase.
  • I have a public key ASCvsunP87hBD1RiqH032ge0BE-zXBe76hhUtYK2svjKNQo

To claim this, I am signing this object:

#!/bin/python3
import itertools
S = 'abc123xyz789'
L = []
print(' Orig string:', S)
while S:
alpha = ''.join(itertools.takewhile(str.isalpha, S))
L.append(alpha)

Installing Nixos

Partition Disks w/Encryption and LVM

NOTE: Assumes you're using the entire disk /dev/sda.

$ parted /dev/sda -- mklabel gpt
$ parted /dev/sda -- mkpart primary 512MiB 100%
$ parted /dev/sda -- mkpart ESP fat32 1MiB 512MiB