Skip to content

Instantly share code, notes, and snippets.

-
options:
partialRootPaths: ['resource://My.FirstPackage/Private/Partials']
@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

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 / Settings.yaml
Last active December 21, 2015 14:39
Using cboden/Ratchet with TYPO3 Flow
TYPO3:
Flow:
reflection:
ignoredTags: ['event', 'temporary', 'type', 'note']
@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 / 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 / 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 / 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 / SomeAspect.php
Last active December 16, 2015 12:19
Possible solution for ORM issue by property introduction
<?php
namespace ..........
use TYPO3\Flow\Annotations as Flow;
use Doctrine\ORM\Mapping as ORM;
/**
*
* @Flow\Scope("singleton")
* @Flow\Aspect
@RafaelKa
RafaelKa / ProxyClassBuilder.php
Created April 15, 2013 16:47
Patch for http://forge.typo3.org/issues/39413 Property introduction seems to be broken -> by ORM
<?php
...
/**
* Builds methods for a single AOP proxy class for the specified class.
*
* @param string $targetClassName Name of the class to create a proxy class file for
* @param array &$aspectContainers The array of aspect containers from the AOP Framework
* @return boolean TRUE if the proxy class could be built, FALSE otherwise.
*/
public function buildProxyClass($targetClassName, array &$aspectContainers) {