Skip to content

Instantly share code, notes, and snippets.

View jeroendesloovere's full-sized avatar

Jeroen Desloovere jeroendesloovere

View GitHub Profile
@jeroendesloovere
jeroendesloovere / install-redis.md
Last active November 27, 2023 09:58
install redis

Redis Installation

1. Download and install Redis

Copy/paste the following code block into your terminal.

# Downloading latest
wget http://download.redis.io/redis-stable.tar.gz
@jeroendesloovere
jeroendesloovere / integrating-redis-in-fork-cms.md
Last active October 3, 2016 14:20
How to integrate Redis in Fork CMS

How to integrate Redis in Fork CMS

What is Redis?

Redis is an open source (BSD licensed), in-memory data structure store, used as database, cache and message broker. It supports data structures such as strings, hashes, lists, sets, sorted sets with range queries, bitmaps, hyperloglogs and geospatial indexes with radius queries. Redis has built-in replication, Lua scripting, LRU eviction, transactions and different levels of on-disk persistence, and provides high availability via Redis Sentinel and automatic partitioning with Redis Cluster.

Why did we use Redis in Fork CMS?

Our situation

@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.

@jeroendesloovere
jeroendesloovere / ModuleInstallerShizzle.php
Last active July 20, 2016 14:45
Fork CMS ExtensionsBundle
<?php
namespace ForkCMS\Bundle\ExtensionsBundle\Installer\ModuleInstaller;
/**
* Module Installer
*/
class ModuleInstaller
{
/**

Doctrine Translatable

With Translatable you can translate the fields you like in your Doctrine Entity. Check out other Doctrine Extensions

  • Official Doctrine Extensions installation guide here.
  • Official Doctrine Translatable documentation over here.

Installation

composer.json

@jeroendesloovere
jeroendesloovere / fork-cms-road-map.md
Last active March 17, 2016 10:22
Fork CMS Road Map (non-official)

Non-official Fork CMS Road Map

3.10 [ROAD BLOCK]

  • Integrating new Fork CMS Theme in Backend. @katrijn

Converting modules to Doctrine

  • Integrating Doctrine into Core. @jeroendesloovere
@jeroendesloovere
jeroendesloovere / SYLIUS-MAC-MAMP-PRO-INSTALLATION-README.md
Last active June 28, 2023 08:39
Sylius + MAC + MAMP PRO installation

Sylius

Usage

Installation

composer create-project -s dev sylius/sylius-standard sylius

Which installs the sylius standard in a new folder, named sylius

@jeroendesloovere
jeroendesloovere / gist:2b86d8a5bca19101f26d
Created September 16, 2015 07:32
Fork CMS device detection
# Fork CMS Device detection
[PR: Added Device Detection #321](https://github.com/forkcms/forkcms/pull/321)

Patching analytics

  • Verwijder de oude analytics module
rm -rf src/Backend/Modules/Analytics
rm library/external/google_analytics.php
  • Verwijder restanten in de DB
<?php
namespace Blog\Entity;
use Doctrine\ORM\EntityRepository;
/**
* PostRepository
*
* This class was generated by the Doctrine ORM. Add your own custom