Skip to content

Instantly share code, notes, and snippets.

View marijn's full-sized avatar

Marijn Huizendveld marijn

View GitHub Profile
export PATH="$(brew --prefix josegonzalez/php/php55)/bin:$PATH"
SELECT CONCAT(
'bin/ams-gateway ams:cache-asset ',
ams_gateway_asset.asset,
' ',
ams_gateway_asset.nameOfRecipe
) AS command
FROM ams_gateway_asset
ORDER BY asset
LIMIT 0, 100
<?php
$myVideo = rsfVideoEncoder::load('/test.avi')
->setOverwrite(TRUE)
->setSeekable(TRUE)
->setOutputFile('/test2.flv')
->setVideoFramerate(24)
->setVideoBitrate('600k')
->setAudioBitrate('96k')
->setAudioFrequency(44100)
new function(_NO_SHRINK_)
{
/**
* Package: Validator
*
* Properties:
* name - Validator
* version - 0.1
* exports - <ValidatorBoolean>, <ValidatorString>, <ValidatorStringBehavior>, <register>
<?php
require_once __DIR__ . '/../lib/vendor/Symfony/lib/autoload/sfCoreAutoload.class.php';
sfCoreAutoload::register();
/**
* ProjectConfiguration.
*
* @author Marijn Huizendveld <marijn@round84.com>
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="transactions.xsl"?>
<transactions>
<transaction status="payed" id="AB-001">
<sender>
<name>John</name>
<familyName>Doe</familyName>
<dateOfBirth format="YYYYMMDD">19541212</dateOfBirth>
<emailAddress>john@doe.name</emailAddress>
</sender>
<?php
namespace Entities;
/**
* @MappedSuperclass
*/
abstract class EntityAbstract
{
@marijn
marijn / gist:308797
Created February 19, 2010 15:41
Reconfigure Plesk virtual host configuration files
/usr/local/psa/admin/sbin/websrvmng --reconfigure-vhost --vhost-name=MT-EXAMPLE.COM
<?php
class VideoEncoder
{
/**
* @var string
*/
private $_outputFile;
@marijn
marijn / dutchZipcodeTest.php
Created May 15, 2010 14:51
Dutch ZIP Code test written for PHPUnit
<?php
require_once 'PHPUnit/Framework.php';
class ZipCodeTest extends PHPUnit_Framework_TestCase
{
public function testDutchZipcodes ()
{
foreach (array('1017VN', '1017vn', '1017 VN', '1017 vn') as $zipCode)