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/sh | |
| # get the latest | |
| sudo apt-get update | |
| sudo apt-get -y upgrade | |
| # download XAMPP | |
| wget -Oxampp-linux-1.8.1.tar.gz http://www.apachefriends.org/download.php?xampp-linux-1.8.1.tar.gz | |
| wget -Oxampp-linux-devel-1.8.1.tar.gz http://www.apachefriends.org/download.php?xampp-linux-devel-1.8.1.tar.gz |
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
| require('graphdat').config({suppress:{context_pop_automatic:true}}); // require the graphdat module first, always! | |
| var fs = require("fs"); // require the Filesystem module so we can read and write files | |
| var http = require("http"); // require the HTTP module | |
| // | |
| // ### function createServer (requestCallback) | |
| // #### @requestCallback {function} function is called on every request made. | |
| // | |
| http.createServer(function (request, response) { |
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
| require('graphdat'); // require the graphdat module first, always! | |
| var http = require("http"); // require the HTTP module | |
| // | |
| // Create the simple HTTP Server | |
| // ### function createServer (requestCallback) | |
| // #### @requestCallback {function} function is called on every request made. | |
| // Create a Simple HTTP server. | |
| // The request parameter will hold all request parameters | |
| // The response parameter will hold all of the repsonse values sent to the client |
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
| #Steps to install RVM + Ruby 1.9.2 + Rails + nginx + Passenger on CentOS (tested on v5.5) | |
| # Install git and curl, if not already installed | |
| sudo yum install git | |
| sudo yum install curl | |
| # Create the rvm group and add any users who will be using rvm to the group | |
| sudo su - | |
| groupadd rvm |
NewerOlder