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
argv = process.argv.slice(2) | |
stitch = require('stitch') | |
fs = require('fs') | |
mode = argv[0] || "DEV" | |
package = stitch.createPackage | |
paths: [__dirname + '/scripts'] | |
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
class YahooToken < ConsumerToken | |
YAHOO_SETTINGS={ | |
:site => "https://api.login.yahoo.com", | |
:request_token_path => "/oauth/v2/get_request_token", | |
:access_token_path => "/oauth/v2/get_token", | |
:authorize_path=> "/oauth/v2/request_auth" | |
} | |
def self.consumer |
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/sh | |
mongo localhost:27017/mongo run_command.js | |
mongo localhost:27018/mongo run_command.js | |
mongo localhost:27019/mongo run_command.js | |
# if you don't need connection infomation etc., use --quiet option. | |
# http://www.mongodb.org/display/DOCS/--quiet |
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
# -*- encoding : utf-8 -*- | |
#= Rainbows HTTP server (on unix socket!) | |
#== Rainbows can be used to manage multiple forked workers in a specified concurrency-IO model | |
# Set working directory for Capistrano | |
# pwd -L keeps symlinks | |
working_directory `pwd -L`.chomp | |
# Listen through a unix socket |