Skip to content

Instantly share code, notes, and snippets.

View chrismeller's full-sized avatar

Chris Meller chrismeller

View GitHub Profile
@chrismeller
chrismeller / gist:4747074
Created February 9, 2013 20:54
ping.conf
[www]
ping.path = /ping
@chrismeller
chrismeller / ping.conf
Created February 9, 2013 20:02
My PHP-FPM pool.d config files.
[www]
ping.path = /ping
; Start a new pool named 'www'.
; the variable $pool can we used in any directive and will be replaced by the
; pool name ('www' here)
[www]
; Per pool prefix
; It only applies on the following directives:
; - 'slowlog'
; - 'listen' (unixsocket)
; - 'chroot'
@chrismeller
chrismeller / gist:4746724
Created February 9, 2013 19:38
Default www.conf on Ubuntu
; Start a new pool named 'www'.
; the variable $pool can we used in any directive and will be replaced by the
; pool name ('www' here)
[www]
; Per pool prefix
; It only applies on the following directives:
; - 'slowlog'
; - 'listen' (unixsocket)
; - 'chroot'
@chrismeller
chrismeller / gist:4746697
Created February 9, 2013 19:29
Default php-fpm.conf on Ubuntu
;;;;;;;;;;;;;;;;;;;;;
; FPM Configuration ;
;;;;;;;;;;;;;;;;;;;;;
; All relative paths in this configuration file are relative to PHP's install
; prefix (/usr). This prefix can be dynamicaly changed by using the
; '-p' argument from the command line.
; Include one or more files. If glob(3) exists, it is used to include a bunch of
; files from a glob(3) pattern. This directive can be used everywhere in the
# disable compression on old IE versions
#gzip_disable "MSIE [1-6]\.(?!.*SV1)";
# compress proxied requests too
gzip_proxied any;
gzip_types
text/css
text/plain
text/javascript
@chrismeller
chrismeller / gist:4742718
Created February 8, 2013 23:11
Nginx config file examples
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_param SCRIPT_FILENAME $request_filename;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param REQUEST_URI $request_uri;
fastcgi_param DOCUMENT_URI $document_uri;
fastcgi_param DOCUMENT_ROOT $document_root;
@chrismeller
chrismeller / gist:4742494
Created February 8, 2013 22:33
Habari Nginx vhost example
server {
listen [::]:80;
server_name blog.chrismeller.com;
root /media/www/public_html/blog.chrismeller.com/public;
access_log /media/www/public_html/blog.chrismeller.com/logs/access.log;
error_log /media/www/public_html/blog.chrismeller.com/logs/error.log;
include fastcgi_params;
<?php
error_reporting( -1 );
ini_set( 'display_errors', true );
$foo = new ArrayObject();
$foo['bar']['baz']['qux'] = 'something';
var_dump($foo);
798 | defect | 1229318998000000 | 1276533716000000 | Habari Core Software | NULL | minor | pivwan | ringmaster | | SVN | Undetermined | closed | fixed | Publishing a draft updates the time to the current time | Set an explicit date in the past for a draft post. Publish that post. The date is reset to the current date and time.
An explicit date set on a post should not be overwritten with the current date when a post is set to published status. The current date should only be applied to posts that are initially saved in a published state.