This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getDirections(data) { | |
var responseBody = ""; | |
requestStr = "/m/directions?dirflg=r&saddr=" + escape(data.from) + "&daddr=" + escape(data.to); | |
console.log(requestStr); | |
var client = http.createClient(80, 'www.google.com'); | |
var request = client.request('GET', requestStr, {'host': 'www.google.com'}); | |
request.end(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var sys = require('sys'); | |
var fs = require('fs'); | |
var connect = require('./connect/lib/connect'); | |
var http = require('http'); | |
function getDirections(data, callback) { | |
requestStr = "/m/directions?dirflg=r&saddr=" + escape(data.from) + "&daddr=" + escape(data.to); | |
var client = http.createClient(80, 'www.google.com'); | |
var request = client.request('GET', requestStr, {'host': 'www.google.com'}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var sys = require('sys'); | |
var fs = require('fs'); | |
var connect = require('./connect/lib/connect'); | |
var http = require('http'); | |
function getDirections(data, callback) { | |
requestStr = "/m/directions?dirflg=r&saddr=" + escape(data.from) + "&daddr=" + escape(data.to); | |
var client = http.createClient(80, 'www.google.com'); | |
var request = client.request('GET', requestStr, {'host': 'www.google.com'}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var sys = require('sys'); | |
var fs = require('fs'); | |
var connect = require('./connect/lib/connect'); | |
var http = require('http'); | |
function getDirections(data, callback) { | |
requestStr = "/m/directions?dirflg=r&saddr=" + escape(data.from) + "&daddr=" + escape(data.to); | |
var client = http.createClient(80, 'www.google.com'); | |
var request = client.request('GET', requestStr, {'host': 'www.google.com'}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var sys = require('sys'); | |
var fs = require('fs'); | |
var connect = require('./connect/lib/connect'); | |
var http = require('http'); | |
var url = require('url'); | |
function getDirections(data, callback) { | |
requestStr = "/m/directions?saddr=" + escape(data.from) + "&daddr=" + escape(data.to) +"&dirflg=r"; | |
var client = http.createClient(80, 'www.google.com'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Syncing Stars_Pix to Wind_Backup" | |
rsync --dry-run --progress -av --exclude=".*/" "/Volumes/Stars_Pix/Pictures/Lightroom Masters 2010/" "/Volumes/Wind_Backup/Pictures/Lightroom Masters 2010/" | |
echo "Syncing Wind_Backup to Stars_Pix" | |
rsync --dry-run --progress -av --exclude=".*/" "/Volumes/Wind_Backup/Pictures/Lightroom Masters 2010/" "/Volumes/Stars_Pix/Pictures/Lightroom Masters 2010/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var sys = require('sys'); | |
var fs = require('fs'); | |
var connect = require('./connect/lib/connect'); | |
var http = require('http'); | |
var url = require('url'); | |
function getDirections(data, callback) { | |
requestStr = "/m/directions?saddr=" + escape(data.from) + "&daddr=" + escape(data.to) +"&dirflg=r"; | |
var client = http.createClient(80, 'www.google.com'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost 1.2.3.4:80> | |
ServerAdmin [email protected] | |
ServerName example.com | |
DocumentRoot /srv/www/example.com/public/ | |
ErrorLog /srv/www/example.com/logs/error.log | |
CustomLog /srv/www/example.com/logs/access.log combined | |
ProxyPass / http://127.0.0.1:8100/ | |
ProxyPassReverse / http://127.0.0.1:8100/ | |
<Proxy *> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module = {name: "EMU Marketing Wiki", | |
description: "Web server for EMU Marketing documentation", | |
hostname: 'emumarketing.uoregon.edu', | |
path: '/wiki/index.php/Main_Page', | |
testString: 'Welcome to the EMU Marketing Wiki'}; | |
var sys = require('sys'), | |
http = require('http'); | |
var client = http.createClient(80, module.hostname); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/python | |
import re | |
import os | |
import subprocess | |
def createJail(jail = '', ip = ''): | |
#Prompts user for Jail parameters and builds Jail filesystem | |
conf_file = '/etc/rc.conf' | |
jail = raw_input('Jail name (whatever.uoregon.edu): ') |
OlderNewer