Skip to content

Instantly share code, notes, and snippets.

View aldipower's full-sized avatar

Felix Gertz aldipower

View GitHub Profile
@aldipower
aldipower / keybase.md
Created February 3, 2022 10:51
keybase.md

Keybase proof

I hereby claim:

  • I am aldipower on github.
  • I am aldipower (https://keybase.io/aldipower) on keybase.
  • I have a public key ASDSCVHfn8vpDljxiGTA-2-gR3erXyvclY-MYWRW8T6ldQo

To claim this, I am signing this object:

@aldipower
aldipower / README.md
Created August 16, 2021 19:34 — forked from yorickdowne/README.md
Ubuntu Desktop 20.04 with mirrored ZFS boot drive

Overview

Ubuntu Desktop 20.04 supports a single ZFS boot drive out of the box. I wanted a ZFS mirror, without going through an entirely manual setup of Ubuntu as described by OpenZFS

This adds a mirror to an existing Ubuntu ZFS boot drive after the fact.

ZFS requires native encryption to be added at pool / dataset creation. Ubuntu 21.04 supports this during installation. Whether these instructions are suitable for mirroring such a setup has not been tested. For Ubuntu 20.04, these instructions are not suitable for creating an encrypted ZFS boot disk, please use the full instructions linked above for that. You can, however, add an encrypted dataset after the fact: You could encrypt just the portion of your file system that holds secrets.

Note: If your use case is running docker instances, and not a full-fledged Ubuntu install, then take a look at TrueNAS SCALE

package main
import (
"fmt"
"math"
"os"
"strconv"
"strings"
)
@aldipower
aldipower / cadence.js
Created November 9, 2018 12:55
Prints a cadence table for pace-'body height'-relations to gain optimal hip extension
#!/usr/bin/node
const bodyHeightCmArg = process.argv[2];
const paceArg = process.argv[3];
function printUsage() {
console.log(`Cadence calculator - Print cadence for specific paces and body height to gain optimal hip extension
Usage:
./cadence.js bodyHeightInCm [paceMinKm]
@aldipower
aldipower / LICENSE.txt
Created February 16, 2012 19:20 — forked from 140bytes/LICENSE.txt
140byt.es -- Click ↑↑ fork ↑↑ to play!
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE