Skip to content

Instantly share code, notes, and snippets.

View phluzern's full-sized avatar

PH Luzern phluzern

View GitHub Profile
{
"repositories": [
{
"type": "composer",
"url": "http://composer.typo3.org/"
},
{
"type": "git",
"url": "https://github.com/phluzern/www.phlu.ch.git"
},
@phluzern
phluzern / Objects.yaml
Created October 8, 2013 16:45
Secure downloads for TYPO3 Flow The idea behind the feature is that resistent resources are bound to a user session. As long as a user session is valid, a resource is published and therefore downloadable, once the user is logged out, the file is no longer available.
# Use an own publishing configuration
TYPO3\Flow\Resource\Publishing\ResourcePublishingTargetInterface:
className: Venodor\Package\Resource\Publishing\SecureFileSystemPublishingTarget
@phluzern
phluzern / Fluid template
Last active December 23, 2015 06:39
Using TYPO3.Media to render images in TYPO3 Flow
All the ViewHelper options are documented in:
/Packages/Application/TYPO3.Media/Classes/TYPO3/Media/ViewHelpers/ImageViewHelper.php
{namespace m=TYPO3\Media\ViewHelpers}
<f:if condition="{model.image}">
<m:image image="{model.image}" maximumHeight="72" alt="Profilbild" />
</f:if>
@phluzern
phluzern / nfs.reg
Created September 15, 2013 14:56
Registry information for using NFS with Vagrant on Windows 7 Ultimate and Enterprise.
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ClientForNFS\CurrentVersion\Default]
"MaxNfsUser"=dword:00000020
"DeleteSymLinks"=dword:00000000
"FirstContact"=dword:00000003
"UseReservedPorts"=dword:00000001
"Protocols"=dword:00cffcff
"Retransmissions"=dword:00000001
"Timeout"=dword:00000008