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
self.db.command({ 'serverStatus': 1 }, function(err, result) { | |
if (err) { | |
return callback(err); | |
} | |
var versions = result.version.split(/\./); | |
if ((versions[0] < 2) || ((versions[0] == 2) && (versions[1] < 6))) { | |
return callback(new Error('\n\nMONGODB TOO OLD: your server must be at least MongoDB 2.6.0.\nYou currently have: ' + result.version)); | |
} | |
return callback(null); | |
}); |
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
server { | |
listen 80; | |
server_name oldname; | |
location / { | |
rewrite ^(.*)$ http://newname$1; | |
} | |
} | |
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
npm ERR! <?xml version="1.0" encoding="utf-8"?> | |
npm ERR! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | |
npm ERR! "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
npm ERR! <html> | |
npm ERR! <head> | |
npm ERR! <title>200 OK</title> | |
npm ERR! </head> | |
npm ERR! <body> | |
npm ERR! <h1>Error 200 OK</h1> | |
npm ERR! <p>OK</p> |
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
0 info it worked if it ends with ok | |
1 verbose cli [ 'node', '/Users/boutell/npm/bin/npm', 'publish' ] | |
2 info using npm@2.0.0-beta.0 | |
3 info using node@v0.10.28 | |
4 verbose node symlink /usr/local/bin/node | |
5 verbose publish [ '.' ] | |
6 verbose cache add [ '.', null ] | |
7 verbose cache add spec="." args=[".",null] | |
8 verbose cache add local package /Users/boutell/src/apostrophe-snippets | |
9 silly lockFile 3a52ce78- . |
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
for(var i = begin; i <= end; i++) { | |
pushOne(i); | |
} | |
function pushOne(i) { | |
q.push({name: 'Artist: ' + i}, function (err) { | |
console.log('wla' + i) | |
whop.lookupArtist(i) | |
}); | |
} |
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
{{ aposArea(page, 'content2', { | |
controls: [ | |
'Bold', | |
'Italic', | |
'Underline', | |
'Strike', | |
'Subscript', | |
'Superscript', | |
'RemoveFormat', | |
'NumberedList', |
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
/* jshint node:true */ | |
var generators = {}; | |
function range(first, last) { | |
var c = { | |
first: first, | |
last: last, | |
now: first, | |
step: function(c) { |
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
upstream upstream-EXAMPLE { | |
server localhost:3000; | |
# To use additional cores, edit your data/port file | |
# to read 3000 3001 3002 3003, and list the rest | |
# of them here too (commented out in this example). | |
# Your site will listen on one port per process | |
# automatically. Requires latest deployment files | |
# as found in sandbox | |
#server localhost:3001; | |
#server localhost:3002; |
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
cd /opt/stagecoach/apps/fandm/current | |
node app fandm:refresh-directory --parallel=4 |
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
app.use(function(req, res, next) { | |
var params = {}; | |
_.merge(params, req.body || {}, req.query || {}, req.params || {}); | |
req.params = params; | |
return next(); | |
}); |
OlderNewer