Skip to content

Instantly share code, notes, and snippets.

Armin Vieweg ArminVieweg

Block or report user

Report or block ArminVieweg

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ArminVieweg
ArminVieweg / Easy Admin Bundle ConfigPass.md
Last active Mar 27, 2019
This document describes the process of Symfony's Easy Admin Bundle, to process the given YAML configuration, with registered **ConfigPass** classes.
View Easy Admin Bundle ConfigPass.md

Easy Admin Bundle ConfigPass

This document describes the process of Symfony's Easy Admin Bundle, to process the given YAML configuration, with registered ConfigPass classes.

The problem

Those ConfigPasses are collections of private methods, which have e.g. action names hardcoded, so you can't reuse the "config auto-magic" for your new actions.

@ArminVieweg
ArminVieweg / GlossaryController.php
Created Feb 27, 2019
TYPO3 Fluid Widget to achieve a Glossary navigation.
View GlossaryController.php
<?php
namespace Vendor\Package\ViewHelpers\Widget\Controller;
/**
* This view helper uses the technology of paginate widget but works with arrays
* and the assigned objects don't need the QueryResultInterface.
*
* @author Armin Vieweg <armin@v.ieweg.de>
* @license http://www.gnu.org/licenses/gpl.html GNU General Public License, version 3 or later
*/
@ArminVieweg
ArminVieweg / TYPO3 Extension Box.md
Last active Feb 3, 2019
Generic Vagrantfile for TYPO3 extension development
View TYPO3 Extension Box.md

TYPO3 Extension Box

Version: 1.2.0

URL: bit.ly/t3-extension-box

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
@ArminVieweg
ArminVieweg / halt.bat
Created Mar 11, 2018
Windows Batch file to perform "vagrant halt" on all running machines.
View halt.bat
@echo off
vagrant global-status | awk '/running/{print $1}' | xargs -r -d '\n' -n 1 -- vagrant halt
@ArminVieweg
ArminVieweg / _README.md
Last active Feb 22, 2018
TYPO3 CMS TypoScript Condition to check for existing translation of current page
View _README.md

Usage

[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
[global]

Install

@ArminVieweg
ArminVieweg / purge.sh
Last active Sep 6, 2017 — forked from adrienbrault/purge.sh
Script to reduce VM size before packaging for vagrant
View purge.sh
#!/bin/bash
# Credits to:
# - http://vstone.eu/reducing-vagrant-box-size/
# - https://github.com/mitchellh/vagrant/issues/343
# rm -rf /var/www/html/*
# BE CAREFUL with synched folders!!!
rm -rf ~/.composer/vendor/*
@ArminVieweg
ArminVieweg / Vagrantfile
Created May 26, 2017
Ubuntu Xenial 64Bit Vagrant Box, for Virtual Box. Install scripts for TYPO3 8.7.
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`
#
@ArminVieweg
ArminVieweg / bash.sh
Created May 13, 2017
How to install TYPO3 from commandline
View bash.sh
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
@ArminVieweg
ArminVieweg / facebook-flat-dark-gray.css
Created Feb 24, 2017
Flat Dark Gray - Just color adjustments (for browser extensions like Stylish, https://userstyles.org/)
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;
@ArminVieweg
ArminVieweg / composer.json
Last active Jan 12, 2018
Run local webserver in PHP and open default browser (on windows)
View composer.json
{
"require": {
"symfony/process": "^3.2"
}
}
You can’t perform that action at this time.