This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env crystal | |
require "yaml" | |
file = ARGF | |
# first (not interested | |
file.gets("---") | |
# content |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 directories |