Skip to content

Instantly share code, notes, and snippets.

View immutef's full-sized avatar

immutef

  • SCAYLE GmbH
  • Hamburg, Germany
View GitHub Profile
<?php
$entity = new stdClass();
$form->setData($entity);
$form->bind($entity);
var_dump($form->isValid());
@immutef
immutef / dnsmasq.conf
Created October 17, 2013 16:26
MacOS, Vagrant, dnsmasq, ipfw
listen-address=127.0.0.1
# interface=lo
address=/dev/127.0.0.1
address=/local/127.0.0.1
no-dhcp-interface=no
@immutef
immutef / .env
Last active December 24, 2015 03:19
Symfony & Foreman
SYMFONY__DATABASE_DRIVER="pdo_mysql"
SYMFONY__DATABASE_HOST="127.0.0.1"
SYMFONY__DATABASE_PORT=3306
SYMFONY__DATABASE_NAME="symfony"
SYMFONY__DATABASE_USER="root"
SYMFONY__DATABASE_PASSWORD=""
@immutef
immutef / assetic.yml
Last active January 20, 2021 06:57
Assetic package management in Symfony2
assetic:
assets:
bootstrap: # translates to the asset path 'assetic/bootstrap.js'
filters: ?uglifyjs2
inputs:
- '@AcmeDemoBundle/Resources/bower/bootstrap/js/bootstrap-transition.js'
- '@AcmeDemoBundle/Resources/bower/bootstrap/js/bootstrap-alert.js'
- '@AcmeDemoBundle/Resources/bower/bootstrap/js/bootstrap-button.js'
- '@AcmeDemoBundle/Resources/bower/bootstrap/js/bootstrap-carousel.js'
- '@AcmeDemoBundle/Resources/bower/bootstrap/js/bootstrap-collapse.js'
@immutef
immutef / composer.json
Created May 23, 2013 13:33
Why does this install symfony/symfony 2.3.0-RC1 ?
{
"name": "acid/acid",
"type": "library",
"description": "Acid Testing Framework",
"keywords": ["acid", "testing", "framework", "tdd", "xunit", "unit", "dsl", "assert"],
"homepage": "http://acid.ferm.io/",
"license": "MIT",
"authors": [{
"name": "Pierre Minnieur",
"email": "pierre@ferm.io",
@immutef
immutef / README.md
Last active December 15, 2015 16:09
Diablo 3 Crafting Helper

Usage

Select the gem/item you want to craft, then point your mouse over the crafting button. Now execute the craft.py script followed by the number of gems/items you want to craft.

$> ./craft.py <number>

Wait while the craft button is pressed every 3.6 seconds until everything is crafted.

@immutef
immutef / composer
Created February 21, 2012 17:16
global Composer installation
#!/usr/bin/env sh
COMPOSER=$HOME/.composer.phar
if [ ! -f $COMPOSER ]
then
wget -q -nv -nc -O $COMPOSER http://getcomposer.org/composer.phar
fi
/usr/bin/env php $COMPOSER $@
@immutef
immutef / composer.json
Created January 16, 2012 11:40
Symfony2 bundle w/ Composer
{
"require": {
"yoye/localization-bundle": "*"
},
"repositories": {
"yoye/localization-bundle": {
"package": {
"name": "yoye/localization-bundle",
"version": "master-dev",
@immutef
immutef / UserController.php
Created December 22, 2011 15:21
[Symfony2] example usage of streamed response and post response code execution
<?php
/*
* Example usage of streamed response and post response code execution.
*
* @author Pierre Minnieur <pierre.minnieur@sensiolabs.de>
*
* @see https://github.com/symfony/symfony/pull/2791
* @see https://github.com/symfony/symfony/pull/2935
* @see https://github.com/sensio/SensioFrameworkExtraBundle/pull/86
@immutef
immutef / bootstrap.php
Created December 20, 2011 14:43
re-use of Composer ClassLoader (e.g. for tests)
<?php
$loader = require __DIR__.'/../vendor/.composer/autoload.php';
$loader->add('Acme', __DIR__);