Skip to content

Instantly share code, notes, and snippets.

View oliverthiele's full-sized avatar

Oliver Thiele oliverthiele

View GitHub Profile
@oliverthiele
oliverthiele / FluidLayout.html
Created March 12, 2017 16:07
Some of my favorite Live-Templates for PhpStorm
{namespace b=OliverThiele\OtBootstrap3\ViewHelpers}
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
<f:spaceless>
$END$
<f:render section="Content" />
</f:spaceless>
</html>
@oliverthiele
oliverthiele / RST.xml
Created November 30, 2017 11:01
PhpStorm Live Templates for *.rst files
<templateSet group="RST">
<template name="rstRefCoreApi" value=":ref:`Core Api Reference &lt;t3coreapi:$SECTION$&gt;`" description="Core Api Reference" toReformat="false" toShortenFQNames="true">
<variable name="SECTION" expression="" defaultValue="start" alwaysStopAt="true" />
<context>
<option name="Bash" value="false" />
<option name="CSS" value="false" />
<option name="CUCUMBER_FEATURE_FILE" value="false" />
<option name="CoffeeScript" value="false" />
<option name="HAML" value="false" />
<option name="HTML" value="false" />
@oliverthiele
oliverthiele / GetTypo3Update.sh
Created August 9, 2018 08:47
Download TYPO3 sources and update the symlinks for easy TYPO3 Updates (classic way w/o composer)
#!/bin/bash
version=$1;
major="${version:0:1}"
wget get.typo3.org/$1 -O typo3_src-${1}.tar.gz
wget get.typo3.org/${major}/tar.gz.sig -O typo3_src-${1}.tar.gz.sig
wget -qO- https://get.typo3.org/KEYS | gpg --import
gpg --verify typo3_src-${version}.tar.gz.sig typo3_src-${version}.tar.gz
@oliverthiele
oliverthiele / InstallTypo3.sh
Last active April 15, 2025 18:21
Script for fully automated composer-based installation of TYPO3 (v12.4 / v11.5) on a clean Ubuntu 22.04 or 24.04 root server with nginx, certbot, brotli, webp, ...
#!/bin/bash
# Exit on error
set -e
### Before executing this script make a system update:
# $> apt update; apt --assume-yes dist-upgrade; apt --assume-yes autoremove;
# $> reboot
@oliverthiele
oliverthiele / LocalStorageSVGs.js
Last active November 6, 2023 09:00
This JavaScript allows multiple icons stored in a sprite file to be used in the web page via LocalStorage. On the first call or when the file revision is changed, the file is downloaded from the server and stored in LocalStorage. So that the DOM is not unnecessarily extended with too many icons, a check is first made to see which icons are prese…
/**
* Version 3.0.0
*
* process.env constants are set via webpack (https://gist.github.com/oliverthiele/6298902d5192aa86f24682a3afbd0d9f)
*/
const assetsUrl = process.env.TYPO3_ASSETS_URL;
const revision = process.env.SVG_REVISION;
export function localStorageSVGs() {
@oliverthiele
oliverthiele / webpack.config.js
Created November 6, 2023 08:57
My webpack config for TYPO3 v11 and v12. Works with public/_asset/[hash] symlinks in TYPO3 v12
'use strict'
// Imports
const {VueLoaderPlugin} = require("vue-loader");
const fs = require('fs');
const path = require('path');
const autoprefixer = require('autoprefixer');
const CopyWebpackPlugin = require("copy-webpack-plugin");
const MiniCssExtractPlugin = require("mini-css-extract-plugin");

Keybase proof

I hereby claim:

  • I am oliverthiele on github.
  • I am oliverthiele (https://keybase.io/oliverthiele) on keybase.
  • I have a public key ASBem_wUTi1CXHLDYS4Gvewf8yYAUqS2Wtb45PTIUWAs_Ao

To claim this, I am signing this object: