Skip to content

Instantly share code, notes, and snippets.

Benoît Mariaux benoitMariaux

  • Kartable
  • Paris - France
Block or report user

Report or block benoitMariaux

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am benoitmariaux on github.
  • I am benoitmariaux (https://keybase.io/benoitmariaux) on keybase.
  • I have a public key ASBH2UFzVX68F1XAnfS87WqDcDzZ3HcY4WU52O-svY4xUQo

To claim this, I am signing this object:

View gist:8297028
function parse_git_branch {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
function proml {
local BLUE="\[\033[0;34m\]"
local RED="\[\033[0;31m\]"
local LIGHT_RED="\[\033[1;31m\]"
local GREEN="\[\033[0;32m\]"
local LIGHT_GREEN="\[\033[1;32m\]"
local WHITE="\[\033[1;37m\]"
View gist:8236687
UPDATE ecomm_tax SET value = 0.1, name="TVA 10 %" WHERE value = 0.07 OR value = 0.1;
UPDATE ecomm_tax SET value = 0.2, name="TVA 20 %" WHERE value = 0.196 OR value = 0.2;
# Annuler les corrections pour Blondel
UPDATE ecomm_product SET tax_id = 109 WHERE tax_id = 117 AND site_id = 1260;
DELETE FROM ecomm_tax WHERE id = 117 AND site_id = 1260;
#######################################
# Si T.T.C doit rester identique
SET @site := 1260; # Changer cette valeur
View gist:7984635
127.0.0.1 testweb.fr
127.0.0.1 basesite.testweb.fr
127.0.0.1 inscription.testweb.fr admin.testweb.fr
127.0.0.1 old-major.testweb.fr napolean.testweb.fr snowball.testweb.fr squealer.testweb.fr
127.0.0.1 minimus.testweb.fr
View gist:7773105
Symfony > doctrine:migrations:migrate
Application Migrations
WARNING! You are about to execute a database migration that could result in schema changes and data lost. Are you sure you wish to continue? (y/n)y
Migrating up to 20131203165923 from 20131108083116
++ migrating 20131129111111
View gist:7691584
public function testContent()
{
$content = $this->getEm()->getRepository('StoreLocatorBundle:StoreLocatorContent')->findOneBy(array(
'storeLocator' => $this->storeLocator->getId(),
));
$url = $this->getUrl('content_test', array(
'content_id' => $content->getId(),
'site_id' => 1,
'_allow_base_site' => 1,
View gist:7678787
public function testContent()
{
$client = $this->makeClient(true);
$crawler = $client->request('GET', '/site/1/contents');
}
View gist:7586056
<?php
namespace Ylly\Extension\SiteCustomerBundle\Controller;
use Ylly\CmsBundle\Controller\AdminBaseController;
use Ylly\Extension\SiteCustomerBundle\Entity\SiteCustomer;
use Ylly\Extension\SiteCustomerBundle\Form\SiteCustomerForm;
use Ylly\Extension\SiteCustomerBundle\Form\AdminCreateForm;
class AdminController extends AdminBaseController
View gist:7582680
benoit@ubuntu:~/yProx(ghi-1047)$ hub pull-request -i 1047 Yproximite:master -h benoitMariaux:ghi-1047
Error creating pull request: Unprocessable Entity (HTTP 422)
Invalid value for "issue": "1047"
You can’t perform that action at this time.