Skip to content

Instantly share code, notes, and snippets.

View josefglatz's full-sized avatar
👨‍💻

Josef Glatz josefglatz

👨‍💻
View GitHub Profile
@BenjaminPoncet
BenjaminPoncet / ffmpeg-wrapper
Last active March 29, 2024 10:11
Synology VideoStation ffmpeg wrapper with DTS, EAC3 and TrueHD support. This project is no longer maintained: Please see the following projects: https://github.com/darknebular/Wrapper_VideoStation/ - https://github.com/AlexPresso/VideoStation-FFMPEG-Patcher
#!/bin/bash
rev="12"
_log(){
echo "$(date '+%Y-%m-%d %H:%M:%S') - ${streamid} - $1" >> /tmp/ffmpeg.log
}
_log_para(){
echo "$1" | fold -w 120 | sed "s/^.*$/$(date '+%Y-%m-%d %H:%M:%S') - ${streamid} - = &/" >> /tmp/ffmpeg.log
@bmack
bmack / LocalPageErrorHandler.php
Last active June 4, 2021 12:53
Local Error Handler for TYPO3
<?php
namespace B13\AnyProject\PageErrorHandler;
/*
* This file is part of a b13 extension.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
@TechupBusiness
TechupBusiness / create_docker_compose_basic_auth_string_for_traefik.sh
Last active July 31, 2023 13:52
Generator to create basic authentication string for traefik (docker-compose.yml and .env)
#!/bin/bash
SUDO=''
if (( $EUID != 0 )); then SUDO='sudo'; fi
echo "Basic auth for traefik >= v1.7"
read -p "User: " USER
read -p "Password: " PW
# Checks if htpasswd is available or install it otherwise
@helhum
helhum / CacheWarmingFrontend.php
Created March 22, 2019 15:01
TYPO3 Cache Warming
<?php
declare(strict_types=1);
namespace Helhum\SitePackage\Cache\Frontend;
use TYPO3\CMS\Core\Cache\Backend\BackendInterface;
use TYPO3\CMS\Core\Cache\Frontend\VariableFrontend;
use TYPO3\CMS\Core\Core\Environment;
use TYPO3\CMS\Core\Http\ServerRequestFactory;
class CacheWarmingFrontend extends VariableFrontend
@douglasmiranda
douglasmiranda / ubuntu-dell-g3.md
Last active March 2, 2023 21:16
Ubuntu 16.04 Dell G3 series setup
@froemken
froemken / docker-compose.override.yaml
Last active August 8, 2022 15:00
How to exclude typo3temp directory from ddev to get more performance
# 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
@wazum
wazum / StaticPaddedRangeMapper.php
Created January 28, 2019 13:40
TYPO3 CMS 9.5 StaticPaddedRangeMapper Routing Aspect
<?php
declare(strict_types=1);
namespace Vendor\Extension\Routing\Aspect;
use TYPO3\CMS\Core\Routing\Aspect\StaticRangeMapper;
/**
* Class StaticPaddedRangeMapper
* @package Vendor\Extension\Routing\Aspect
@georgringer
georgringer / setup.typoscript
Last active September 18, 2019 07:37
Google Tag Manager with CMS 9. The Site module is extended to allow site admins to edit the GTM code
page {
headerData.50 = TEXT
headerData.50 {
if.isTrue.data = site:googleTagManager
stdWrap.replacement {
10 {
search = ###CODE###
replace.data = site:googleTagManager
}
@vkemeter
vkemeter / _font-sizes.scss
Created December 19, 2018 14:10
SCSS Font-Size Idea
// use sass iteration to set class for every
// element in different breakpoints
// with different styles
@each $elem in map-keys($test) {
#{$elem} {
@each $breakpoint, $style in _get($test, $elem) {
@include media-breakpoint-up(#{$breakpoint}) {
@each $k, $v in _get($test, $elem $breakpoint) {
#{$k}: #{$v};
}
@jokumer
jokumer / Example XML sitemap rendering for news with TYPO3 9.5.md
Last active September 10, 2020 12:43
TYPO3 9.5 SEO Sitemap for TxNews

Example XML sitemap rendering for news with TYPO3 9.5

To render Google compliant news sitemap with TYPO3 version 9.5 with its included SEO extension and thirdparty news extension from Georg Ringer, this example is a quick start you can embed in your own project.

It follows the recommended XML scheme from Google Google News Sitemaps

Requirements

You need to use a project or sitepackage extension in your TYPO3 installation (see also Sitepackage builder).