Skip to content

Instantly share code, notes, and snippets.

View radmiraal's full-sized avatar

Rens Admiraal radmiraal

View GitHub Profile
@radmiraal
radmiraal / TestingSettings.yaml
Last active August 29, 2015 13:57
During setting up a ubuntu machine with TYPO3 Neos on a shared folder (NFS) I ran into below error while running the TYPO3.Media functional tests.
TYPO3:
Flow:
utility:
environment:
temporaryDirectoryBase: /tmp%FLOW_PATH_DATA%Temporary/
"repositories":[
{"type":"git","url": "..."},
{"type":"composer","url": "satis"}
]
@radmiraal
radmiraal / gist:84281f5393523c157d82
Created June 22, 2014 00:38
Example Surf Deployment with rsync
<?php
use \TYPO3\Surf\Domain\Model\Node;
use \TYPO3\Surf\Domain\Model\SimpleWorkflow;
$application = new \TYPO3\Surf\Application\TYPO3\Flow('deployment-name');
$application->setDeploymentPath('/var/www/');
$application->setOption('packageMethod', 'git');
$application->setOption('transferMethod', 'rsync');
$application->setOption('updateMethod', NULL);
$application->setOption('repositoryUrl', 'ssh://review.typo3.org/repo.git');
@radmiraal
radmiraal / gist:5dbc8522ef7c8a42bee1
Last active August 29, 2015 14:06
Temporary creation of static packages symlinks in Flow on your deployment server
#!/bin/bash
if [ -d Web/_Resources/Static/Packages ]; then
rm -rf Web/_Resources/Static/Packages
fi
mkdir -p Web/_Resources/Static/Packages
find $(pwd) -type d -path "*/Resources/Public" -print0 | while IFS= read -r -d $'\0' line; do
if [[ $line =~ Packages/[^/]+/([^/]+) ]]; then
packageKey=${BASH_REMATCH[1]}
@radmiraal
radmiraal / gist:cc136526865e6c106f01
Created September 18, 2014 10:24
TYPO3 FLow routing nullbackend
Flow_Mvc_Routing_FindMatchResults:
backend: TYPO3\Flow\Cache\Backend\NullBackend
Flow_Mvc_Routing_Resolve:
backend: TYPO3\Flow\Cache\Backend\NullBackend
{namespace neos=TYPO3\Neos\ViewHelpers}
{namespace ts=TYPO3\TypoScript\ViewHelpers}
<div{attributes -> f:format.raw()}>
{neos:contentElement.editable(property:'title', tag: 'h1')}
<ts:render path="content" />
</div>
module.exports = function (grunt) {
grunt.loadNpmTasks("grunt-extend-config");
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
compass: grunt.file.readJSON('../../../../Build/Grunt/Defaults/compass.json'),
watch: grunt.file.readJSON('../../../../Build/Grunt/Defaults/watch.json'),
requirejs: grunt.file.readJSON('../../../../Build/Grunt/Defaults/requirejs.json'),
concat: grunt.file.readJSON('../../../../Build/Grunt/Defaults/concat.json'),
clean: {
../Templates/TypoScriptObjects/NeosBackendEndpoints.html
../../Public/JavaScript/Content/Inspector/Editors/ImageEditor.js
*/
_imageServiceEndpointUri: null,
+ _sites: [],
+
loadingindicator: null,
### Keybase proof
I hereby claim:
* I am radmiraal on github.
* I am radmiraal (https://keybase.io/radmiraal) on keybase.
* I have a public key whose fingerprint is 8545 C4CE D1A4 8976 227C 7AEF 2217 1AEC CD6E 11A9
To claim this, I am signing this object:
@radmiraal
radmiraal / bash
Last active August 29, 2015 14:07
Run behat tests on CI with internal php webserver
#!/bin/bash
# Searches for all behat.ci.yaml files in the project and runs the tests
FLOW_CONTEXT=Development/Behat php -S 0.0.0.0:8452 -t Web/ &
phpPid=$!
find . -type f -path "*/Tests/Behavior/behat.ci.yml" -print0 | while IFS= read -r -d $'\0' line; do
bin/behat -c $line
done