Skip to content

Instantly share code, notes, and snippets.

View timovos's full-sized avatar

Timo Vos timovos

View GitHub Profile
# Install the hostsupdater:
# vagrant plugin install vagrant-hostsupdater
# Place the following code into $HOMESTEAD/scripts/homestead.rb
# I placed it somewhere near end of the file
# Add the aliases to the host machine
if Vagrant.has_plugin?('vagrant-hostsupdater')
aliases = Array.new
settings["sites"].each do |site|
@timovos
timovos / AnyController.php
Created January 20, 2016 12:41
TYPO3 errorAction, useful for errors like An error occurred while trying to call Vendor\ExtKey\Controller\AnyController->showAction()
/**
* A special action which is called if the originally intended action could
* not be called, for example if the arguments were not valid.
*
* The default implementation sets a flash message, request errors and forwards back
* to the originating action. This is suitable for most actions dealing with form input.
*
* We clear the page cache by default on an error as well, as we need to make sure the
* data is re-evaluated when the user changes something.
*
@timovos
timovos / redmine_plus
Last active September 1, 2015 12:08 — forked from paulbremer/redmine_plus
Redmine Plus
// ==UserScript==
// @name Redmine Plus
// @namespace
// @version 0.5
// @description redmine+
// @match https://redmine.buyways.nl/rb/taskboards/*
// @copyright 2014+, Paul Bremer
// ==/UserScript==
var reload = true;