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 | |
### BEGIN INIT INFO | |
# Provides: nginx | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: nginx init.d script for Ubuntu 8.10 and lesser versions. | |
# Description: nginx init.d script for Ubuntu 8.10 and lesser versions. | |
### END INIT INFO |
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
worker_processes 1; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
passenger_root /home/appuser/.rvm/gems/ruby-1.9.2-p290@rails3010/gems/passenger-3.0.9; | |
passenger_ruby /home/appuser/.rvm/wrappers/ruby-1.9.2-p290@rails3010/ruby; | |
include mime.types; | |
default_type application/octet-stream; | |
keepalive_timeout 65; |
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
$:.unshift(File.expand_path('./lib', ENV['rvm_path'])) | |
require "rvm/capistrano" | |
set :rvm_ruby_string, '1.9.2@rails3010' | |
set :rvm_type, :user # Don't use system-wide RVM |
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 http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p290.tar.gz . | |
tar xvzf ruby-1.9.2-p290.tar.gz | |
cd ruby-1.9.2-p290 | |
./configure; make; sudo make install |
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
export GEM_HOME=/home/YOUR_USER_NAME/YOUR_APP_NAME/shared/bundle/ruby/1.9.1/ | |
cd $GEM_HOME; | |
cd gems/passenger-3.0.7/bin | |
./passenger-install-apache2-module |
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
LoadModule passenger_module /home/YOUR_USER_NAME/YOUR_APP_NAME/shared/bundle/ruby/1.9.1/gems/passenger-3.0.7/ext/apache2/mod_passenger.so | |
PassengerRoot /home/YOUR_USER_NAME/YOUR_APP_NAME/shared/bundle/ruby/1.9.1/gems/passenger-3.0.7 | |
PassengerRuby /usr/local/bin/ruby |
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> | |
<html id="home" lang="en"> | |
<head> | |
<title> | |
HTML5 tutorial - 1 | |
</title> | |
</head> | |
<body> | |
.... | |
</body> |
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> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Dive Into HTML5</title> | |
<script src="modernizr.min.js"></script> | |
</head> | |
<body> | |
... | |
</body> |
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
/* | |
Author: Libo Cao Meyers | |
Date: 10/04/2011 | |
Description: A javascript function that tests all modernizr supported html5/css3 | |
features for current browser. Alert will tell user the supported | |
and non-supported feature for current browser. It contains a good | |
list of html5 tags as well. | |
*/ | |
function testBrowserHtml5Support(){ | |
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
git reset --hard HEAD |
OlderNewer