Skip to content

Instantly share code, notes, and snippets.

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();
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'});
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'});
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'});
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');
#!/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/"
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');
<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 *>
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);
#!/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): ')