Skip to content

Instantly share code, notes, and snippets.

View pfeiferbit's full-sized avatar

Maximilian Pfeifer pfeiferbit

View GitHub Profile
@pfeiferbit
pfeiferbit / cache-redis.php
Created June 9, 2016 12:06
Configure TYPO3 6.2 to use Redis as LRU Cache. Put in typo3conf/conf.d/ and include via typo3conf/AdditionalConfiguration.php or merge array with LocalConfiguration.php.
<?php
/**
* @see: typo3_src/typo3/sysext/core/Configuration/DefaultConfiguration.php
*/
/**
* If phpredis extension exists, set cache backends to redis
*/
if (extension_loaded('redis')) {
@pfeiferbit
pfeiferbit / htclone
Created October 8, 2014 15:11
Klonen eines offenen HTTP-Verzeichnisses mit wget
#!/bin/bash
if [[ $# -ne 1 ]]; then
echo "USAGE: htclone URL"
exit 1
else
wget --no-verbose \
--recursive --no-parent \
--reject "index.htm*" --ignore-case \
"$1"