Skip to content

Instantly share code, notes, and snippets.

View biesior's full-sized avatar

Marcus Biesioroff biesior

View GitHub Profile
@leon
leon / play.conf
Created March 26, 2012 12:27
Upstart script for Play Framework 2.0
# Upstart script for a play application that binds to an unprivileged user.
# put this into a file like /etc/init/play.conf
#
# This could be the foundation for pushing play apps to the server using something like git-deploy
# By calling service play stop in the restart command and play-start in the restart command.
#
# Usage:
# start play
# stop play
# restart play
@biesior
biesior / AdditionalConfiguration.php
Last active May 15, 2017 08:38
TYPO3 Custom condition to check if beLayout selected for page or its parent(s) matches required value
<?php
/**
* Condition to check if beLayout selected for page or its parent(s) matches required value
*
* @param int $layout UID of layout to check
*
* @return bool True if first `found be_layout` OR `backend_layout_next_level` matches the param
*/
function user_beLayout($layout) {