Skip to content

Instantly share code, notes, and snippets.

@Nattefrost
Nattefrost / filebrowser_service.sh
Created May 8, 2021 16:17
bash script for Filebrowser on FreeBSD
# bash script for FreeBSD that acts as a daemon supporting
# stop/start/restart for the Filebrowser program
# - https://github.com/filebrowser/filebrowser
# drop in /usr/local/bin/ and chmod +x, then use as filebrowser_service stop|start|restart
workdir=/home/nattefrost/
pid_file=/tmp/filebrowser.pid
log_file=/tmp/filebrowser.log
#!/bin/sh
# Script for automatic installation mediaserver on TrueNAS:
# Torrent client, Sonarr, Radarr, Lidarr and some support programs.
# Create new TrueNAS jail using "Advanced jail creation".
# Ensure for switch on jail flag allow_mlock (REQUIRED)
# Jail flag allow_raw_sockets is helpful for troubleshooting (e.g. ping, traceroute)
# Setup jail's mountpoints.
@apearson
apearson / node-red
Last active February 28, 2024 09:50
Node-RED FreeBSD RC Script
#!/bin/sh
#
# PROVIDE: nodered
# REQUIRE: LOGIN
# KEYWORD: shutdown
# Author: Andrew Pearson (apearson.io)
# Version: 1.0.2
# Description:
@selankon
selankon / createTinc.sh
Last active March 2, 2022 09:27
Create all necessary files for a tinc host or server with an option to redirect all traffic to tinc interface
#/bin/bash
# Script to manage easy the creation and configuration of a tinc client
# Net and host names
NETNAME=lanparty
HOSTNAME=mylaptop
# Server settings
SERVERNAME=server # Let this string empty if you are creating the server (with a public ip address)
PUBLICADDRESS=ageof.lol
@jcs
jcs / gist:5573685
Last active April 2, 2024 20:18
macOS FileVault encryption and OpenBSD encrypted softraid on a Macbook Air/Pro

Update (2019-05-06): The Broadcom wireless card in the MacBook Pro works and can be crammed into the Air.

Update (2015-12-04): This document used to be very lengthy as there were many manual steps required to get OpenBSD and Mac OS X working together through Boot Camp Assistant (BCA), which created a hybrid MBR and enabled a legacy BIOS emulation mode which older versions of Windows (and OpenBSD) required. Newer Macbooks stopped supporting older versions of Windows through BCA and now only support Windows 10 since it uses GPT and UEFI. However, now that newer versions of OpenBSD support GPT and UEFI, Boot Camp Assistant is no longer needed at all to boot OpenBSD.

macOS FileVault encryption and OpenBSD encrypted softraid on a Macbook Air/Pro

OpenBSD works pretty well on at least the Mid-2011 Macbook Air (A1370, SandyBridge) and Mid-2013 Macbook Air (Haswell). The new KMS code in 5.4 brings up the MBA's eDP display in 1366x768 with backlight