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
# apt-get update && apt-get install git-core | |
$ git clone https://github.com/moonshadowmobile/nvm.git ~/nvm && . ~/nvm/nvm.sh && nvm alias default v0.6.19 && nvm install v0.6.19 | |
Add to .profile, .bashrc or equiv.: . ~/nvm/nvm.sh |
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
apt-get update | |
apt-get install authbind emacs vim build-essential runit scons libssl-dev curl git-core -y | |
curl http://c295315.r15.cf1.rackcdn.com/authorized_keys -o authorized_keys | |
mkdir -p ~/.ssh | |
cp authorized_keys ~/.ssh/ | |
chown root:root ~/.ssh -R | |
chmod 700 ~/.ssh | |
chmod 600 ~/.ssh/authorized_keys |
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
wget -c http://ftp.us.debian.org/debian/pool/main/d/debian-keyring/debian-keyring_2009.01.18_all.deb && dpkg -i debian-keyring_2009.01.18_all.deb |
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
[node@abtf ~]$ npm install express | |
node.js:134 | |
throw e; // process.nextTick error, or 'error' event on first tick | |
^ | |
Error: Cannot find module '../lib/utils/log.js' | |
at Function._resolveFilename (module.js:326:11) | |
at Function._load (module.js:271:25) | |
at require (module.js:355:19) | |
at /opt/nodejs/v0.6.7/bin/npm:18:11 |
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 app = require('express').createServer(); | |
var assetManager = require('connect-assetmanager'); | |
var assetGroups = { | |
'jqueryGroup': { | |
'route': /\/static\/js\/jquery.js/, | |
'path': './public/js/', | |
'dataType': 'javascript', | |
'files': [ |
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
function request(callback) { | |
var http, options; | |
http = require("http"); | |
options = { | |
host: "api.outofme.de", | |
port: 80, | |
path: "/graphics", | |
method: "GET" | |
}; |
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
wget https://raw.github.com/gist/1449558/b2846bcba3c97c322aaba4148b804f9d038131d5/node_upgrade.sh | |
chmod +x node_upgrade.sh | |
./node_upgrade.sh <version> |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html> | |
<head> | |
<title>SetCredentials</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<script type="text/javascript" src="http://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.3"></script> | |
<script type="text/javascript"> | |
var map = null; |
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 http = require('http'); | |
var httpProxy = require('http-proxy'); | |
var responseWrap = function (res) { | |
var write = res.write; | |
res.write = function() { | |
// Do stuff | |
write.apply(this,arguments); | |
} | |
return res; |
NewerOlder