Skip to content

Instantly share code, notes, and snippets.

@pr1ntf
pr1ntf / iohyve.sh
Last active October 13, 2021 11:03
iohyve v0.2.5 -- bhyve manager based on iocage for FreeBSD
#!/bin/sh
# iohyve v0.2.5 2015/05/06 "ALL HAIL LINUS edition"
# Process command line
__parse_cmd () {
while [ $# -gt 0 ] ; do
case "$1" in
version) __version
exit
#!/bin/bash
modprobe -r ec_sys
modprobe ec_sys write_support=1
on="\x8a"
off="\x0a"
led(){
echo -n -e $1 | dd of="/sys/kernel/debug/ec/ec0/io" bs=1 seek=12 count=1 conv=notrunc 2> /dev/null
@bagder
bagder / trrprefs.md
Last active December 27, 2022 05:17
This once held TRR prefs. Now it has moved.

NOTE

This content has moved.

Please go to bagder/TRRprefs for the current incarnation of the docs, and please help us out polish and maintain this documentation!

@blacklion
blacklion / gateway.nanobsd
Created April 28, 2019 21:44
my NanoBSD router config
#! /bin/sh
NANO_NAME=gateway-j3160
NANO_SRC=/data/src
NANO_OBJ=/usr/obj/nanobsd/gateway.v3
NANO_ROOT_DIR=/usr/home/lev/nanobsd
NANO_CONFROOT=${NANO_ROOT_DIR}/gateway.v3
NANO_TOOLS=${NANO_ROOT_DIR}/scripts