Skip to content

Instantly share code, notes, and snippets.

View roderik's full-sized avatar

Roderik van der Veer roderik

View GitHub Profile
@roderik
roderik / servers.yml
Created April 30, 2012 12:38
servers.yml
servers:
server1.kunstmaan.be:
type: dedicated
maconomy: 1111111111
server2.kunstmaan.be:
type: shared
@roderik
roderik / projects.yml
Created April 30, 2012 12:43
projects.yml
projects:
projectx: 222222222
projecty: 333333333
@roderik
roderik / BillSplitCommand.php
Created April 30, 2012 13:01
BillSplitCommand v4
<?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;
@roderik
roderik / BillSplitCommand.php
Created April 30, 2012 13:59
BillSplitCommand v5
<?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;
@roderik
roderik / BillSplitCommand.php
Created April 30, 2012 17:01
BillSplitCommand v6
<?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;
{
"name": "kunstmaan/khosting",
"description": "A Bill Splitting Commandline Application Using Symfony 2.1",
"autoload": {
"psr-0": { "": "src/" }
},
"require": {
"php": ">=5.3.2",
"symfony/symfony": "2.1.*",
"doctrine/orm": "2.2.0",
@roderik
roderik / BillSplitCommand.php
Created April 30, 2012 17:22
BillSplitCommand v7
<?php
namespace Kunstmaan\Hosting\BillSplitBundle\Command;
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Ddeboer\DataImportBundle\Writer\CsvWriter;
use SimpleXMLElement;
use SplFileObject;
use SplFileInfo;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
<?php
if (in_array(@$_SERVER['REMOTE_ADDR'], array('127.0.0.1', '::1'))) {
apc_clear_cache();
apc_clear_cache('user');
apc_clear_cache('opcode');
echo json_encode(array('success' => true));
} else {
die('SUPER TOP SECRET');
}
@roderik
roderik / .travis.yml
Last active January 30, 2020 06:07
Installing Apache with PHP in Travis-CI
language: php
php:
- 5.3
- 5.4
before_script:
- sudo apt-get install apache2
- sudo a2enmod actions
- sudo a2enmod rewrite
@roderik
roderik / .travis.yml
Created July 16, 2012 17:46
Installing APC in Travis-CI
before_script:
- curl -o APC-3.1.10.tgz http://pecl.php.net/get/APC-3.1.10.tgz
- tar -xzf APC-3.1.10.tgz
- sh -c "cd APC-3.1.10 && phpize && ./configure && make && sudo make install && cd .."
- rm -Rf APC-3.1.10
- rm APC-3.1.10.tgz
- echo "extension=apc.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`
- phpenv rehash