Skip to content

Instantly share code, notes, and snippets.

@d10v
d10v / partition-nixos-zfs-swap-luks.sh
Created January 1, 2021 22:27 — forked from timstott/partition-nixos-zfs-swap-luks.sh
discourse.nixos.org/t/nixos-on-luks-encrypted-partition-with-zfs-and-swap/6873 - original script
#!/usr/bin/env bash
# NixOS install with encrypted root and swap
#
# sda
# ├─sda1 BOOT
# └─sda2 LINUX (LUKS CONTAINER)
# └─cryptroot LUKS MAPPER
# └─cryptroot1 SWAP
# └─cryptroot2 ZFS
@d10v
d10v / split_keyboards.md
Created November 20, 2018 07:48 — forked from itod/split_keyboards.md
Every "split" mechanical keyboard currently being sold that I know of
@d10v
d10v / nixos.md
Created July 13, 2018 14:31 — forked from martijnvermaat/nixos.md
Installation of NixOS with encrypted root

Principles of Adult Behavior

  1. Be patient. No matter what.
  2. Don’t badmouth: Assign responsibility, not blame. Say nothing of another you wouldn’t say to him.
  3. Never assume the motives of others are, to them, less noble than yours are to you.
  4. Expand your sense of the possible.
  5. Don’t trouble yourself with matters you truly cannot change.
  6. Expect no more of anyone than you can deliver yourself.
  7. Tolerate ambiguity.
  8. Laugh at yourself frequently.
#!/usr/bin/env python
from __future__ import print_function
import argparse
import json
import chef
import os
import sys
import re
from time import time
package main
import (
"bytes"
"encoding/json"
"flag"
"io"
"log"
"net"
"os"
@d10v
d10v / docker-ovs.md
Last active August 29, 2015 14:15 — forked from noteed/docker-ovs.md
curl -XPUT 'http://127.0.0.1:9200/_template/logstash' -v -d '{
"template": "logstash-*",
"settings": {
"number_of_shards": 1,
"number_of_replicas": 0
},
"mappings": {
"_default_": {
"_source": { "compress": true },
"_all": { "enabled": false },