Skip to content

Instantly share code, notes, and snippets.

Chester Wood chetstone

  • Crestone, CO
Block or report user

Report or block chetstone

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
chetstone / .forward
Last active Jan 4, 2016
Forwarding Ubiquiti AirVision2 (linux) Motion Alerts based on regions
View .forward
# 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 / rvm.rb
Created Nov 12, 2011
Using rvm with tcsh
View rvm.rb
#!/usr/bin/env ruby
# riffing on a tune by Paul at
# 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.
You can’t perform that action at this time.