Skip to content

Instantly share code, notes, and snippets.

View renich's full-sized avatar

Renich Bon Ciric renich

View GitHub Profile
@renich
renich / parser.cr
Last active April 18, 2020 19:29
jekyll to pelican parser
#!/usr/bin/env crystal
require "yaml"
file = ARGF
# first (not interested
file.gets("---")
# content
@renich
renich / OpenRC ipfs
Last active June 6, 2020 14:23
IPFS on Funtoo
#!/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.bash
Last active September 10, 2024 19:02
Install Gentoo on BtrFS subvolumes + UEFI
#!/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