Skip to content

Instantly share code, notes, and snippets.

View roderik's full-sized avatar

Roderik van der Veer roderik

View GitHub Profile
#!/bin/bash
openssl aes-256-cbc -d -a -in app/config/parameters.aes -out app/config/parameters.ini -pass file:/etc/kdeploypass
#!/bin/bash
openssl aes-256-cbc -a -salt -in app/config/parameters.ini -out app/config/parameters.aes -pass file:/etc/kdeploypass
<IfModule mod_fastcgi.c>
AddHandler php5-fcgi .php
Action php5-fcgi /php5-fpm/php5.external
<Location "/php5-fpm/php5.external">
Order Deny,Allow
Deny from All
Allow from env=REDIRECT_STATUS
</Location>
</IfModule>
<a href="http://twitter.com/r0derik">
@roderik
roderik / s2version.php
Created March 10, 2012 09:46
A small snippet to find the latest stable release of Symfony 2
<?php
$githubUser = 'symfony';
$githubRepo = 'symfony';
// Get GitHub JSON request
$githubUrl = 'http://github.com/api/v2/json/repos/show/'.$githubUser.'/'.$githubRepo.'/tags';
$githubJSONResponse = file_get_contents($githubUrl);
$ sudo /usr/local/packager/packager.py install tools-frontenddev
Password:
downloading http://php-osx.liip.ch/install/tools-frontenddev-latest.dat
downloading http://php-osx.liip.ch/install/stable/frontenddev/stable-frontenddev-20120203-085139.tar.bz2
Installing package tools-frontenddev into root /
downloading http://php-osx.liip.ch/install/tools-memcached-latest.dat
***
Package tools-memcached is already installed at version 20101209-132451. You wanted to install version 20101209-132451.
If you want to redownload it, delete the entry in registry.log (usually in /usr/local/packager/)
@roderik
roderik / BillSplitCommand.php
Created April 30, 2012 07:21
BillSplitCommand v1
<?php
namespace Kunstmaan\Hosting\BillSplitBundle\Command;
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
class BillSplitCommand extends ContainerAwareCommand
@roderik
roderik / bil117.yml
Created April 30, 2012 09:26
A demo bill
bill:
identifier: 117
total: 2812.47
items:
server1:
server: server1.kunstmaan.be
amount:
- 225.00
- 255.00
@roderik
roderik / BillSplitCommand.php
Created April 30, 2012 09:35
BillSplitCommand v2
<?php
namespace Kunstmaan\Hosting\BillSplitBundle\Command;
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use SplFileObject;
use SplFileInfo;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
@roderik
roderik / BillSplitCommand.php
Created April 30, 2012 11:52
BillSplitCommand v3
<?php
namespace Kunstmaan\Hosting\BillSplitBundle\Command;
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use SimpleXMLElement;
use SplFileObject;
use SplFileInfo;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;