Skip to content

Instantly share code, notes, and snippets.

View sylvainraye's full-sized avatar

Sylvain Rayé sylvainraye

View GitHub Profile
@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
@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 / 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>

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 / 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
#!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"