Skip to content

Instantly share code, notes, and snippets.

View peterkraume's full-sized avatar

Peter Kraume peterkraume

View GitHub Profile
@waja
waja / php54_deprecated_functions
Last active March 11, 2016 13:18
This shell script could be used to parse DocumentRoots for functions and ini directives problematic with PHP 5.4
#!/bin/bash
#
# PHP 5.4 Deprecated function checker
#
# Version: 0.0.3
#
# Original Author: Michiel Roos <michiel@donationbasedhosting.org>
#
# http://www.php.net/manual/de/migration54.incompatible.php
# http://www.php.net/manual/en/migration54.deprecated.php
<?php
namespace Smichaelsen\MyExt\ViewHelpers;
use TYPO3\CMS\Extbase\Utility\LocalizationUtility;
use TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper;
/**
* Class TimeSpanViewHelper
*
@Mabahe
Mabahe / gist:6038018
Last active December 19, 2015 23:59
Solution for indexing sys_category in ext:solr in TYPO3 with unmerged https://review.typo3.org/#/c/22415/ and unfixed http://forge.typo3.org/issues/44961
plugin.tx_solr.index.queue {
pages.fields {
tags_textM = SOLR_MULTIVALUE
tags_textM {
cObject = CONTENT
cObject {
table = pages
select {
uidInList = this
pidInList = 0
@saschafoerster
saschafoerster / TweetSongViaTweetbot.applescript
Last active January 12, 2018 21:51 — forked from romainbriche/TweetViaTweetbot.applescript
Put this script into ~/Library/iTunes/Scripts and tweet your songs via Tweetbot
-- TweetSongViaTweetbot.applescript
-- Copy title, artist, album and year of playing song from iTunes to Tweetbot
-- Author: Sascha Foerster
-- based on script from: Romain Briche
-- iTunes and Tweetbot active?
tell application "System Events"
if not (exists application process "Tweetbot") or not (exists application process "iTunes") then
display alert "iTunes and Tweetbot required" message "You have to launch iTunes and Tweetbot before executing script"
end if
@beelbrecht
beelbrecht / SimpleSurfDeployScript.php
Created October 14, 2012 20:59
This is an example of a simple deployment script using with the great TYPO3 Surf. You can use this script with TYPO3 Surf to deploy a simple static website.
<?php
// Create a simple workflow based on the predefined 'SimpleWorkflow'.
$workflow = new \TYPO3\Surf\Domain\Model\SimpleWorkflow();
// Define a custom task for smoketesting based on the 'httptest' task.
// Be sure, that the document root of next.example.org points to
// '[deploymentPath]/releases/next'
$smokeTestOptions = array(
'url' => 'http://next.example.org',