Skip to content

Instantly share code, notes, and snippets.

Manuel Selbach manuelselbach

Block or report user

Report or block manuelselbach

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
@manuelselbach
manuelselbach / README.md
Last active Jan 4, 2020
xdebug docker on macOS with PhpStorm
View README.md

Use xdebug with docker on macOS and PhpStorm

To use xdebug with macOS and docker is quite, let´s call it tricky ;)

The following steps need to be proceed to get it working:

  1. use the config from the xdebug.ini wihtin your docker web container. Important: set remote_connect_back to off

UPDATE

@manuelselbach
manuelselbach / HowToAddACustomElementForTheFormEditorOfExtForm.md
Last active Dec 27, 2019
How to add a custom element for the formEditor of ext:form
View HowToAddACustomElementForTheFormEditorOfExtForm.md

EXT:form How to add a custom form element

If you like to add a custom form element, please follow these steps. For detailed information and documentation of ext:form please visit the official documentation: https://docs.typo3.org/typo3cms/extensions/form/Index.html

Basics

First of all create a new extension, which will hold all the configuration, templates, etc.

@manuelselbach
manuelselbach / setup.sh
Last active Sep 14, 2019
Install script for my personal tool chain (Mac OS)
View setup.sh
#!/bin/bash
set -e
# insert a line to a file if the line does not already exist
# - first parameter is the file to insert the line
# - second parameter is the line to insert. It'll only be inserted if not already exists
# - third parameter is optional. This will override the search behavior.
# Instead of searching for the line of parameter 2 this term is used.
function insertLineIfNotExists {
FILE=$1
View .zshrc
# ENVs
##############################################
export HOMEBREW_CASK_OPTS=\"$HOMEBREW_CASK_OPTS --appdir=/Applications\"
export NO_AUTO_PERMISSION_FIX=1
# grep settings
##############################################
export GREP_OPTIONS='--color=always'
export GREP_COLOR='1;31;40'
@manuelselbach
manuelselbach / composer.json
Created Jul 22, 2016
Snippet to test a custom branch of a TYPO3 extension in e.g. a fork
View composer.json
{
{
"type":"package",
"package": {
"name": "placeholder/for-namespace",
"type": "typo3-cms-extension",
"version":"dev-bugfix",
"source": {
"url": "https://github.com/your-account/your-repository.git",
"type": "git",
View install_prezto.sh
#!/bin/zsh
# go to zsh first
git clone --recursive https://github.com/sorin-ionescu/prezto.git "${ZDOTDIR:-$HOME}/.zprezto"
# if not works out of the box uncomment this
# mv .zshrc .zshrc_bak
setopt EXTENDED_GLOB
@manuelselbach
manuelselbach / README.md
Created Dec 20, 2017
Activate SQL formatting in sequalpro
View README.md
  • Open the bundle editor: Bundles > Bundle Editor > Input Field > Format > Format SQL
  • Search for clientid and replace the <input/> value attribute with dpriver-9094-8133-2031
  • You can now format code through ctrl + option + command + T

Here is how the input tag should look like:

<input type="hidden" name="clientid" value="dpriver-9094-8133-2031" />
@manuelselbach
manuelselbach / ContentElementWizard.txt
Last active Dec 11, 2017
Register Plugin in new Element Wizard made simple! The file "ContentElementWizard.txt" should be located under "[extension_key]/Configuration/TSconfig/ContentElementWizard.txt" for this example. All the TYPO3 standard plugin registration stuff has also to be done. Have fun!
View ContentElementWizard.txt
mod.wizards.newContentElement.wizardItems.plugins {
elements {
[extension_key] {
icon = ../typo3conf/ext/[extension_key]/Resources/Public/Icons/icon.png
title = LLL:EXT:[extension_key]/Resources/Private/Language/locallang_be.xlf:plugin_title
description = LLL:EXT:[extension_key]/Resources/Private/Language/locallang_be.xlf:plugin_description
tt_content_defValues {
CType = list
list_type = [extensionkey]_[pluginname]
}
@manuelselbach
manuelselbach / private-fork.md
Last active Sep 7, 2017
How to fork to a private gitlab instance
View private-fork.md

Theory:

your git repository can have more than one remote server; In this case we want to have two:

one for our private repository on gitlab (will be the default one, called origin) one to be connected to the source repo on github, to be able to pull new changes (will be called upstream) How to make a private fork from github to gitlab

# 1. clone the github project in your workspace
View git-dry-merge.txt
git merge --no-commit --no-ff <branch-name>
# To abort merge
git merge --abort
You can’t perform that action at this time.