Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
import org.eclipse.jetty.server.Server; | |
import org.eclipse.jetty.servlet.ServletHandler; | |
import org.eclipse.jetty.servlets.ProxyServlet; | |
import javax.servlet.ServletConfig; | |
import javax.servlet.ServletException; | |
import javax.servlet.ServletRequest; | |
import javax.servlet.ServletResponse; | |
import java.io.IOException; |
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
require 'open-uri' | |
require 'rubygems' | |
require 'json' | |
# Change these settings | |
hostname = 'home.hostname.com' # the hostname you use to connect to home ip | |
apikey = 'your-dreamhost-api-key' # a dreamhost api key that has access to all dns functions | |
storedIP = '' | |
print 'Getting current external ip: ' |