This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Direct streamer for guzzle. | |
* Makes a HEAD request to fetch content length first. | |
* Uses GET request to stream read data directly to the browser. | |
* | |
* @author Julius Beckmann | |
*/ | |
include('guzzle.phar'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Symfony2 Listener, that will check if a redirect to our page has a route defined. | |
* | |
* @author Julius Beckmann | |
* @date 27.05.13 | |
*/ | |
namespace h4cc\PennerZoneBundle; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Acme\DemoBundle\Routing\Generator; | |
use Symfony\Component\Routing\Generator\UrlGenerator as BaseUrlGenerator; | |
class UrlGenerator extends BaseUrlGenerator | |
{ | |
protected function doGenerate($variables, $defaults, $requirements, $tokens, $parameters, $name, $referenceType, $hostTokens) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
parameters: | |
my_alias: foo | |
services: | |
foo: | |
class: Example\Foo | |
bar: | |
alias: %my_alias% | |
#-------------------------------------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Switch architecture if needed | |
if(2147483647 == PHP_INT_MAX) { | |
$architecture = 'i386'; | |
}else{ | |
$architecture = 'amd64'; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If you get this error: | |
> 'can't find include lib "eunit/include/eunit.hrl"' | |
even if you already installed "erlang-eunit. | |
Try installing 'erlang-dev': | |
> apt-get install erlang-dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Use the Abstract query, which has nearly all needed Methods as the Query. | |
$this->queryMock = $this->getMockBuilder('\Doctrine\ORM\AbstractQuery') | |
->setMethods(array('setParameter', 'getResult')) | |
->disableOriginalConstructor() | |
->getMockForAbstractClass(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @author Julius Beckmann <[email protected]> | |
* @license MIT (http://opensource.org/licenses/MIT) | |
*/ | |
/** | |
* Adds expected items to a mocked Iterator. | |
*/ | |
function mockIteratorItems(\Iterator $iterator, array $items, $includeCallsToKey = false) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-define(current_function_name(), element(2, element(2, process_info(self(), current_function)))). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#--- Ubuntu 13.10 Saucy Salamander | |
#- | |
#- Basic packages i usually install | |
# | |
# Update and Upgrade | |
sudo apt-get update | |
sudo apt-get upgrade | |
# Graphics |
OlderNewer