Skip to content

Instantly share code, notes, and snippets.

View radmiraal's full-sized avatar

Rens Admiraal radmiraal

View GitHub Profile
@radmiraal
radmiraal / gist:2659449
Created May 11, 2012 12:55
LDAP Config
TYPO3:
FLOW3:
security:
authentication:
providers:
LDAP:
providerClass: TYPO3\LDAP\Security\Authentication\Provider\LDAPProvider
options:
<?php
namespace TYPO3\Fluid\Tests\Functional\Form\Fixtures\Domain\Model;
/* *
* This script belongs to the FLOW3 package "Fluid". *
* *
* It is free software; you can redistribute it and/or modify it under *
* the terms of the GNU Lesser General Public License, either version 3 *
* of the License, or (at your option) any later version. *
* *
<?php
ini_set('display_errors', 1);
error_reporting(E_ALL ^ E_STRICT);
$project = getenv('GERRIT_PROJECT');
$path = dirname(__DIR__ . '../');
$submodules = shell_exec(sprintf("cd %s && git submodule foreach --recursive 'git config remote.origin.url | grep \"%s.git\" || :'", $path, $project));
$submodules = explode(chr(10), $submodules);
<?php
ini_set('display_errors', 1);
error_reporting(E_ALL ^ E_STRICT);
if (!getenv('GERRIT_PROJECT')) {
echo 'GERRIT_PROJECT env var not set';
exit(1);
}
@radmiraal
radmiraal / fixture.html
Created July 4, 2012 08:53
basepath issue PHPStorm
some fixture
define(
[
'jquery',
'jquery.ui'
], function(jQuery) {
var Aloha = window.Aloha || ( window.Aloha = {} );
Aloha.settings = {
locale: 'en',
sidebar: {
jQuery('body').midgardCreate('configureEditor', 'title', 'halloWidget', {
plugins: {
halloformat: {}
},
toolbar: 'halloToolbarContextual'
});
TYPO3\FLOW3\I18n\Service:
properties:
translationProvider:
object: 'TYPO3\FLOW3\I18n\TranslationProvider\XliffTranslationProvider'
<?php
namespace Test\Aspect;
use TYPO3\FLOW3\Annotations as FLOW3,
Doctrine\ORM\Mapping as ORM;
/**
* @FLOW3\Aspect
*/
class ModelAspect {
var isLocal = (function() {
var rhash = /#.*$/,
currentPage = location.href.replace( rhash, "" );
return function( anchor ) {
// clone the node to work around IE 6 not normalizing the href property
// if it's manually set, i.e., a.href = "#foo" kills the normalization
anchor = anchor.cloneNode( false );
return anchor.hash.length > 1 &&
anchor.href.replace( rhash, "" ) === currentPage;