Skip to content

Instantly share code, notes, and snippets.

Working from home

Jacques Bodin-Hullin jacquesbh

Working from home
View GitHub Profile
jacquesbh / Use Yubikey (GPG key) for
Last active Nov 12, 2022
Use my Yubikey with GPG keys to SSH with a guest computer (OSX or Windows)
View Use Yubikey (GPG key) for
jacquesbh / pre-commit
Created Jul 6, 2012
Git pre-commit hook by Boris Guéry, updated by me
View pre-commit
# Author: Boris Guéry <>
# Add or remove keywords here
# Add extensions to check here
jacquesbh / firewall
Last active Feb 18, 2021
/etc/init.d/firewall Iptables firewall
View firewall
# Provides: firewall
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Firewall
# Description: Configure all iptables rules.
jacquesbh /
Last active Jul 20, 2018
Self signed certificates generation
# To include in your ~/.bash_profile or other
# You can change the `` and the `MONSIEUR BIZ` in the code.
# The generated certificates are compatible with Chrome 58 and use complete SAN section.
# See
# And specially!msg/security-dev/IGT2fLJrAeo/csf_1Rh1AwAJ
function selfsignedssl () {
echo "Country? [FR]"
jacquesbh / decorate_method.php
Created Jul 4, 2012
Magento - Grid column decorator for 'actions' depending on row
View decorate_method.php
* Decorate the actions column
* @access public
* @return string
public function decorateActionColumn($value, $row, $column, $isExport)
$links = array();
View install-0.0.1.php
try {
$installer = $this;
// Create quote table
$tableName = $installer->getTable('iesa_quote/quote');
if (!$installer->tableExists($tableName)) {
$table = $conn->newTable($tableName);
jacquesbh /
Last active Oct 25, 2016
Patch for fulltext search issue after upgrading to Magento

How to apply?

Download the patch and put it in your local environment in the root magento directory.

Run this command in your Main magento directory: patch -p0 < fulltext-search.patch.

Then remove the fulltext-search.patch file and commit the changes.

Thanks to .

jacquesbh / .blackfire.yml
Created Aug 22, 2016
Simple blackfire.yml to get metrics information (Magento 1)
View .blackfire.yml
"Info: Action cms/index/index":
- "metrics.magento1.action.cms_index_index.count"
"Info: Action cms/page/view":
- "metrics.magento1.action.cms_page_view.count"
"Info: Action catalog/category/view":
- "metrics.magento1.action.catalog_category_view.count"
View netbeans_magento_snippets.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE codetemplates PUBLIC "-//NetBeans//DTD Editor Code Templates settings 1.0//EN" "">
<codetemplate abbreviation="gsc" xml:space="preserve">
<codetemplate abbreviation="model" xml:space="preserve">
<codetemplate abbreviation="single" xml:space="preserve">
jacquesbh /
Created Jun 8, 2016
Clean the branches in git repository according to the remote
# Go to the directory
cd "$1"
# Delete branches, but keep develop, master and the current branch
git remote prune origin
git branch --merged | grep -v "\*" | grep -v "master" | grep -v "develop" | xargs -n 1 git branch -d