Skip to content

Instantly share code, notes, and snippets.


Bernd Ennsfellner uberboom

View GitHub Profile
uberboom / mysqlDateUpdate.sql
Created Jul 15, 2016
MySQL 5.7: Convert “zero dates” to null
View mysqlDateUpdate.sql
update `mytable`
set `created` = null
where cast(`created` as char(20)) = '0000-00-00 00:00:00';
uberboom / Cors.php
Created Sep 22, 2015
Laravel 5.1 Cross-Origin Resource Sharing (CORS) Middleware
View Cors.php
namespace App\Http\Middleware;
use Closure;
use Illuminate\Contracts\Routing\Middleware;
use Illuminate\Http\Response;
class Cors implements Middleware
uberboom /
Created Feb 6, 2015
Bash: Watch for changes in SASS files and build the CSS target file (with LiveReload support)
# Configuration
# sass source
uberboom / CleanSource.php
Last active Dec 17, 2019
TYPO3: Hook to remove the generator meta tag (TYPO3 CMS 6.2)
View CleanSource.php
namespace Your\Extension\Namespace\Hooks;
* Clean up source
class CleanSource extends \TYPO3\CMS\Frontend\Plugin\AbstractPlugin
uberboom / PageLayoutView.php
Last active Jan 30, 2020
TYPO3: Render a backend preview of custom content elements (TYPO3 CMS 6.2)
View PageLayoutView.php
namespace Your\Extension\Namespace\Hooks;
class PageLayoutView implements \TYPO3\CMS\Backend\View\PageLayoutViewDrawItemHookInterface
* Preprocesses the preview rendering of a content element.