View parser.cr
#!/usr/bin/env crystal | |
require "yaml" | |
file = ARGF | |
# first (not interested | |
file.gets("---") | |
# content |
View OpenRC ipfs
#!/sbin/openrc-run | |
# Distributed under the terms of the GNU General Public License v2 | |
command=/srv/ipfs/.go/bin/ipfs | |
name="ipfs" | |
description="InterPlanetary FileSystem" | |
pidfile=${pidfile:-/run/ipfs.pid} | |
user=${user:-ipfs} | |
group=${group:-ipfs} | |
app_path='/srv/ipfs' |
View 00-gentoo-installation-partitioning
#!/usr/bin/env bash | |
# WARNING!! | |
# This will obliterate all the data in your partition!! (not actually true, but act as if it was) | |
# Do NOT execute this script if you don't fully understand it! | |
# a few vars | |
amount_of_swap=$( free --si -g | grep Mem: | gawk '{ print $2 + 1}' ) | |
# create partitions |