Skip to content

Instantly share code, notes, and snippets.

View frankharvey's full-sized avatar

phishfry frankharvey

View GitHub Profile
@frankharvey
frankharvey / custom.cfg
Created January 5, 2020 19:27
FreeBSD 12.1 NanoBSD build file
NANO_NAME="custom"
NANO_ARCH="amd64"
NANO_KERNEL=GENERIC
NANO_DRIVE="da0"
NANO_PMAKE="make -j $(sysctl -n hw.ncpu)"
NANO_MEDIASIZE=1500000
NANO_BOOTLOADER="boot/boot0"
NANO_IMGNAME="nanobsd_${NANO_NAME}_${NANO_DRIVE}.img"
NANO_IMAGES=2
NANO_MODULES=
// rrd_temp.c
// Modified for sysctl OneWire data collection
// Created by Dr. Rolf Jansen on 2016-08-24.
// Copyright 2016 Dr. Rolf Jansen. All rights reserved.
// sudo cc rrd_temp.c -Wno-empty-body -Ofast -g0 -o rdd_temp
#include <stdlib.h>
#include <stdio.h>
#include <fcntl.h>
#include <signal.h>
@frankharvey
frankharvey / setup.sh
Created May 8, 2017 06:11
Crochet GenericI386 board file
TARGET_ARCH=i386
KERNCONF=GENERIC
IMAGE_SIZE=$((1600 * 1000 * 1000))
generic_i386_partition_image ( ) {
# basic setup
disk_partition_mbr
disk_ufs_create
# boot loader