Skip to content

Instantly share code, notes, and snippets.

View dpobel's full-sized avatar

Damien Pobel dpobel

View GitHub Profile
diff --git a/bin/shell/common.sh b/bin/shell/common.sh
index 57149b8..f5330ef 100755
--- a/bin/shell/common.sh
+++ b/bin/shell/common.sh
@@ -1,13 +1,13 @@
#!/bin/bash
-VERSION="5.1.0alpha1"
+VERSION="5.2.0alpha1"
VERSION_RELEASE="0"
<!DOCTYPE html>
<html>
<head>
<script src="http://yui.yahooapis.com/3.10.3/build/yui/yui.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
<pre></pre>
<script>
@dpobel
dpobel / favicon.html
Created December 3, 2013 08:26
favicon meta data generated by http://realfavicongenerator.net
<link rel="apple-touch-icon" sizes="57x57" href="/apple-touch-icon-57x57.png" />
<link rel="apple-touch-icon" sizes="114x114" href="/apple-touch-icon-114x114.png" />
<link rel="apple-touch-icon" sizes="72x72" href="/apple-touch-icon-72x72.png" />
<link rel="apple-touch-icon" sizes="144x144" href="/apple-touch-icon-144x144.png" />
<link rel="apple-touch-icon" sizes="60x60" href="/apple-touch-icon-60x60.png" />
<link rel="apple-touch-icon" sizes="120x120" href="/apple-touch-icon-120x120.png" />
<link rel="apple-touch-icon" sizes="76x76" href="/apple-touch-icon-76x76.png" />
<link rel="apple-touch-icon" sizes="152x152" href="/apple-touch-icon-152x152.png" />
<link rel="icon" type="image/png" href="/favicon-196x196.png" sizes="196x196" />
<link rel="icon" type="image/png" href="/favicon-160x160.png" sizes="160x160" />
@dpobel
dpobel / gist:8007340
Created December 17, 2013 16:04
REST create session issue
# adapte l'URL et ton password
curl 'http://ezpublish5.loc/api/ezp/v2/user/sessions' -H 'Content-Type: application/vnd.ez.api.SessionInput+json' -H 'Accept: application/xml' --data-binary '{"SessionInput":{"login":"admin","password":"ezpublish"}}'
# adapte l'URL, le nom de la session et l'identifiant
curl 'http://ezpublish5.loc/api/ezp/v2/user/users/14' -H 'Accept: application/vnd.ez.api.User+json' -H 'Cookie: eZSESSID=v4cpacftmk0148pg7ferpstkm4'
@dpobel
dpobel / create-rich-text-type.sh
Last active August 29, 2015 14:21
Some resources to use RichText fields in eZ Platform
curl 'http://ez.loc/api/ezp/v2/content/typegroups/1/types?publish=true' -X POST \
-i -d @richtexttesttype.json \
-H 'X-CSRF-Token: m2gcsBYLoJXjzoc4lOL4GmHtYoVxJ5MA-zz-jiXOfoQ' \
-H 'Accept: application/vnd.ez.api.ContentType+json' \
-H 'Cookie: is_logged_in=true; eZSESSID=g8e7539e0ub73et4ujd50ea417' \
-H 'Content-Type: application/vnd.ez.api.ContentTypeCreate+json'
{
"Content": {
"_media-type": "application\/vnd.ez.api.Content+json",
"_href": "\/api\/ezp\/v2\/content\/objects\/14",
"_remoteId": "1bb4fe25487f05527efa8bfd394cecc7",
"_id": 14,
"ContentType": {
"_media-type": "application\/vnd.ez.api.ContentType+json",
"_href": "\/api\/ezp\/v2\/content\/types\/4"
},
Using worker: worker-linux-docker-d7734e2e.prod.travis-ci.org:travis-linux-7
travis_fold:start:system_info
Build system information
Build language: php
Build group: stable
Build dist: precise
Build image provisioning date and time
Thu Feb 5 15:09:33 UTC 2015
Operating System Details
diff --git a/Resources/public/js/views/ez-discoverybarview.js b/Resources/public/js/views/ez-discoverybarview.js
index 0fdea61..fb93e0e 100644
--- a/Resources/public/js/views/ez-discoverybarview.js
+++ b/Resources/public/js/views/ez-discoverybarview.js
@@ -45,19 +45,19 @@ YUI.add('ez-discoverybarview', function (Y) {
new Y.eZ.ButtonActionView({
actionId: "minimizeDiscoveryBar",
disabled: false,
- label: Y.eZ.Translator.trans('tree.minimize', {}, 'editorial'),
+ label: Y.eZ.Translator.trans('discoverybar.minimize', {}, 'editorial'),
<?php
namespace DP\TestCommandsBundle\Command;
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
class CreateRichTextCustomTagCommand extends ContainerAwareCommand
{
Running "copy:alloy-skin" (copy) task
Created 2 directories, copied 3 files
Running "copy:alloy-override" (copy) task
Copied 2 files
Running "shell:alloy-generateskin" (shell) task
[10:17:29] Using gulpfile ~/dev/alloy-editor/gulpfile.js
[10:17:29] Starting 'build-css'...
[10:17:29] Starting 'generate-fonts'...