Skip to content

Instantly share code, notes, and snippets.

View parabuzzle's full-sized avatar

Mike Heijmans parabuzzle

View GitHub Profile
#!/bin/sh
cip=`ifconfig eth0.1 | grep inet | cut -d ':' -f 2 | awk 'NR==1{print $1}'`
lip=`nslookup hostname.homeunix.net| grep Address | cut -d ' ' -f 2 | awk 'NR==2{print $1}' `
if [ x$cip != x$lip ]; then
/bin/update_dyndns.sh
else
echo "good"
fi
class Event < ActiveRecord::Base
belongs_to :user
belongs_to :group
end