Skip to content

Instantly share code, notes, and snippets.

View strategio's full-sized avatar
🚲
Working from home

Pierre strategio

🚲
Working from home
View GitHub Profile
@strategio
strategio / wpml-config.xml
Created July 20, 2020 12:38
Temporary config workaround for Enfold builder
<wpml-config>
<gutenberg-blocks>
<gutenberg-block type="core/shortcode" translate="1">
<xpath>/*</xpath>
</gutenberg-block>
</gutenberg-blocks>
</wpml-config>
@strategio
strategio / activate-memcached.sh
Last active May 17, 2024 17:43
Setup memcached in a Local by Flywheel site
#!/usr/bin/env bash
PHP_VERSION=$1
CONF_FOLDER="/conf/php/${PHP_VERSION}/"
PHP_INI="${CONF_FOLDER}php.ini"
apt-get -y update
apt-get -y install memcached
service memcached start
<?php
/**
*
* The challenge is to split an array of integer in various groups,
* trying to have the sum of each group closer to each other...
*
* split-challenge.php
* 04-dec-2014
*
* @package Divider