Skip to content

Instantly share code, notes, and snippets.

@jmichealson
jmichealson / hb-setup.sh
Created March 25, 2024 15:20 — forked from ohmantics/hb-setup.sh
Homebridge in an iocage jail
DATASET=/zroot/apps
# Create the jail
iocage create -n "homebridge" -r 13.1-RELEASE dhcp=1 bpf=1 vnet=1 allow_raw_sockets="1" boot="on"
# switch to Latest
iocage exec homebridge "mkdir -p /usr/local/etc/pkg/repos"
iocage exec homebridge "echo -e 'FreeBSD: { url: \"pkg+http://pkg.FreeBSD.org/\${ABI}/latest\" }' > /usr/local/etc/pkg/repos/FreeBSD.conf"
# Install Homebridge and dependencies
@jmichealson
jmichealson / ExportAlbumAsFolder.applescript
Created February 1, 2021 14:24 — forked from SidShetye/ExportAlbumAsFolder.applescript
Scan through all albums and export media items (movies, images etc) into a suitable folder. There is custom logic to pick the appropriate destination folder.
------------------------------------------------
-- Settings Start: Change these as needed
global gDest
set gDest to "/Volumes/MacPhotos/Pictures/ExportAlbums/" as POSIX file as text -- the destination folder (use a valid path)
global gLogFile
set gLogFile to gDest & "ExportAlbumToFolders.log"
global gKeywordOnSuccess
set gKeywordOnSuccess to "exported"
@jmichealson
jmichealson / gaia-ftw-user-data.sh
Created September 16, 2019 22:22 — forked from dana-at-cp/gaia-ftw-user-data.sh
Gaia FTW cloud-init user data for Blink-enabled and legacy config_system images
#!/bin/bash
# gaia-ftw-user-data.sh
# all set to admin123
SIC_KEY='admin123'
ADMIN_HASH='$6$0rVzHRkDOMwsB9cP$dm60oGLtEfgNGZK.WiiECa4FP3MPBbhob.oG.a33LyoEZvlbfL.5AFRzKmzRB4OQq0rgDF4JymvibXz3hNB2z/'
ADMIN_PW='admin123'
FTW_LOG=/var/log/ftw.log
@jmichealson
jmichealson / user-data.txt
Last active September 5, 2018 09:41 — forked from heri16/user-data.txt
Docker-CE Cloud-init for Ubuntu 16.04 (LTS)
#cloud-config
# Upgrade the instance on first boot
# (ie run apt-get upgrade)
#
# Default: false
# Aliases: apt_upgrade
package_upgrade: true
# Install additional packages on first boot