Skip to content

Instantly share code, notes, and snippets.

Avatar

Goran Miskovic schkovich

View GitHub Profile
@schkovich
schkovich / upstart-nodejs
Created May 6, 2014
Upstart script to control nodejs application
View upstart-nodejs
# start when networking is up
start on net-device-up IFACE!=lo
# stop on shutting down the system
stop on runlevel [016]
# application environment
# staging and development instances should use override file to define environment
env NODE_ENV=production
# respawn the job up to 10 times within a 5 second period.
View nameornot.php
<?php
/**
* @see http://qafoo.com/blog/016_struct_classes_in_php.html
*/
abstract class Struct
{
/**
* Is run when reading data from inaccessible properties
You can’t perform that action at this time.