Skip to content

Instantly share code, notes, and snippets.

View sascha-egerer's full-sized avatar
💭
I may be slow to respond.

Sascha Egerer sascha-egerer

💭
I may be slow to respond.
View GitHub Profile
@sascha-egerer
sascha-egerer / setup.sh
Last active October 24, 2018 11:42 — forked from manuelselbach/setup.sh
Install script for my personal tool chain (Mac OS)
#!/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
@sascha-egerer
sascha-egerer / ExtensionCommandController.php
Created June 25, 2015 08:56
Extension Command to install activated TYPO3 Extensions
<?php
namespace Syzygy\SyzygyBase\Command;
/***************************************************************
* Copyright notice
*
* (c) 2015 Sascha Egerer <sascha.egerer@gmail.com>
* All rights reserved
*
* This script is part of the TYPO3 project. The TYPO3 project is
@sascha-egerer
sascha-egerer / listChildren.php
Created April 24, 2015 16:47
List CMIS Directory Content
<?php
// Install https://github.com/dkd/php-cmis-client over composer
require_once(__DIR__ . '/vendor/autoload.php');
$httpInvoker = new \GuzzleHttp\Client(
array(
'defaults' => array(
'auth' => array(
'admin',
'admin'