Public Gists by ozeias

Gravatar
Mon Nov 16 03:26:54 -0800 2009
1
2
3
/*!
 * jQuery ie6ize: Emulate IE-6 rendering - 11/13/2009
 * http://mankzblog.wordpress.com/2009/11/13/ie6-frame-to-battle-chrome-frame/
Gravatar
Sun Oct 25 04:35:37 -0700 2009
1
2
3
# 1) Point *.example.com in your DNS setup to your server.
#
# 2) Setup an Apache vhost to catch the star pointer:
Gravatar
Sun May 31 07:18:43 -0700 2009
1
2
3
# extracted from marty andrew's presentation on ruby static code analysis
# http://www.slideshare.net/martin_j_andrews/code-quality-analysis
 
Gravatar
Wed May 20 06:09:43 -0700 2009
1
2
3
# Variation on Hashrocket's script for managing the git process
# as documented here: http://reinh.com/blog/2008/08/27/hack-and-and-ship.html
# Create shell scripts out of each of these, put them in your path (~/bin for example)
Gravatar
Thu Jan 15 09:16:18 -0800 2009
1
2
3
## railsbox.org:~ ozeias$ vim /usr/local/nginx/conf/vhosts/example.com.conf
# This is for a WordPress installed at /var/www/example.com/blog, and accessed at http://example.com/blog
server {
Gravatar
Thu Jan 15 09:10:05 -0800 2009
1
2
3
## railsbox.org:~ ozeias$ vim /usr/local/nginx/conf/vhosts/blog.example.com.conf
# This is for a WordPress installed at /var/www/example.com/blog, and accessed at http://blog.example.com
server {
Gravatar
Thu Jan 15 09:01:56 -0800 2009
1
2
3
## railsbox.org:~ ozeias$ vim /usr/local/nginx/conf/vhosts/example.com.conf
# This is for a WordPress installed at /var/www/example.com/blog, and accessed at http://example.com
server {
Gravatar
Thu Jan 15 08:36:07 -0800 2009
1
2
3
railsbox.org:~ ozeias$ cd /etc/init.d
railsbox.org:~ ozeias$ ln -s /usr/local/sbin/php-fpm php-fpm
railsbox.org:~ ozeias$ /usr/sbin/update-rc.d -f php-fpm defaults
gist: 47461 choosing the user php-cgi s...
Gravatar
Thu Jan 15 08:13:24 -0800 2009
1
2
3
## railsbox.org:~ ozeias$ sudo vim /usr/local/etc/php-fpm.conf
:63
www-data
gist: 47413 Install PHP CGI using source
Gravatar
Thu Jan 15 06:00:49 -0800 2009
1
2
3
railsbox.org:~ ozeias$ sudo apt-get install libtool libltdl3-dev libgd-dev libmcrypt-dev libxml2-dev libmysqlclient15-dev flex m4 awk automake autoconf bison make libbz2-dev libpcre3-dev libssl-dev zlib1g-dev vim re2c
railsbox.org:~ ozeias$ cd /usr/local/src
railsbox.org:~ ozeias$ wget http://it2.php.net/get/php-5.2.6.tar.gz/from/de2.php.net/mirror
Gravatar
Thu Jan 15 05:34:06 -0800 2009
1
2
railsbox.org:~ ozeias$ cd /etc/init.d
railsbox.org:~ ozeias$ sudo update-rc.d spawn-fcgi defaults
gist: 47394 starts FastCGI for PHP usin...
Gravatar
Thu Jan 15 04:49:11 -0800 2009
1
2
3
## railsbox.org:~ ozeias$ vim /etc/init.d/spawn-fcgi
#! /bin/sh
 
gist: 47392 Install PHP CGI by apt-get
Gravatar
Thu Jan 15 04:37:34 -0800 2009
1
2
3
railsbox.org:~ ozeias$ sudo apt-get install php5-cgi php5-mysql
railsbox.org:~ ozeias$ sudo apt-get install lighttpd
railsbox.org:~ ozeias$ sudo /etc/init.d/lighttpd stop
gist: 47080 starts nginx using start-st...
Gravatar
Wed Jan 14 13:04:27 -0800 2009
1
2
3
## railsbox.org:~ ozeias$ vim /etc/init.d/nginx
#! /bin/sh
 
gist: 47069 nginx.conf
Gravatar
Wed Jan 14 12:55:45 -0800 2009
1
2
3
## railsbox.org:~ ozeias$ vim /usr/local/nginx/conf/nginx.conf
user www-data;
worker_processes 4;
gist: 47058 Build Nginx
Gravatar
Wed Jan 14 12:35:37 -0800 2009
1
2
3
railsbox.org:~ ozeias$ wget http://sysoev.ru/nginx/nginx-0.6.34.tar.gz
railsbox.org:~ ozeias$ tar xvf nginx-0.6.34.tar.gz
railsbox.org:~ ozeias$ ./configure
gist: 47048 Nginx requirements
Gravatar
Wed Jan 14 12:23:56 -0800 2009
1
2
3
railsbox.org:~ ozeias$ apt-get update
railsbox.org:~ ozeias$ apt-get dist-upgrade
railsbox.org:~ ozeias$ apt-get install build-essential