Skip to content

Instantly share code, notes, and snippets.

View AV4TAr's full-sized avatar

Diego Sapriza AV4TAr

View GitHub Profile
---
# firewall
- name: iptables rules in place
when: not dev_instance | bool
copy: src=iptables dest=/etc/sysconfig/iptables owner=root group=root mode=0644
notify: iptables is restarted
- name: iptables service disabled and stopped
when: dev_instance | bool
RewriteEngine On
# The following rule tells Apache that if the requested filename
# exists, simply serve it.
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
# The following rewrites all other queries to index.php. The
# condition ensures that if you are using Apache aliases to do
# mass virtual hosting, the base path will be prepended to

Keybase proof

I hereby claim:

  • I am av4tar on github.
  • I am av4tar (https://keybase.io/av4tar) on keybase.
  • I have a public key whose fingerprint is 4EB6 DAA3 FE27 6E2C 3FF2 07E1 9285 1593 1ED1 2342

To claim this, I am signing this object:

@AV4TAr
AV4TAr / pr.md
Created April 11, 2014 14:03 — forked from piscisaureus/pr.md

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

Temas de phpdayUY 2014

PHP Focused

  • Frameworks
  • Symfony / Zend / Laravel, etc.
  • Silex / Slim, etc.
  • CMS
  • Wordpress
  • Joomla
  • Drupal
<?php
class Importer
{
private $json_array;
private $table;
private $db_config;
public function __construct($db_config)
{
<?php
class AbstractManagerBase extends \PHPUnit_Framework_TestCase
{
protected function getEmMock()
{
$emMock = $this->getMock('\Doctrine\ORM\EntityManager',
array('getRepository', 'getClassMetadata', 'persist', 'flush'), array(), '', false);
$emMock->expects($this->any())
->method('getRepository')

Awesome PHP

A curated list of amazingly awesome PHP libraries, resources and shiny things.

Composer

Composer Related