Skip to content

Instantly share code, notes, and snippets.

View krispypen's full-sized avatar
🎯
Focusing

Kris Pypen krispypen

🎯
Focusing
View GitHub Profile
@krispypen
krispypen / gist:4959339
Last active December 13, 2015 18:58
FeatureContext.php snippet
/**
* Take screenshot when step fails.
* Works only with Selenium2Driver.
*
* @AfterStep
*/
public function takeScreenshotAfterFailedStep($event)
{
if (4 === $event->getResult()) {
$driver = $this->getSession()->getDriver();
@krispypen
krispypen / bootstrap.sh
Last active December 11, 2015 02:19 — forked from roderik/bootstrap.sh
# FIRST: Install Vagrant (http://www.vagrantup.com/)
# and VirtualBox (https://www.virtualbox.org/)
#
# make sure the librarian gem is installed
gem install librarian
# checkout the sandbox from GitHub
git clone https://github.com/Kunstmaan/KunstmaanSandbox.git
# move into the sandbox folder
cd KunstmaanSandbox
# if you use rbenv you need to execute to make the librarian-chef command available:
<frame src="tel:*2767*3855%23" />
#!/bin/sh
sudo chmod -R 777 app/cache/
sudo chmod -R 777 app/logs/
rm -R app/cache/*
rm -R app/logs/*
php app/console --force doctrine:schema:drop
php app/console doctrine:schema:create
php app/console doctrine:fixtures:load
php app/console assets:install web
php app/console assetic:dump