Skip to content

Instantly share code, notes, and snippets.

View sylvainraye's full-sized avatar

Sylvain Rayé sylvainraye

View GitHub Profile
#!groovy
import groovy.json.JsonOutput
import java.util.Optional
import hudson.tasks.test.AbstractTestResultAction
import hudson.model.Actionable
import hudson.tasks.junit.CaseResult
def speedUp = '--configure-on-demand --daemon --parallel'
def nebulaReleaseScope = (env.GIT_BRANCH == 'origin/master') ? '' : "-Prelease.scope=patch"
@sylvainraye
sylvainraye / index.php
Created November 26, 2016 21:59
XHProf for index.php for Magento 1.x
<?php
/**
* Magento Enterprise Edition
*
* NOTICE OF LICENSE
*
* This source file is subject to the Magento Enterprise Edition End User License Agreement
* that is bundled with this package in the file LICENSE_EE.txt.
* It is also available through the world-wide-web at this URL:
* http://www.magento.com/license/enterprise-edition

Keybase proof

I hereby claim:

  • I am sylvainraye on github.
  • I am sylvainraye (https://keybase.io/sylvainraye) on keybase.
  • I have a public key ASA3I9U_G6RXB9iv4F-P9LRZTNnUK0vaob-oWfETtSltcAo

To claim this, I am signing this object:

@sylvainraye
sylvainraye / gist:bd27d4767917542575e5
Created September 23, 2014 15:05
Mailcatcher Plist for OSX
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>diglin.mailcatcher</string>
<key>ProgramArguments</key>
<array>
<string>sh</string>
<string>-i</string>
@sylvainraye
sylvainraye / Observer.php
Created June 24, 2014 20:33
Display the product of a category only if this one has a unique product in Magento
/**
* Display the product of a category only if this one has a unique product
*
* Event
* - catalog_controller_category_init_after
*
* @param Varien_Event_Observer $observer
* @return mixed
*/
public function initSingleProductRedirect(Varien_Event_Observer $observer)
@sylvainraye
sylvainraye / Authentication.php
Last active April 13, 2017 08:33
WSSE Authentification for OroPlatform REST API
<?php
/**
* Diglin GmbH - Switzerland
*
* User: sylvainraye
* Date: 22.03.14
* Time: 17:11
*
* @category orocrm
* @package Diglin_Oro
<?php
namespace Linkofy\CommonBundle\Menu;
use Knp\Menu\FactoryInterface;
use Symfony\Component\DependencyInjection\ContainerAware;
class Builder extends ContainerAware
{
public function mainMenu(FactoryInterface $factory, array $options)
@sylvainraye
sylvainraye / SoapClient.php
Created October 17, 2013 11:23
SOAP Client debugging with Zend Debugger
<?php
/**
* Class based on the blog article of Maxune.com
*
* @category Diglin
* @package Diglin_Debug
* @copyright Copyright (c) 2013 Diglin GmbH - Switzerland
* @license none
* @version 1.0.0
* @link http://moxune.com/blog/2011/09/debug-soap-server-zend-studio/