Skip to content

Instantly share code, notes, and snippets.

View havvg's full-sized avatar

Toni Uebernickel havvg

View GitHub Profile
@havvg
havvg / storage.php
Created August 18, 2011 18:09
Example storage configuration file for Sismo
<?php
$con = new \PDO('mysql:host=localhost;dbname=sismo', 'sismo');
$sql = <<<SQL
CREATE TABLE IF NOT EXISTS `project` (
`slug` VARCHAR(128),
`name` TEXT,
`repository` TEXT,
`branch` TEXT,
@havvg
havvg / bdd-experiment-guide.md
Created September 9, 2011 14:44
Behavior Driven Development in Symfony2 with Behat, Mink and Zombie.js
@havvg
havvg / zombie.js
Created September 13, 2011 14:33
var net = require('net');
var sys = require('sys');
var zombie = require('zombie');
var browser = null;
var pointers = [];
var buffer = "";
net.createServer(function (stream) {
stream.setEncoding('utf8');
stream.allowHalfOpen = true;
@havvg
havvg / link-test.md
Created September 19, 2011 18:48
A sample for iA Writer support
@havvg
havvg / config.php
Created September 20, 2011 08:46
An example configuration for the BDD Experiment for Sismo
<?php
$projects = array();
$notifier = new Sismo\GrowlNotifier('');
// more projects ..
$bddExperiment = new Sismo\GithubProject('BDD Experiment (local)', '/Users/havvg/Web Development/Symfony2/BDD Experiment/', $notifier);
$bddExperiment->setCommand('php app/console behat -e test');
$projects[] = $bddExperiment;
@havvg
havvg / config.php
Created October 1, 2011 17:24
Example Sismo configuration file using SismoFinder
<?php
$loader = new Symfony\Component\ClassLoader\UniversalClassLoader();
$loader->registerNamespaces(array(
'SismoFinder' => '/Users/havvg/Web Development/SismoFinder/src',
));
$loader->register();
$finder = new \SismoFinder\Finder();
$finder->addWorkspace('/Users/havvg/Web Development');
@havvg
havvg / phing.sh
Created October 6, 2011 20:05
phing executable
#!/bin/sh
# ------------------------------------------------------------------------
# The phing build script for Unix based systems
# $Id: pear-phing 478 2009-07-29 17:25:59Z mrook $
# ------------------------------------------------------------------------
# Change this to reflect your environment if the default value doesn't work
PHP_COMMAND="/usr/bin/php"
export PHP_COMMAND
@havvg
havvg / .ccconfig.yml
Created November 17, 2011 11:30
WIP - example cloudControl deploy hooks configuration
BaseConfig:
WebContent: /web
AdminEmail: dev@ormigo.com
PHPConfig:
apcEnabled: 1
xdebugProfilerEnable: 0
xdebugDefaultEnable: 0
# How these deployment hooks work:
mcx-users:
_attributes: { package: lib.model.user }
user_profile:
_attributes: { phpName: sfGuardUserProfile }
id: ~
user_id: { type: integer, foreignTable: sf_guard_user, foreignReference: id, required: true, onDelete: cascade }
email: { type: varchar(255), index: unique }
created_at: ~
@havvg
havvg / .gitconfig
Created December 20, 2011 15:42
git pretty history
[alias]
ph = log --graph --pretty=pretty-history --abbrev-commit --date=relative
[pretty]
pretty-history = format:%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset