Skip to content

Instantly share code, notes, and snippets.

View michaelfeinbier's full-sized avatar
🖖

Michael Feinbier michaelfeinbier

🖖
View GitHub Profile
@michaelfeinbier
michaelfeinbier / KrakenIoPostProcessor.php
Last active September 27, 2019 15:30
*Use Kraken.IO with TYPO3* - This post-processes every image generated by the frontend and stored in /_processed_/ regardless of the used StorageDriver - however, if the image could not be processed by Kraken.IO the processed image will remain untouched
<?php
namespace Dnp\DnpPlugins\ImageProcessing;
use TYPO3\CMS\Core\Http\RequestFactory;
use TYPO3\CMS\Core\Log\LogManager;
use TYPO3\CMS\Core\Resource;
use TYPO3\CMS\Core\Resource\Processing\ImageCropScaleMaskTask;
use TYPO3\CMS\Core\Utility\GeneralUtility;
@michaelfeinbier
michaelfeinbier / composer.json
Created January 19, 2015 13:44
Composer Setup for typo3-surf-cms
{
"repositories": [
{
"type": "composer",
"url": "http://composer.typo3.org/"
}
],
"name": "…",
"description": "…",
"license": "propiertary",
@michaelfeinbier
michaelfeinbier / m3u_to_tvheadend.js
Created November 30, 2012 19:27 — forked from dz0ny/m3u_to_tvheadend.js
IPTV m3u to tvheadend configuration
#!/usr/bin/env node
var fs = require("fs");
var tv = fs.readFileSync("siol.m3u", "UTF-8").split("\n\n");
var tags = [];
var iptvs = [];
var channels = [];
function trim(s) {
s = s.replace(/(^\s*)|(\s*$)/gi,"");