Skip to content

Instantly share code, notes, and snippets.

@kumatch
kumatch / nginx
Created October 20, 2010 15:14
Nginx init script for CentOS (source build)
#!/bin/sh
#
# nginx - this script starts and stops the nginx daemon
#
# chkconfig: 35 85 15
# description: Nginx is an HTTP(S) server, HTTP(S) reverse \
# proxy and IMAP/POP3 proxy server
# processname: nginx
# config: /usr/local/nginx/conf/nginx.conf
# config: /etc/sysconfig/nginx
@kumatch
kumatch / bootstrap.php
Created July 15, 2010 05:29
Stagehand_Testrunner prepare scripts for CakePHP.
<?php
if (!include(CORE_PATH . 'cake' . DS . 'bootstrap.php')) {
trigger_error("CakePHP core could not be found.", E_USER_ERROR);
}
Configure::write('debug', 0);
$version = Configure::version();
if (preg_match('/^1.2/', $version)) {
$corePath = Configure::corePaths('cake');