Skip to content

Instantly share code, notes, and snippets.

View manuelselbach's full-sized avatar

Manuel Selbach manuelselbach

  • Frankfurt am Main
View GitHub Profile
@manuelselbach
manuelselbach / Composer retrieve a list of packages.md
Last active March 15, 2024 12:53
Composer: Get a list of possibly installable packages

Composer: Get a list of possibly installable packages

If you maintain your depending packages in a PHP project with composer (which you really should do!), you may want to get an idea of which packages might be possible to be updated.

composer outdated

This is very easy to do with composer outdated see: https://getcomposer.org/doc/03-cli.md#outdated. This will provide a list of packages in a new version:

@manuelselbach
manuelselbach / README.md
Created December 20, 2017 09:49
Activate SQL formatting in sequalpro
  • 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 / private-fork.md
Last active September 7, 2017 08:00
How to fork to a private gitlab instance

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
@manuelselbach
manuelselbach / HowToAddACustomElementForTheFormEditorOfExtForm.md
Last active February 6, 2024 14:56
How to add a custom element for the formEditor of ext:form

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 / README.md
Last active February 19, 2024 11:41
xdebug docker on macOS with PhpStorm

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 / composer.json
Created July 22, 2016 08:50
Snippet to test a custom branch of a TYPO3 extension in e.g. a fork
{
{
"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",
@manuelselbach
manuelselbach / headerimage.ts
Last active June 17, 2016 10:32
Use TYPO3 7 LTS crop feature in TypoScript
lib.headerimage = COA
lib.headerimage {
10 = FILES
10 {
references {
data = levelmedia:-1, slide
listNum = 0
}
renderObj = IMG_RESOURCE
renderObj {
@manuelselbach
manuelselbach / SomeController.php
Last active March 1, 2016 10:44
Debug Repository Queries in Extbase
<?php
class SomeController
{
/**
* Example method
*/
public function someAction()
{
$results = $this->someRespository->findAll();
@manuelselbach
manuelselbach / git-dry-merge.txt
Created February 19, 2016 09:16
Git DRY merge
git merge --no-commit --no-ff <branch-name>
# To abort merge
git merge --abort
# 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'