Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
: ${n:=$(nproc)}
: ${pool:=zroot}
basefs="${pool}/zfsdl"
set -eu
zfs destroy -r "${basefs}" >/dev/null 2>&1 || true
zfs create -o com.sun:auto-snapshot=false "${basefs}"
@dag-erling
dag-erling / spin.c
Last active October 18, 2021 08:13
Drive your load average arbitrarily high
/*-
* Copyright (c) 2021 Dag-Erling Smørgrav
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright

Keybase proof

I hereby claim:

  • I am dag-erling on github.
  • I am dagerling (https://keybase.io/dagerling) on keybase.
  • I have a public key whose fingerprint is BB57 22E5 C9B6 77D1 73C3 8CFC 92C8 4345 6DA6 A66E

To claim this, I am signing this object: