Skip to content

Instantly share code, notes, and snippets.

Avatar

Renich Bon Ciric renich

View GitHub Profile
@renich
renich / parser.cr
Last active Apr 18, 2020
jekyll to pelican parser
View parser.cr
#!/usr/bin/env crystal
require "yaml"
file = ARGF
# first (not interested
file.gets("---")
# content
@renich
renich / OpenRC ipfs
Last active Jun 6, 2020
IPFS on Funtoo
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'
@renich
renich / 00-gentoo-installation-partitioning
Last active Jul 14, 2021
Install Gentoo Desktop into BtrFS subvolumes
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