Skip to content

Instantly share code, notes, and snippets.

View reyostallenberg's full-sized avatar

Reyo Stallenberg reyostallenberg

  • Rotterdam, The Netherlands
View GitHub Profile
@reyostallenberg
reyostallenberg / FormFieldType.php
Last active January 7, 2019 11:01
Symfony ColletionType add button (using jQuery)
<?php
declare(strict_types=1);
/*
* This file is part of the VaultUtilities package.
* (c) Connect Holland.
*/
namespace ConnectHolland\VaultUtilities\Form\Type;
@reyostallenberg
reyostallenberg / xdebug-toggle
Last active January 6, 2016 09:26
Toggle PHP XDebug extension on CLI
#!/bin/bash
if [ -f /etc/php5/cli/conf.d/20-xdebug.ini ]
then
sudo rm /etc/php5/cli/conf.d/20-xdebug.ini
echo "Disabled XDebug on CLI"
else
sudo su -c 'echo "zend_extension=xdebug.so" > /etc/php5/cli/conf.d/20-xdebug.ini'
echo "Enabled XDebug on CLI"
fi