Instantly share code, notes, and snippets.

View TYPO3 Extension

TYPO3 Extension Box

Version: 1.1.1


This Vagrantfile ships a handy development environment for TYPO3 extensions. The shell based provision scripts, use Composer to fetch TYPO3 CMS and all required dependencies - for different TYPO3 versions:

  • TYPO3 CMS 8.7 LTS
View halt.bat
@echo off
vagrant global-status | awk '/running/{print $1}' | xargs -r -d '\n' -n 1 -- vagrant halt


[userFunc = \Vendorname\Extension\UserConditions\user_translationExistsNot()] && [globalVar = GP:L > 0]
    # Add canonical tag
    # and/or display a notice, that the current page is not translated yet and the original contents are displayed


# Credits to:
# -
# -
# rm -rf /var/www/html/*
# BE CAREFUL with synched folders!!!
rm -rf ~/.composer/vendor/*
View Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Requires to perform this first:
# `vagrant plugin install vagrant-winnfsd`
# `vagrant plugin install vagrant-bindfs`
# Put this Vagrantfile to in root directory of the TYPO3 extension you want to develop with
# and perform: `vagrant up`
cd /var/www/html
rm -Rf *
composer require typo3/cms:"^7.6" helhum/typo3-console:"^4.5" gridelementsteam/gridelements:"^7.1"
vendor/bin/typo3cms install:setup --force --database-user-name "root" --database-user-password "" --database-host-name "localhost" --database-name "typo3_76" --database-port "3306" --database-socket "" --admin-user-name "admin" --admin-password "password" --site-name "TYPO3 Project" --site-setup-type "site" --use-existing-database 0
vendor/bin/typo3cms cache:flush
php typo3/cli_dispatch.phpsh extbase extension:install gridelements
View facebook-flat-dark-gray.css
body {
color: #ccc !important;
background-color: rgb(43, 43, 43) !important;
a {
color: #ccc !important;
input.inputtext {
color: #ccc !important;
background-color: #333 !important;
View composer.json
"require": {
"symfony/process": "^3.2"

Keepass SSH Link Handler for WinSCP

Add this to a new URL Override (in Options -> Integration):

Scheme: ssh

URL override: cmd://C:\PROGRA~2\WinSCP\WinSCP.exe -ssh {USERNAME}:{T-CONV:/{PASSWORD}/Uri/}@{URL:RMVSCM}

Adjust path to WinSCP if necessary. Then use ssh:// in URL of your password entries.

View tampermonkey.js
// ==UserScript==
// @name Bitbucket Commit Line Difference
// @namespace ArminVieweg
// @version 0.1
// @description Calculate difference between added and removed lines and displays it in Bitbucket commits
// @author Armin Vieweg <>
// @match*/*/commits/*
// @grant none
// ==/UserScript==