Skip to content

Instantly share code, notes, and snippets.

View tiagoefreitas's full-sized avatar

Tiago Freitas tiagoefreitas

View GitHub Profile
import {assertString} from 'plugins/assert'
type TemplateContext = {
input: string
customPrompt?: string
}
type Template = (context: TemplateContext) => string
type ServerPredictionPrompt = {
@tiagoefreitas
tiagoefreitas / install-ubuntu.sh
Last active November 20, 2019 01:38 — forked from vrivellino/install-ubuntu.sh
Install Ubuntu 18.04: ZFS on encrypted drives
#!/usr/bin/env bash
# Adapted from https://github.com/zfsonlinux/zfs/wiki/Ubuntu-18.04-Root-on-ZFS
# Should be executed from a live CD environment
set -e
## CONFIG VARS
set -x
# Disk drive ids (symlinks in /dev/disk/by-id)
bootdisk='bootdisk-id'
rdisk1='root-disk-id'