Install Python
$ brew install readline sqlite gdbm
$ brew install python --universal --framework
$ python --version
Python 2.7
Symlinks...
<?php | |
/** | |
* Simple excel writer class with no external dependencies, drop it in and have fun | |
* @author Matt Nowack | |
* @link https://gist.github.com/ihumanable/929039/edit | |
* @license Unlicensed | |
* @version 1.0 | |
*/ | |
class Excel { |
<?php | |
class ActivitiService{ | |
const BASE_URL = 'http://localhost:8080/activiti-rest/service/'; | |
const ADMIN_USERNAME = 'kermit'; | |
private $_services = array( | |
'processDefinitions' => 'process-definitions', | |
'processDefinition' => 'process-definition/', |
<?php | |
namespace Acme\UserBundle\Listener; | |
use Symfony\Component\Security\Http\Event\InteractiveLoginEvent; | |
use Symfony\Component\Security\Core\SecurityContext; | |
use Doctrine\Bundle\DoctrineBundle\Registry as Doctrine; // for Symfony 2.1.0+ | |
// use Symfony\Bundle\DoctrineBundle\Registry as Doctrine; // for Symfony 2.0.x | |
/** |
Install Python
$ brew install readline sqlite gdbm
$ brew install python --universal --framework
$ python --version
Python 2.7
Symlinks...
# Adding a role | |
# resources.acl.roles.{roleName}.id = {roleId} | |
resources.acl.roles.guest.id = "G" | |
# Assigning parents to a role | |
# resources.acl.roles.{roleName}.parents = {parentRoleIds} (multiple in csv) | |
resources.acl.roles.user.id = "U" | |
resources.acl.roles.user.parents = "G" | |
# Adding a resource |
<?php | |
namespace My\Bundle\EventListener; | |
use My\Bundle\User\User; | |
use Symfony\Component\Routing\Router; | |
use Symfony\Component\Security\Http\Event\InteractiveLoginEvent; | |
class InteractiveLoginListener | |
{ |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
<?php | |
namespace Widop\Mink\Extension; | |
/** | |
* Dictionary to manage popups. | |
* | |
* @author Benjamin Lazarecki <benjamin.lazarecki@gmail.com> | |
*/ | |
trait PopupDictionary |
# Default backend definition. Set this to point to your content server. | |
backend default { | |
.host = "127.0.0.1"; | |
.port = "8080"; | |
.connect_timeout = 60s; | |
.first_byte_timeout = 60s; | |
.between_bytes_timeout = 60s; | |
.max_connections = 800; | |
} |