Skip to content

Instantly share code, notes, and snippets.

View mavropalias's full-sized avatar
👋

Kostas Mavropalias mavropalias

👋
View GitHub Profile
@mavropalias
mavropalias / gist:3135341
Created July 18, 2012 09:55
Node.js Amazon Cloudformation template
{
"AWSTemplateFormatVersion" : "2010-09-09",
"Description" : "Node.js server",
"Parameters" : {
"KeyName" : {
"Description" : "Name of an existing EC2 KeyPair to enable SSH access",
"Type" : "String"
},
{
'id': 1,
'name': 'MP3 Player',
'description': '16gb memory, touch screen, USB connection'
}
{
'id': 1,
'name': 'MP3 Player',
'description': '16gb memory, touch screen, USB connection'
}
sudo npm install express -g
sudo npm install forever -g
git clone https://github.com/isaacs/npm.git
cd npm
sudo make install
<Use the down keyboard arrow to find this line:>
Defaults secure_path = /sbin:/bin:/usr/sbin:/usr/bin
<Use the right arrow to move the cursor to the end of the line and press the INSERT button. Now type>
:/usr/local/bin
<In order to save your changes and exit VI, hit ESC and type>
:
<now type>
sudo su
vi /etc/sudoers
git checkout v0.6.8
./configure
make
sudo make install
sudo yum install gcc-c++ make
sudo yum install openssl-devel
sudo yum install git
git clone git://github.com/nodejs/node.git
cd node
sudo yum update