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 / bootstrap.sh
Last active December 10, 2015 20:58
Installation guide for http://bundles.kunstmaan.be
# FIRST: Install Vagrant (http://www.vagrantup.com/)
# and VirtualBox (https://www.virtualbox.org/)
#
# make sure the librarian gem is installed
gem install librarian-chef
# if you use rbenv you need to execute to make the librarian-chef command available:
# $ rbenv rehash
# checkout the sandbox from GitHub
git clone https://github.com/Kunstmaan/KunstmaanSandbox.git
# move into the sandbox folder
@roderik
roderik / pwgen.rb
Last active December 10, 2015 12:28
include_recipe "pivotal_workstation::homebrew"
brew_install "pwgen"
dmg_package "Alfred" do
volumes_dir "Alfred.app"
source "http://cachefly.alfredapp.com/alfred_1.3.1_261.dmg"
checksum "c951c4dc05ff1091359358d710142cabef2c190be41f799244669f879cff7e80"
action :install
owner WS_USER
end
unless File.exists?("/Applications/1Password.app")
remote_file "#{Chef::Config[:file_cache_path]}/1password.zip" do
source "https://d13itkw33a7sus.cloudfront.net/dist/1P/mac/1Password-3.8.20.zip"
owner WS_USER
checksum "56aef138f06fc92d641c424742bc40887cd19e6029f20409ec06ad5514b8cff1" # optional
end
execute "unzip 1password" do
command "unzip #{Chef::Config[:file_cache_path]}/1password.zip -d #{Chef::Config[:file_cache_path]}/"
@roderik
roderik / bootstrap.sh
Created January 2, 2013 12:02
Bootstrap.sh extract
#!/bin/bash
if rvm --version 2>/dev/null; then
gem install soloist
else
sudo gem install soloist
fi
mkdir -p ~/cookbooks; cd ~/cookbooks
@roderik
roderik / soloistrc
Created January 2, 2013 11:46
Example soloistrc
cookbook_paths:
- /Users/roderik/cookbooks
recipes:
- pivotal_workstation::create_var_chef_cache
- pivotal_workstation::xquartz
- pivotal_workstation::locate_on
- pivotal_workstation::1password
- pivotal_workstation::gem_setup
- pivotal_workstation::bash4
- pivotal_workstation::bash_it
@roderik
roderik / Mail2Things.scpt
Created December 7, 2012 19:27
Mail2Things
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
@roderik
roderik / gist:3743466
Created September 18, 2012 14:35
Must attend web conferences in Belgium and neighbouring countries
PHPBenelux Conference 2013 25-26 januari http://lanyrd.com/2013/phpbnl13/
Future of Web Apps London 16-17 oktober http://futureofwebapps.com/london-2012/
Future of Web Apps Praag 27-29 november http://futureofwebapps.com/prague-2012/
Symfony Live London 14 september http://london2012.live.symfony.com/
Symfony Live Berlin 23 november http://berlin2012.live.symfony.com/
Dutch PHP Conference 7-9 juni http://www.phpconference.nl/
PF Congres 17 september pfcongres.com
Fronteers 4-5 oktober http://fronteers.nl/congres/2012
Smashing Conference 17-19 september http://smashingconf.com/
Arrrcamp 4-5 oktober http://arrrrcamp.be/
#!/usr/bin/env php
<?php
require 'vendor/autoload.php';
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Yaml\Dumper;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
<?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);