Skip to content

Instantly share code, notes, and snippets.

Tobias Liebig etobi

Block or report user

Report or block etobi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@froemken
froemken / docker-compose.override.yaml
Last active May 14, 2019
How to exclude typo3temp directory from ddev to get more performance
View docker-compose.override.yaml
version: '3.6'
services:
web:
volumes:
- type: volume
source: typo3temp
# TYPO3 8
target: /var/www/html/web/typo3temp/var/Cache
# TYPO3 9
target: /var/www/html/var/cache
@spoonerWeb
spoonerWeb / .gitlab-ci.yml
Last active Feb 18, 2019
GitLab CI for building and deploying TYPO3 websites with deployer
View .gitlab-ci.yml
cache:
paths:
- /cache/composer
stages:
- composer
- deploy
build:
stage: composer
@smichaelsen
smichaelsen / DateInterval.php
Last active Nov 26, 2015
Example how to use the TypeInterface to let extbase initialize objects from your database records
View DateInterval.php
<?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:
View gist:776ca1c15074129de883
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
@fhemberger
fhemberger / backup-uberspace.exclude
Created Oct 17, 2013
How to easily backup your Uberspace (http://uberspace.de) account with rsync
View backup-uberspace.exclude
.gem
.npm
cgi-bin
fcgi-bin
html
lib
man
share
tmp
**/node_modules
@ohader
ohader / forge-analyse.php
Last active Dec 10, 2015
Forge Issue Analysis
View forge-analyse.php
<?php
/**
* Usage:
* php forge-analyse.php <date-from> [<date-until>]
* php forge-analyse.php 2012-12-24 2012-12-31
*
* @author Oliver Hader <oliver.hader@typo3.org>
* @license GPL v2 or any later version
* @see http://forge.typo3.org/projects/typo3v4-core/wiki/FriendlyGhost
*/
@smichaelsen
smichaelsen / VersionedTypo3DbBackend.php
Created Dec 6, 2012
Extbase Storage Backend that writes the changes to sys_history and sys_log
View VersionedTypo3DbBackend.php
<?php
class Tx_OrderTracker_Persistence_Storage_VersionedTypo3DbBackend extends Tx_Extbase_Persistence_Storage_Typo3DbBackend {
/**
* @var t3lib_TCEmain
* @inject
*/
protected $tcemain;
@samdark
samdark / github-post-receive.php
Last active Jul 15, 2019
Simple GitHub post-receive PHP hook
View github-post-receive.php
<?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;
}
}
@erikh
erikh / hack.sh
Created Mar 31, 2012 — forked from DAddYE/hack.sh
OSX For Hackers
View hack.sh
#!/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
#
You can’t perform that action at this time.