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 / 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 / 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
@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();