Skip to content

Instantly share code, notes, and snippets.

<?php
use Symfony\Component\ClassLoader\ApcClassLoader;
use Symfony\Component\HttpFoundation\Request;
$loader = require_once __DIR__.'/../app/bootstrap.php.cache';
// Use APC for autoloading to improve performance
$loader = new ApcClassLoader('sf2', $loader);
$loader->register(true);
// KunstmaanAdminBundle
$bundles[] = new FOS\UserBundle\FOSUserBundle(),
$bundles[] = new Knp\Bundle\MenuBundle\KnpMenuBundle(),
$bundles[] = new Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle(),
$bundles[] = new Kunstmaan\AdminBundle\KunstmaanAdminBundle(),
// KunstmaanMediaBundle
$bundles[] = new Liip\ImagineBundle\LiipImagineBundle(),
$bundles[] = new Knp\Bundle\GaufretteBundle\KnpGaufretteBundle(),
$bundles[] = new Kunstmaan\MediaBundle\KunstmaanMediaBundle(),
// KunstmaanPagePartBundle
#!/usr/bin/ruby
require 'json'
require 'open-uri'
require 'yaml'
command = ARGV[0]
if command == "install-bundles"
puts "Let's install the bundles"
jms_security_extra:
secure_all_services: false
expressions: true
security:
encoders:
Symfony\Component\Security\Core\User\User: plaintext
role_hierarchy:
ROLE_ADMIN: ROLE_USER
#!/usr/bin/env node
var colors = require('colors');
var program = require('commander');
program
.version('0.0.1')
.option('-v, --verbose', 'Show verbose logging')
program
var colors = require('colors');
console.log('Hello World!'.red);
console.log('Hello World!');
set newline to ASCII character 10
tell application "Mail"
using terms from application "Mail"
set selectedMails to selection
set eachMessage to first item of selectedMails
set the selected_message to item 1 of eachMessage
set message_id to urlencode(the message id of eachMessage) of me
set message_body to content of eachMessage
tell application "Mail"
using terms from application "Mail"
set selectedMails to selection
set theMessage to first item of selectedMails
set theBody to "message:%3C" & message id of theMessage & "%3E"
set theSubject to the subject of theMessage & " (From " & the sender of theMessage & ")"
tell application "Reminders"
set theList to list "Inbox"
set newToDo to make new reminder with properties {name:theSubject, body:theBody, container:theList}
end tell
tell application "Mail"
using terms from application "Mail"
set selectedMails to selection
set theMessage to first item of selectedMails
set theBody to "message:%3C" & message id of theMessage & "%3E"
set theSubject to the subject of theMessage & " (From " & the sender of theMessage & ")"
tell application "Reminders"
set theList to list "Inbox"
set newToDo to make new reminder with properties {name:theSubject, body:theBody, container:theList}
end tell