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
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 / 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
@manuelselbach
manuelselbach / PersistentObjectConverter.php
Last active Nov 6, 2015
Extbase TypeConverter to fetch e.g. hidden records from persistence. TypeConverter is configurable for each action and can be expanded with other query settings. See example in "YourController.php"
View PersistentObjectConverter.php
<?php
namespace MyVendor\MyExtension\Property\TypeConverters;
/***************************************************************
* Copyright notice
*
* (c) 2014 Manuel Selbach <m.selbach@reply.de>, triplesense reply
*
* All rights reserved
You can’t perform that action at this time.