Skip to content

Instantly share code, notes, and snippets.

<?php
class ResistanceFighter extends Shanty_Mongo_Document
{
protected static $_collectionName = 'resistancefighter';
protected $_requirements = array(
'name' => 'Document:ResistanceFighter_Name',
'email' => array('NotEmpty', 'EmailAddress'),
'address' => 'Document',
@coen-hyde
coen-hyde / shanty-mongo-referenes-test
Created July 16, 2011 08:35
Shanty Mongo references test
<?php
define('ZEND_LIBRARY_DIR', '...');
define('SHANTY_MONGO_LIB_DIR', '...');
ini_set('include_path', SHANTY_MONGO_LIB_DIR . ':' . ZEND_LIBRARY_DIR . ':' . ini_get('include_path'));
require_once("Zend/Loader/Autoloader.php");
$autoloader = Zend_Loader_Autoloader::getInstance();
@coen-hyde
coen-hyde / gist:1258108
Created October 2, 2011 23:38 — forked from tholder/gist:1257513
Problem updating document set of existing doc
<?
/**
* Represents the invite system. The invite collection contains one document for each invited email address.
**/
class Model_Mongo_Invite extends Shanty_Mongo_Document {
protected static $_db = 'contactzilla';
protected static $_collection = 'invite';
protected static $_requirements = array(
@coen-hyde
coen-hyde / gist:2055978
Created March 17, 2012 07:10
Nodejitsu deploy error
$ jitsu deploy
info: Welcome to Nodejitsu
info: It worked if it ends with Nodejitsu ok
info: Executing command deploy
info: Analyzing your application dependencies in server.js
warn: Local version appears to be old.
warn: Your package.json version will be incremented for you automatically.
warn: About to write /Users/coen-hyde/Sites/coenhyde/package.json
data:
data: {
@coen-hyde
coen-hyde / gist:2948388
Created June 18, 2012 13:31
Nodejitsu deploy error - error spawning drone
error: Error running command deploy
error: Nodejitsu Error (500): Internal Server Error
error: There was an error while attempting to deploy your application.
error:
error: Error spawning drone: no matching engine found
error: Repository configuration
error:
error: This type of error is usually a user error.
error: Error output from Haibu:
error:
@coen-hyde
coen-hyde / gist:2948401
Created June 18, 2012 13:34
Nodejitsu deploy error - npm install issue
error: Error running command deploy
error: Nodejitsu Error (500): Internal Server Error
error: There was an error while attempting to deploy your application.
error:
error: NPM Install failed
error: NPM failed to install dependencies
error:
error: This type of error is usually a user error.
error: Error output from Haibu:
error:
@coen-hyde
coen-hyde / gist:2948415
Created June 18, 2012 13:36
Nodejitsu deploy error - npm install issue 2
error: Error running command deploy
error: Nodejitsu Error (500): Internal Server Error
error: There was an error while attempting to deploy your application.
error:
error: NPM Install failed
error: NPM failed to install dependencies
error:
error: This type of error is usually a user error.
error: Error output from Haibu:
error:
@coen-hyde
coen-hyde / gist:2948432
Created June 18, 2012 13:41
Nodejitsu deploy error - Non descriptive
error: Error running command deploy
error: socket hang up
info: Nodejitsu not ok
@coen-hyde
coen-hyde / gist:2948755
Created June 18, 2012 14:52
Nodejitsu deploy error - npm install issue 3
error: Error running command deploy
error: Nodejitsu Error (500): Internal Server Error
error: There was an error while attempting to deploy your application.
error:
error: NPM Install failed
error: NPM failed to install dependencies
error:
error: This type of error is usually a user error.
error: Error output from Haibu:
error:
@coen-hyde
coen-hyde / gist:2948832
Created June 18, 2012 15:09
Nodejitsu deploy error - Non descriptive
error: Error running command deploy
error: socket hang up
info: Nodejitsu not ok