Skip to content

Instantly share code, notes, and snippets.

Mikolaj Pawlikowski seeker89

Block or report user

Report or block seeker89

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View webserver.js
// A very basic web server in node.js
// Stolen from: Node.js for Front-End Developers by Garann Means (p. 9-10)
var port = 8000;
var serverUrl = "";
var http = require("http");
var path = require("path");
var fs = require("fs");
View gist:9336576
# install the backported kernel
sudo apt-get update
sudo apt-get install -y linux-image-generic-lts-raring linux-headers-generic-lts-raring
# reboot
sudo reboot
seeker89 /
Last active Aug 29, 2015
Install Node.js, nginx
sudo apt-get update
sudo apt-get install -y python-software-properties python g++ make
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install -y nodejs
sudo apt-get install -y nginx
sudo apt-get install -y git
sudo npm install -g coffee-script
sudo npm install -g pm2
You can’t perform that action at this time.