This file contains hidden or 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
Checking for program g++ or c++ : /usr/bin/g++ | |
Checking for program cpp : /usr/bin/cpp | |
Checking for program ar : /usr/bin/ar | |
Checking for program ranlib : /usr/bin/ranlib | |
Checking for g++ : ok | |
Checking for program gcc or cc : /usr/bin/gcc | |
Checking for program ar : /usr/bin/ar | |
Checking for program ranlib : /usr/bin/ranlib | |
Checking for gcc : ok | |
Checking for library dl : yes |
This file contains hidden or 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 | |
SERVER=https://api.no.de | |
SCRIPT="$0" | |
if [ ${SCRIPT:0:1} == "/" ]; then | |
SCRIPT="$(basename -- "$SCRIPT")" | |
fi | |
main () { | |
cmd=${1-help} |
This file contains hidden or 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
shripad-ks-macpro31:node-msgpack shripadk$ sudo make | |
cd deps/msgpack && \ | |
mkdir -p dist && \ | |
./configure --enable-static --disable-shared \ | |
--prefix=/deps/msgpack/dist && \ | |
make && \ | |
make install | |
checking for a BSD-compatible install... /usr/bin/install -c | |
checking whether build environment is sane... yes | |
checking for a thread-safe mkdir -p... ac/install-sh -c -d |
This file contains hidden or 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 server = require('http'), | |
fugue = require('fugue'); | |
fugue.start( | |
server.createServer(function (req, res) { | |
res.writeHead(200, {'Content-Type': 'text/plain'}); | |
res.end('Hello World\n'); | |
}) | |
, 3000, null, 10, { |
This file contains hidden or 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 server = require('http'), | |
fugue = require('fugue'); | |
fugue.start( | |
server.createServer(function (req, res) { | |
res.writeHead(200, {'Content-Type': 'text/plain'}); | |
res.end('Hello World\n'); | |
}) | |
, 3000, null, 10, { |
This file contains hidden or 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 dependencies | |
### | |
require.paths.unshift "#{__dirname}/lib/support/express-csrf/" | |
require.paths.unshift "#{__dirname}/lib/support/node_hash/lib/" | |
express = require 'express' | |
app = module.exports = express.createServer() | |
RedisStore = require 'connect-redis' |
This file contains hidden or 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
NodeQ = require "#{__dirname}/../lib/NodeQ" | |
queueAworker = new NodeQ("queueA") | |
secondsFromNow = (secs) -> | |
Math.round(Date.now() + (secs * 1000)) | |
minutesFromNow = (minutes) -> | |
Math.round(Date.now() + (minutes * 60 * 1000)) | |
hoursFromNow = (hours) -> | |
Math.round(Date.now() + (hours * 60 * 60 * 1000)) | |
daysFromNow = (days) -> |
This file contains hidden or 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
# Redis configuration file example | |
# Note on units: when memory size is needed, it is possible to specifiy | |
# it in the usual form of 1k 5GB 4M and so forth: | |
# | |
# 1k => 1000 bytes | |
# 1kb => 1024 bytes | |
# 1m => 1000000 bytes | |
# 1mb => 1024*1024 bytes | |
# 1g => 1000000000 bytes |
This file contains hidden or 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
checkElement = (element) -> | |
if typeof element is 'object' | |
return element | |
else | |
return $(element) | |
class TwistedGrid | |
constructor: (grid, records) -> | |
@grid = checkElement(grid) | |
@records = records |
This file contains hidden or 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
{"message":"Cannot provision server from empty free pool.","stack":"Error: Cannot provision server from empty free pool.\n at [object Object].provisionServer (/root/nodejitsu/vendor/broodmother/lib/broodmother/master/simple-provisioner.js:46:15)\n at notifySlaves (/root/nodejitsu/vendor/broodmother/lib/broodmother/master/master.js:612:28)\n at /root/nodejitsu/vendor/broodmother/lib/broodmother/master/master.js:652:7\n at /root/nodejitsu/vendor/broodmother/lib/broodmother/master/master.js:567:7\n at Object.callback (/root/nodejitsu/vendor/broodmother/vendor/resourcer/lib/resourcer/resource.js:76:13)\n at /usr/local/lib/node/.npm/cradle/0.2.3/package/lib/cradle.js:242:26\n at IncomingMessage. (/usr/local/lib/node/.npm/cradle/0.2.3/package/lib/cradle.js:181:53)\n at IncomingMessage.emit (events.js:41:20)\n at HTTPParser.onMessageComplete (http.js:112:23)\n at Client.onData [as ondata] (http.js:889:27)"} |