Skip to content

Instantly share code, notes, and snippets.

View ThePixelDeveloper's full-sized avatar

Mathew Davies ThePixelDeveloper

View GitHub Profile
# --------------------------------------------
# General
# --------------------------------------------
set :shared_children, %w(cache logs) # Shared directories, these directories contain generated content which should not be wiped out during deployments.
set :application, "domain.com" # Application name
set :deploy_to, "/var/www/#{application}/#{stage}" # Path where files are deployed to ...
# --------------------------------------------
# Server
# --------------------------------------------
# default server
server {
listen 80;
server_name local.kohanaphp.com;
root /Volumes/Webserver/Checkout/projects/kohana/v3;
location / {
index index.php index.html index.htm;
try_files $uri $uri/ index.php$uri;
<?php
/**
* Description
* Smush.it uses optimization techniques specific to image format to remove
* unnecessary bytes from image files. It is a "lossless" tool, which means it
* optimizes the images without changing their look or visual quality. After
* Smush.it runs on a web page it reports how many bytes would be saved by
* optimizing the page's images and provides a downloadable zip file with the
* minimized image files.
*

server { listen 80; server_name workdiary.aguimaraes.org; root /web/alvaro/aguimaraes.org/workdiary; access_log /web/alvaro/logs/workdiary.aguimaraes.org-access.log combined buffer=32k; error_log /web/alvaro/logs/workdiary.aguimaraes.org-error.log error; index index.php index.html index.htm;

location / { try_files $uri $uri/ @php;

<?php
// HTTP request
$request = Request::instance();
try
{
$request->execute();
}
/**
server {
listen 80;
server_name nolimits.localhost;
root /home/mathew/www/nolimits-exchange/new/public;
index index.php index.html index.htm;
client_max_body_size 25m;
# Timeout
fastcgi_read_timeout 300;
array
'UNIQUE_ID' => string 'TB7UhQoBALsAABdUlTYAAAAJ' (length=24)
'HTTP_HOST' => string 'automodeler' (length=11)
'HTTP_USER_AGENT' => string 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_4; en-us) AppleWebKit/533.16 (KHTML, like Gecko) Version/5.0 Safari/533.16' (length=121)
'HTTP_ACCEPT' => string 'application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5' (length=90)
'HTTP_ACCEPT_LANGUAGE' => string 'en-us' (length=5)
'HTTP_ACCEPT_ENCODING' => string 'gzip, deflate' (length=13)
'HTTP_CONNECTION' => string 'keep-alive' (length=10)
'PATH' => string '/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/X11/bin' (length=107)
'SERVER_SIGNATURE' => string '' (length=0)
array
'HOSTNAME' => string '' (length=0)
'PATH' => string '/usr/local/bin:/usr/bin:/bin' (length=28)
'TMP' => string '/tmp' (length=4)
'TMPDIR' => string '/tmp' (length=4)
'TEMP' => string '/tmp' (length=4)
'OSTYPE' => string '' (length=0)
'MACHTYPE' => string '' (length=0)
'MALLOC_CHECK_' => string '2' (length=1)
'USER' => string 'www-data' (length=8)
'SCRIPT_NAME' => string '/ö +' (length=5)
'REQUEST_URI' => string '/%C3%B6%20+' (length=11)
'DOCUMENT_URI' => string '/ö +' (length=5)
'PHP_SELF' => string '/ö +' (length=5)
<?php defined('SYSPATH') or die('No direct access allowed.');
/**
* @package Kohana/Codebench
* @category Tests
* @author Mathew Davies <[email protected]>
*/
class Bench_Resize extends Codebench
{
public $description = 'Find out the fastest possible way to create an image thumbnail.';