This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types=1); | |
namespace Vendor\Sitepackage\DataProcessing; | |
use Doctrine\DBAL\Connection; | |
use TYPO3\CMS\Core\Database\ConnectionPool; | |
use TYPO3\CMS\Core\Database\Query\Restriction\FrontendWorkspaceRestriction; | |
use TYPO3\CMS\Core\Domain\Repository\PageRepository; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Move typo3temp into RAM-Disk. Do not sync vendor and TYPO3-Directory. | |
# For MAC: 'nocopy' will only work correct, if nfs_mount_enabled is true | |
version: '3.6' | |
services: | |
web: | |
volumes: | |
- type: tmpfs | |
tmpfs: | |
size: 268435456 | |
# TYPO3 8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cache: | |
paths: | |
- /cache/composer | |
stages: | |
- composer | |
- deploy | |
build: | |
stage: composer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace AppZap\MyExt\Type; | |
use TYPO3\CMS\Core\Type\TypeInterface; | |
/** | |
* In our application we have fields that store time intervals as minutes in the database. | |
* In our code we want proper DateInterval objects, so we use a TypeInterface to let extbase take care of the conversion. | |
* | |
* Usage example on a model property: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hier wie versprochen mein Rezept: | |
500g Weizenmehl, | |
50g Margarine | |
1 Teeloeffel Salz | |
250ml Milch | |
1 Ei | |
1 Wuerfel frische Hefe | |
Mehl in eine Schuessel sieben, in die Mitte ein Kuhle druecken. Milch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.gem | |
.npm | |
cgi-bin | |
fcgi-bin | |
html | |
lib | |
man | |
share | |
tmp | |
**/node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Usage: | |
* php forge-analyse.php <date-from> [<date-until>] | |
* php forge-analyse.php 2012-12-24 2012-12-31 | |
* | |
* @author Oliver Hader <[email protected]> | |
* @license GPL v2 or any later version | |
* @see http://forge.typo3.org/projects/typo3v4-core/wiki/FriendlyGhost | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Tx_OrderTracker_Persistence_Storage_VersionedTypo3DbBackend extends Tx_Extbase_Persistence_Storage_Typo3DbBackend { | |
/** | |
* @var t3lib_TCEmain | |
* @inject | |
*/ | |
protected $tcemain; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function cidr_match($ip, $ranges) | |
{ | |
$ranges = (array)$ranges; | |
foreach($ranges as $range) { | |
list($subnet, $mask) = explode('/', $range); | |
if((ip2long($ip) & ~((1 << (32 - $mask)) - 1)) == ip2long($subnet)) { | |
return true; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
NewerOlder