Skip to content

Instantly share code, notes, and snippets.

View gozoinks's full-sized avatar

John Burwell gozoinks

  • Houston, TX
View GitHub Profile
@gozoinks
gozoinks / gist:c7708c6b9907acd86384a1d76f26cec1
Last active January 6, 2022 14:23
Monit on pfsense 2.4 ARM (SG-1000)
# Monit on pfSense 2.4 ARM (SG-1000)
# Install the package from the FreeBSD repository
pkg add http://pkg.freebsd.org/FreeBSD:11:armv6/latest/All/monit-5.18.txz
# Rename the rc.d script to .sh and fix permissions so pfSense will start it automatically
mv /usr/local/etc/rc.d/monit /usr/local/etc/rc.d/monit.sh
chmod 0755 /usr/local/etc/rc.d/monit.sh
# Add monit_enable=YES to a local rc.conf
@aortmannm
aortmannm / gitlab.sh
Last active November 18, 2021 22:12
gitlab installation on smartOS
## Install necessary packages
pkgin up
pkgin -y in \
bash \
coreutils \
curl \
gcc47 \
gcc47-runtime \
gmake \
icu \
@jasonpincin
jasonpincin / vmip.sh
Created February 7, 2013 00:12
Updates IP addresses of a SmartOS VM (with less hassle)
#!/usr/bin/bash
# Updates IP addresses of a SmartOS VM
# This script stops the VM, updates the IP address(es),
# and starts the VM back up.
#
# Usage:
# vmip.sh <uuid> <ip1> [ip2] [ip3] [...]
#
# The IP's are applied to NICs of the VM in order. The
@bmatherly
bmatherly / APC PDU Monitor Instructions
Last active February 9, 2023 20:56
Script to control an APC MasterSwitch PDU to reset an outlet when the network stops working
sudo cp netmonitor.sh /usr/bin/netmonitor.sh
sudo chmod 755 /usr/bin/netmonitor.sh
sudo crontab -e
Add to crontab:
*/2 * * * * /usr/bin/netmonitor.sh 2>&1 | /usr/bin/logger -t netmonitor