Skip to content

Instantly share code, notes, and snippets.

View chetstone's full-sized avatar

Chester Wood chetstone

View GitHub Profile
@chetstone
chetstone / .forward
Last active January 4, 2016 12:40
Forwarding Ubiquiti AirVision2 (linux) Motion Alerts based on regions
# Exim filter
# The first line above must be exactly like that.
#
# Since Airvision2 only has a provision to send email notifications for all regions or none,
# we add this kludge to forward emails based on the region name included in the email.
# Basic steps are these:
# 1. Install a mail server on your ubuntu/debian box if it's not there already. (Not as hard as it sounds.)
# 2. Configure it to forward nonlocal mail to a smarthost.
# 3. Add a user account to Airvision to send notifications to the admin account on the local host.
# 4. Install this file (.forward) in the admin account home directory. (Must be writeable only to the user.)
@chetstone
chetstone / rvm.rb
Created November 12, 2011 21:31
Using rvm with tcsh
#!/usr/bin/env ruby
# riffing on a tune by Paul at po-ru.com
# 1. Using a bash shell, install rvm according to instructions.
# 2. Install this script in your path, say in ~/bin.
# 3. Make it executable.
# 4. Add the following alias to your .tcshrc:
# alias rvm 'eval `~/bin/rvm.rb \!*`'
# 5. Use and enjoy rvm in your tcsh
# Note that this script relies on a ruby already installed in the path.
# It shouldn't be too hard to enhance it to bootstrap itself using rvm.