Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Jacques Bodin-Hullin jacquesbh

🏠
Working from home
View GitHub Profile
@jacquesbh
jacquesbh / function.sh
Last active Jul 20, 2018
Self signed certificates generation
View function.sh
# To include in your ~/.bash_profile or other
# You can change the `monsieurbiz.com` and the `MONSIEUR BIZ` in the code.
#
# The generated certificates are compatible with Chrome 58 and use complete SAN section.
#
# See https://www.thesslstore.com/blog/security-changes-in-chrome-58/
# And specially https://groups.google.com/a/chromium.org/forum/#!msg/security-dev/IGT2fLJrAeo/csf_1Rh1AwAJ
function selfsignedssl () {
echo "Country? [FR]"
View install-0.0.1.php
<?php
try {
$installer = $this;
$installer->startSetup();
// Create quote table
$tableName = $installer->getTable('iesa_quote/quote');
if (!$installer->tableExists($tableName)) {
$table = $conn->newTable($tableName);
@jacquesbh
jacquesbh / README.md
Last active Oct 25, 2016
Patch for fulltext search issue after upgrading to Magento 1.9.3.0
View README.md
@jacquesbh
jacquesbh / .blackfire.yml
Created Aug 22, 2016
Simple blackfire.yml to get metrics information (Magento 1)
View .blackfire.yml
tests:
"Info: Action cms/index/index":
assertions:
- "metrics.magento1.action.cms_index_index.count"
"Info: Action cms/page/view":
assertions:
- "metrics.magento1.action.cms_page_view.count"
"Info: Action catalog/category/view":
assertions:
- "metrics.magento1.action.catalog_category_view.count"
@jacquesbh
jacquesbh / Use Yubikey (GPG key) for SSH.md
Last active Jul 9, 2021
Use my Yubikey with GPG keys to SSH with a guest computer (OSX or Windows)
View Use Yubikey (GPG key) for SSH.md
@jacquesbh
jacquesbh / git_clean_branches.sh
Created Jun 8, 2016
Clean the branches in git repository according to the remote
View git_clean_branches.sh
#!/bin/bash
# Usage: ./git_clean_branches.sh REPOSITORY_PATH
# 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
@jacquesbh
jacquesbh / core-dump
Created Apr 25, 2016
PHP Error drives nginx into 502
View core-dump
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x0000000000716099 in zend_std_read_property (object=0x7f51ebc73170, member=0x7f51d91be440, type=0, key=0x7f51d91be440) at /build/php5-5.6.19+dfsg/Zend/zend_object_handlers.c:455
455 /build/php5-5.6.19+dfsg/Zend/zend_object_handlers.c: No such file or directory.
View keybase.md

Keybase proof

I hereby claim:

  • I am jacquesbh on github.
  • I am jacquesbh (https://keybase.io/jacquesbh) on keybase.
  • I have a public key whose fingerprint is DEB8 A04A 7CB9 5FD7 57E8 B1A0 5B80 3023 D40A 0F67

To claim this, I am signing this object:

@jacquesbh
jacquesbh / bouh-magento.php
Created Jun 7, 2015
[blog] dette technique
View bouh-magento.php
<?php
if (SOMETHING_TRUE) {
return true;
} else {
return false;
}
View backup.py
@task
def backup():
""" Backup Backup Backup """
if not _has_tag('backup'):
abort("Hum… What are you doing? Dude, this server is not allowed to backup!")