Skip to content

Instantly share code, notes, and snippets.

View mmerian's full-sized avatar

Maxime Mérian mmerian

View GitHub Profile

Keybase proof

I hereby claim:

  • I am mmerian on github.
  • I am mmerian (https://keybase.io/mmerian) on keybase.
  • I have a public key whose fingerprint is 3032 18FA 1448 7105 110B 4B9A 41E5 35B0 BB98 1B1B

To claim this, I am signing this object:

@mmerian
mmerian / StartSSL.md
Last active August 29, 2015 14:10 — forked from mgedmin/StartSSL.md

How to get a free StartSSL.com SSL certificate

I'm writing this up from memory, so errors may appear.

Start

  1. Go to http://www.startssl.com/
  2. Click on 'Control Panel'
  3. Click 'Express Lane'
@mmerian
mmerian / 0_reuse_code.js
Created May 20, 2014 13:27
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@mmerian
mmerian / slugify.php
Created February 10, 2014 15:15
slugify string
<?php
function slugify($str)
{
$str = htmlentities($str, ENT_NOQUOTES, 'UTF-8');
$str = preg_replace('#&([A-za-z])(?:acute|cedil|circ|grave|orn|ring|slash|th|tilde|uml);#', '\1', $str);
$str = preg_replace('#&([A-za-z]{2})(?:lig);#', '\1', $str); // pour les ligatures e.g. '&oelig;'
$str = preg_replace('#&[^;]+;#', '', $str); // supprime les autres caractères
$str = preg_replace('/[^a-z0-9]+/', '-', strtolower($str));