Skip to content

Instantly share code, notes, and snippets.

View geekdave's full-sized avatar

Dave Cadwallader geekdave

View GitHub Profile
@geekdave
geekdave / start_sc.sh
Last active May 30, 2016 04:06 — forked from mehmetg/start_sc.sh
Starts 5 SC instances for round robin load balancing and 1 for command relay. Relies on https://gist.github.com/mehmetg/9cdc77269ddef72ebc84
#!/usr/bin/env bash
#This script is intended to be run from the root of the sauce connect package.
SCBIN="bin/sc"
uname=$1
akey=$2
uname=$SAUCE_USERNAME
akey=$SAUCE_ACCESS_KEY
export tunnelId=$SAUCE_TUNNEL_ID
LOGPREFIX="/tmp"
@geekdave
geekdave / app.js
Created April 5, 2012 15:53 — forked from nagyv/app.js
backbone.js sub routing
var MyApp = {};
MyApp.Router = Backbone.Router.extend({
routes: {
// general routes for cross-app functionality
"" : "showGeneralHomepage",
"cart" : "showShoppingCart",
"account" : "showMyAccount",
// module-specific subroutes: