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
// Run this with node and then run the output with sh | |
var Http = require('http') | |
var ChildProcess = require('child_process'); | |
Http.cat("http://github.com/api/v2/json/repos/show/creationix", function (err, json) { | |
if (err) throw err; | |
var data = JSON.parse(json); | |
data.repositories.forEach(function (repo) { | |
console.log("echo " + JSON.stringify(repo.name + " - " + repo.description)); | |
console.log("git clone --bare " + repo.url); | |
}); |
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
/** | |
* Bootstrap app. | |
*/ | |
require.paths.unshift(__dirname + '/../../lib/'); | |
/** | |
* Module dependencies. | |
*/ |
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 express = require('express'); | |
var redis = require('redis'); | |
const serverType = process.argv[2]; | |
const serverHost = process.argv[3]; | |
const serverPort = parseInt(process.argv[4]); | |
const redisPort = 6379; | |
const redisHost = '127.0.0.1'; |