Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Benoît Mariaux benoitMariaux

🏠
Working from home
  • Saint-Gobain
  • Paris - France
View GitHub Profile
View GiveMeMySprints.py
# Give me next n sprints for JIRA
import datetime
# First, edit here
first_sprint = 'Sprint 9: 0210-1610'
current_sprint_number = 9
current_sprint_start = datetime.datetime(2019, 10, 2)
current_sprint_end = datetime.datetime(2019, 10, 16)
######################################################
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
You can’t perform that action at this time.