Skip to content

Instantly share code, notes, and snippets.

View johnathancroom's full-sized avatar

Johnathan Croom johnathancroom

View GitHub Profile
<?php
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.2.4 or newer
*
* NOTICE OF LICENSE
*
* Licensed under the Open Software License version 3.0
*
ServerName theprofitjourney.com
ServerAlias www.theprofitjourney.com theprofitjourney.sandigital.net
DocumentRoot /var/www/vhosts/sandigital.net/subdomains/theprofitjourney/html/public
<Directory "/var/www/vhosts/sandigital.net/subdomains/theprofitjourney/html/public">
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
<style type="text/css">
.colorcards img {
margin: 10px 10px 0 0;
width: 180px;
}
</style>
<p class="colorcards">
<a href="http://jnzipper.com/New/gallery_big/ColorCard/A-E.jpg" onclick="return popuplinkfunc(this)"><img src="http://jnzipper.com/New/gallery/ColorCard/A-E.jpg"></a>
<a href="http://jnzipper.com/New/gallery_big/ColorCard/F-J.jpg" onclick="return popuplinkfunc(this)"><img src="http://jnzipper.com/New/gallery/ColorCard/F-J.jpg"></a>

###Init

  1. Spawn Ubuntu instance.
  2. Update aptitude with sudo apt-get update
  3. Install junk we want sudo apt-get install nginx spawn-fcgi php5 php5-cli php5-common php5-suhosin php5-cgi php-pear php5-mysql htop git
  4. Set root password sudo passwd root

###Setup PHP

  1. Change /etc/nginx/sites-available/default to:
server {
@johnathancroom
johnathancroom / gist:3100723
Created July 12, 2012 20:24
Chained Methods
module Vermonster
module Lists
def lists
self.class::Lists
end
class Lists
def self.all
Vermonster::Client.connection # Use this anywhere you want the connection
end
@johnathancroom
johnathancroom / dabblet.css
Created February 1, 2012 03:53
CSS3 Vimeo Nav
/**
* CSS3 Vimeo Nav
*/
* { box-sizing: border-box }
body {
font-size: 65.25%;
font-family: Verdana;
}