Skip to content

Instantly share code, notes, and snippets.

@RafaelKa
RafaelKa / index.php
Created June 19, 2013 14:58
Flow shows something by fatal error.
<?php
/* *
* This script belongs to the TYPO3 Flow framework. *
* *
* 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. *
* *
* The TYPO3 project - inspiring people to share! *
@RafaelKa
RafaelKa / 0_index.php
Last active December 18, 2015 17:09
Flow shows "WSOD" by PHP's Fatal Errors. White Screen Of Death, one of PHP's specialties. It is produced when an error has occurred in a PHP script and the error reporting goes either to the error log or to nowhere. Of course you can set display_errors to TRUE but by production context is that not the best way. Following code can fix this proble…
<?php
/* *
* This script belongs to the TYPO3 Flow framework. *
* *
* 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. *
* *
* The TYPO3 project - inspiring people to share! *
@RafaelKa
RafaelKa / autocompletionByNetbeans_7.2.php
Created June 26, 2013 14:12
NetBeans 7.2 OsX :: Problem by Inline autocompletion tool. NOTE: this snippet works in other Class file.
<?php
// ...
$partyFromRepository = $accountFromRepository->getParty();
if ($partyFromRepository instanceof \TYPO3\Party\Domain\Model\Person) {
/* @var $partyFromRepository \TYPO3\Party\Domain\Model\Person */
// $partyFromRepository-> // here does not work
foreach ($something as $partyFromRepository) {
// $partyFromRepository-> // here works
}
}
@RafaelKa
RafaelKa / PropertyIntroductionAspect.php
Created August 19, 2013 15:09
You can put assignPropertiesToORM() method to your aspect class and modify rows 82-89.
<?php
namespace ..........
use TYPO3\Flow\Annotations as Flow;
use Doctrine\ORM\Mapping as ORM;
/**
*
* @Flow\Scope("singleton")
* @Flow\Aspect
@RafaelKa
RafaelKa / Settings.yaml
Last active December 21, 2015 14:39
Using cboden/Ratchet with TYPO3 Flow
TYPO3:
Flow:
reflection:
ignoredTags: ['event', 'temporary', 'type', 'note']

Lua script and VHost.conf for generating mass virtual hosting environment like "user_dir" with "auto-map" on PHP5-FPM

Create unix users and add www-data to theyr groups.

Chown directories /srv/projects/projectname/workingspace to users and crate fpm-pools and put ports for fpm dependent on projectname in fpm-socket-ports-by-project-name.txt

@RafaelKa
RafaelKa / SIDs_Apache_2.4.6-3.sh
Created September 13, 2013 21:59
So and in this order is it possible to install Apache HTTPD 2.4.6-3 from SID repository whitout addeng this to sources list.
mkdir -p DEBS_FROM_SID/apache2.4
cd DEBS_FROM_SID/apache2.4
wget http://ftp.de.debian.org/debian/pool/main/e/eglibc/locales_2.17-92_all.deb
wget http://ftp.de.debian.org/debian/pool/main/e/eglibc/libc6_2.17-92+b1_amd64.deb
wget http://ftp.de.debian.org/debian/pool/main/a/apr/libapr1_1.4.8-1_amd64.deb
wget http://ftp.de.debian.org/debian/pool/main/a/apr-util/libaprutil1_1.5.2-1_amd64.deb
wget http://ftp.de.debian.org/debian/pool/main/a/apr-util/libaprutil1-dbd-mysql_1.5.2-1_amd64.deb
wget http://ftp.de.debian.org/debian/pool/main/a/apr-util/libaprutil1-dbd-sqlite3_1.5.2-1_amd64.deb
wget http://ftp.de.debian.org/debian/pool/main/libt/libtool/libltdl7_2.4.2-1.3_amd64.deb
wget http://ftp.de.debian.org/debian/pool/main/u/unixodbc/libodbc1_2.2.14p2-5_amd64.deb
-
options:
partialRootPaths: ['resource://My.FirstPackage/Private/Partials']
@RafaelKa
RafaelKa / Routes.yaml
Created April 1, 2014 12:45
econics subfolders for actioncontroller
##
# subfolder, controller and action with optional format
-
name: 'subfolder, controller and action with optional format'
uriPattern: '{@cf}/{@cn}/{@action}(.{@format})'
defaults:
'@package': 'Foo.Bar'
'@controller': '{@cf}\{@cn}'
'@format': 'html'
@RafaelKa
RafaelKa / README.md
Last active August 29, 2015 14:01 — forked from progandy/README.md

mod_proxy_handler

This module for apache 2.4 allows you to use e.g. mod_proxy_fcgi in AddHandler or SetHandler directives.

Compile and install the module with apxs:

apxs -i -a -c mod_proxy_handler.c

Example: