Skip to content

Instantly share code, notes, and snippets.

View jeroendesloovere's full-sized avatar

Jeroen Desloovere jeroendesloovere

View GitHub Profile
@jeroendesloovere
jeroendesloovere / translation_helper.php
Created March 13, 2018 09:32 — forked from ohvitorino/translation_helper.php
ForkCMS translation helper.
<?php
$document = new DOMDocument();
$document->load($argv[1]);
$existingTranslations = [];
function getUserInput() {
return readline("\nTranslation PT: ");
}
@jeroendesloovere
jeroendesloovere / info.md
Created September 5, 2016 09:01 — forked from weotch/info.md
Adding Memcache and Redis to MAMP 2.1.3 (PHP 5.3.20)

Adding Memcache and Redis to MAMP 2.1.3 (PHP 5.3.20)

Not sure how long this will be good for, but here's an easy path to adding Memached and Redis support to MAMP 2.1.3. It depends on the fact that, right now, the Homebrew PHP project and MAMP are using the same versions of PHP. This assumes you have Homebrew and MAMP 2.1.3 installed. I'll just be describing the process for PHP 5.3.20.

  1. Make sure you've tapped homebrew-dupes and homebrew-php with: brew tap homebrew/dupes and brew tap josegonzalez/php.

  2. Install memcached and redis for PHP Homebrew: brew install php53-memcache and brew install php53-redis.

  3. Go into MAMP and navigate to: File menu > Edit Template > PHP > PHP 5.3.2.0 php.ini.

Patching analytics

  • Verwijder de oude analytics module
rm -rf src/Backend/Modules/Analytics
rm library/external/google_analytics.php
  • Verwijder restanten in de DB