Skip to content

Instantly share code, notes, and snippets.

View cordoval's full-sized avatar

Luis Cordova cordoval

View GitHub Profile
@cordoval
cordoval / config.php
Created September 22, 2011 16:27 — forked from havvg/config.php
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;
@cordoval
cordoval / transcript.txt
Created September 22, 2011 20:44 — forked from jmikola/transcript.txt
Log of #symfony-dev meeting 20110922 (all times GMT-4)
Sep 22 11:01:12 <lsmith> lets start then
Sep 22 11:01:16 <lsmith> jmikola|w: weaverryan
Sep 22 11:01:27 <weaverryan> here here
Sep 22 11:01:39 <lsmith> first topic .. kbond take it away
Sep 22 11:01:40 <lsmith> ability to set info message for configuration nodes http://bit.ly/nIuAcZ
Sep 22 11:01:46 <jmikola|w> here
Sep 22 11:02:14 <kbond> ok, well what are the thoughts on that PR? good, bad, ugly?
Sep 22 11:02:18 <lsmith> kbond: just briefly explain what your PR is about, what questions there are
Sep 22 11:02:20 * avalanche123 has quit (Quit: Computer has gone to sleep.)
Sep 22 11:02:37 <lsmith> are there still open issues from your POV?
@cordoval
cordoval / Connection.diff
Created September 23, 2011 04:24 — forked from FireFoxIXI/Connection.diff
Could not establish connection: Connection refused (111)
diff --git a/src/Behat/Mink/Driver/Zombie/Connection.php b/src/Behat/Mink/Driver/Zombie/Connection.php
index 3c3d7c3..5e3627e 100644
--- a/src/Behat/Mink/Driver/Zombie/Connection.php
+++ b/src/Behat/Mink/Driver/Zombie/Connection.php
@@ -27,6 +27,11 @@ class Connection
* @var integer
*/
private $port = null;
+
+ /**
@cordoval
cordoval / Connection.diff
Created September 23, 2011 06:00 — forked from FireFoxIXI/Connection.diff
Could not establish connection: Connection refused (111)
diff --git a/src/Behat/Mink/Driver/Zombie/Connection.php b/src/Behat/Mink/Driver/Zombie/Connection.php
index 3c3d7c3..5e3627e 100644
--- a/src/Behat/Mink/Driver/Zombie/Connection.php
+++ b/src/Behat/Mink/Driver/Zombie/Connection.php
@@ -27,6 +27,11 @@ class Connection
* @var integer
*/
private $port = null;
+
+ /**
@cordoval
cordoval / Server.diff
Created September 23, 2011 07:29 — forked from FireFoxIXI/Server.diff
Could not establish connection: Connection refused (111)
diff --git a/src/Behat/Mink/Driver/Zombie/Server.php b/src/Behat/Mink/Driver/Zombie/Server.php
index ed50495..2827082 100644
--- a/src/Behat/Mink/Driver/Zombie/Server.php
+++ b/src/Behat/Mink/Driver/Zombie/Server.php
@@ -31,7 +31,7 @@ class Server
/**
* @var string
*/
- private $nodeBin = null;
+ private $nodeBin = "/home/tools/node-v0.4.12/node"; //null;
@cordoval
cordoval / update_acl.rb
Created September 25, 2011 05:28 — forked from shaneog/update_acl.rb
Capifony Task to Set ACLs on Symfony2 app/cache and app/logs directories as per http://symfony.com/doc/current/book/installation.html
# Change ACL on the app/logs and app/cache directories
after 'deploy', 'deploy:update_acl'
# This is a custom task to set the ACL on the app/logs and app/cache directories
namespace :deploy do
task :update_acl, :roles => :app do
shared_dirs = [
app_path + "/logs",
@cordoval
cordoval / MyWebTestCase.php
Created September 28, 2011 18:26 — forked from beberlei/MyWebTestCase.php
Easily Inject authenticated Symfony User into functional test
<?php
use Liip\FunctionalTestBundle\Test\WebTestCase;
use Symfony\Component\HttpKernel\Profiler\Profiler;
use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken;
use Symfony\Component\Security\Core\User\UserInterface;
/**
* @group functional
*/
<?php
namespace EIP\ProgramBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use EIP\ProgramBundle\Entity\Question;
use EIP\ProgramBundle\Form\BiometricsType;
use EIP\ProgramBundle\Entity\ParticipantAnswer;
use Symfony\Component\HttpFoundation\Request;
@cordoval
cordoval / automating_machine_testing_code_(php).sh
Created October 4, 2011 05:27
Automating machine testing code (php)
# 0. Pasos previos si se clona de VirtualBox
# 0.1. para evitar problemas con eth0, eliminar y reiniciar la maquina:
$ sudo rm /etc/udev/rules.d/70-persistent-net.rules
# 1. Actualizando el sistema
$ sudo apt-get update
# 2. Instalar php y pear para usar en terminal
# Ver: https://gist.github.com/1074228#file_0_php_cli.sh
@cordoval
cordoval / GroupBy.php
Created October 5, 2011 22:35 — forked from anonymous/GroupBy.php
Grouping filter for Twig.
<?php
namespace BlackRook\TaskBundle\Twig\Extension;
use DateTime,
Twig_Extension,
Twig_Environment,
Twig_TemplateInterface,
Twig_Error_Runtime,
Twig_Filter_Method;