Skip to content

Instantly share code, notes, and snippets.

View bdunogier's full-sized avatar

Bertrand Dunogier bdunogier

View GitHub Profile
@bdunogier
bdunogier / request.txt
Created September 24, 2018 08:56
eZ Platform GraphQL query with html rendering of a landing page field
{
# "Places & tastes" landing page on ezplatform-ee-demo
content(id: 236) {
fields {
value {
html
}
}
}
}
function md2word () {
pandoc -o $2 -f markdown -t docx $1
}
function word2md () {
pandoc -o $2 -f docx -t markdown $1
}
@bdunogier
bdunogier / eZ Publish 5 Legacy bundle.md
Created January 22, 2014 09:43
Legacy extension bundle
@bdunogier
bdunogier / politoscope-comparaison-mentions-media.md
Created April 20, 2017 09:08
Utilisation des données du politoscope (https://presidentielle2017.politoscope.org/dashboard) afin de comparer les mentions mediatiques des candidats.

Themes

  • emploi
  • economie
  • democratie
  • recherche_et_education
  • immigration_et_multiculturalisme
  • sante
  • ecologie
  • politique_energetique
  • politique_etrangere
@bdunogier
bdunogier / ezplatform_developer.dic
Last active March 16, 2017 11:44
Words added overtime to my PhpStorm spelling dictionary as an eZ Platform Core developer
behat
ezimage
ezplatform
ezpublish
ezrepoforms
ezsystems
fieldtypes
initializable
navigationhub
pagelayout
<?php
/**
* @copyright Copyright (C) eZ Systems AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/
namespace EzSystems\RepositoryFormsBundle\DependencyInjection\Compiler;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
@bdunogier
bdunogier / Howto-eZ-Platform-In-Context-with-Crowdin.md
Last active December 16, 2016 14:54
Translating eZ Platform in-context using Crowdin.com

Crowdin In-Context integration

This guide explains how to translate the eZ Platform UI in-context, within the application itself. It uses crowdin.com, and requires eZ Platform 1.7.0, released on december 15th.

  • Edit vendor/willdurand/js-translation-bundle/Bazinga/Bundle/JsTranslationBundle/Controller/Controller.php:198, change {2} to {3}.
  • Download the ezplatform-ach-ug-translations-tgz file from this gist.
  • Unzip it from app/Resources/translations. Create the directory if it doesn't exist. You should have three new directories: EzPublishCoreBundle, EzSystemsPlatformUIBundle and EzSystemsRepositoryFormsBundle.
  • Edit vendor/ezsystems/platform-ui-bundle/Resources/views/PlatformUI/shell.html.twig, and add this block right before
@bdunogier
bdunogier / createcontent.sh
Created October 19, 2012 13:42
A simple bash script that creates content over the eZ Publish 5 REST API v2 (http://github.com/ezsystems/ezpublish-community)
# Create & publish an ezdemo article using the eZ Publish 5 REST API v2
# Notes:
# - this script requires http ie, which can be found at https://github.com/jkbr/httpie
# - it temporarily depends on a few temporary fixes, available in my fork: https://github.com/bdunogier/ezp-next/tree/tmp-rest-fixes
# - it is NOT well written, and I suck at shell scripting. Feel free to submit improvements to the GIST ;)
#
# Author: Bertrand Dunogier <http://share.ez.no/community/profile>, twitter @bdunogier, http://gplus.to/BertrandDunogier
# Usage: run it
REST_URI="http://vm.ezpublish5/api/ezp/v2"
<?xml version="1.0" encoding="UTF-8"?>
<ErrorMessage media-type="application/vnd.ez.api.ErrorMessage+xml">
<errorCode>500</errorCode>
<errorMessage>Internal Server Error</errorMessage>
<errorDescription>Warning: trim() expects parameter 1 to be string, array given</errorDescription>
<trace>#0 [internal function]: Symfony\Component\Debug\ErrorHandler-&gt;handleError(2, 'trim() expects ...', '/Users/bdunogie...', 107, Array)
#1 /Users/bdunogier/ezplatform/vendor/tedivm/stash/src/Stash/Pool.php(107): trim(Array, '/')
#2 /Users/bdunogier/ezplatform/vendor/tedivm/stash-bundle/Service/CacheService.php(62): Stash\Pool-&gt;getItem(Array)
#3 /Users/bdunogier/ezplatform/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Persistence/Cache/CacheServiceDecorator.php(60): Tedivm\StashBundle\Service\CacheService-&gt;getItem(Array)
#4 /Users/bdunogier/ezplatform/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Persistence/Cache/UserHandler.php(196): eZ\Publish\Core\Persistence\Cache\CacheServiceDecorator-&gt;getItem('use
@bdunogier
bdunogier / release_process.md
Created January 20, 2016 22:10
Wallabag release process doc

Definition

A release is mostly a git tag of http://github.com/wallabag/wallabag, following semantic versioning. The last release at the time of writing is 2.0.0-alpha.2, from the v2 branch.

Creating a release tag

In order to create a release tag, it is usually easier to create a release branch: