Skip to content

Instantly share code, notes, and snippets.

View rynop's full-sized avatar

Ryan Pendergast rynop

View GitHub Profile
@rynop
rynop / new_client.sh
Created November 26, 2012 15:41
create client p12 file
#!/bin/bash
function usage () {
echo "$0 [CA section name] [username]"
exit 1
}
if [ $# -ne 2 ]
then
usage
@rynop
rynop / new_server_key.sh
Created November 26, 2012 15:39
create server key
#!/bin/bash
function usage () {
echo "$0 [CA section name]"
exit 1
}
if [ $# -ne 1 ]
then
usage
@rynop
rynop / new_ca.sh
Created November 26, 2012 15:03
Script to create new Cert Authority
#!/bin/bash
function usage () {
echo "$0 [CA section name]"
exit 1
}
if [ $# -ne 1 ]
then
usage
@rynop
rynop / openssl.cnf
Created November 26, 2012 14:54
OpenSSL config section
...
####################################################################
[ testconfg ]
dir = /etc/ssl/testconfg # Where everything is kept
certs = $dir/certs # Where the issued certs are kept
crl_dir = $dir/crl # Where the issued crl are kept
database = $dir/index.txt # database index file.
#unique_subject = no # Set to 'no' to allow creation of
downstream_max=1024,
downstream_conn_max=64,
downstream_conn_queue_timeout=200,
downstream_timeout=5000,
wait_queue_timeout=200,
connect_max_errors=5,
connect_retry_interval=30000,
connect_timeout=400,
auth_timeout=100,
downstream_max=1024,
downstream_conn_max=8,
downstream_conn_queue_timeout=200,
downstream_timeout=5000,
wait_queue_timeout=200,
connect_max_errors=5,
connect_retry_interval=30000,
connect_timeout=400,
auth_timeout=100,
PHP Version 5.3.3-1ubuntu9.5
System Linux 2.6.35-30-generic #56-Ubuntu SMP Mon Jul 11 20:01:08 UTC 2011 x86_64
Build Date May 3 2011 00:51:02
Server API FPM/FastCGI
Virtual Directory Support disabled
Configuration File (php.ini) Path /etc/php5/fpm
Loaded Configuration File /etc/php5/fpm/php.ini
Scan this dir for additional .ini files /etc/php5/fpm/conf.d
@rynop
rynop / gist:1078183
Created July 12, 2011 15:17
activate session in view if it was activated in component
//If the session has been activated in the controller, activate it in the view
if($this->Session->started()){
$this->Session->activate();
}
zend_extension="/usr/lib/php5/20090626/xdebug.so"
xdebug.profiler_output_dir=/home/<username>/Desktop/profile
xdebug.profiler_enable_trigger=1
xdebug.profiler_enable=0
xdebug.remote_enable=true
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9001
xdebug.remote_handler=dbgp
root 17461 0.0 0.0 261808 5800 ? Ss 11:26 0:00 /usr/sbin/php5-fpm --fpm-config /etc/php5/fpm/main.conf
www-data 17462 0.0 0.4 276192 37744 ? S 11:26 0:00 \_ /usr/sbin/php5-fpm --fpm-config /etc/php5/fpm/main.conf
www-data 17463 0.0 0.2 265876 17164 ? S 11:26 0:00 \_ /usr/sbin/php5-fpm --fpm-config /etc/php5/fpm/main.conf
www-data 17464 0.0 0.1 264740 16160 ? S 11:26 0:00 \_ /usr/sbin/php5-fpm --fpm-config /etc/php5/fpm/main.conf
www-data 17465 0.0 0.1 264740 16172 ? S 11:26 0:00 \_ /usr/sbin/php5-fpm --fpm-config /etc/php5/fpm/main.conf
www-data 17466 0.0 0.1 264016 12436 ? S 11:26 0:00 \_ /usr/sbin/php5-fpm --fpm-config /etc/php5/fpm/main.conf
www-data 17467 0.0 0.1 263760 12292 ? S 11:26 0:00 \_ /usr/sbin/php5-fpm --fpm-config /etc/php5/fpm/main.conf
www-data 17468 0.0 0.2 265872 17020 ? S 11:26 0:00 \_ /usr/sbin/php5-fpm --fpm-config /etc/php5/fpm/main.conf
www-data 17469 0.0 0.2 265