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 restify = require('restify'), | |
server = restify.createServer({ | |
name: 'Hello World' | |
}); | |
server.use(restify.gzipResponse()); | |
var respond = function (req, res, next) { | |
res.send(200, {hello:'world'}); | |
next(); |
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
function camelCase(input) { | |
return input.toLowerCase().replace(/-(.)/g, function(match, group1) { | |
return group1.toUpperCase(); | |
}); | |
} |
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/bash | |
# @Description MigrateME | |
# @Usage Copy to the source server and run with: sh migrateMe.sh | |
# @Version 1.0.2 | |
# @Date Last Modified 22/01/2011 | |
# @Author Marius Voila <http://www.mariusv.com> | |
# @Copyright (c) 2011 mariusv under GNU GPL v2.0+ | |
# @Returns success or failure | |
function is_root_user() { |