Skip to content

Instantly share code, notes, and snippets.

Manu Louisor floptwo

Block or report user

Report or block floptwo

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
@floptwo
floptwo / gist:b2fd1010e6a0d0e97c9f3bea3c74c88b
Created Oct 20, 2016
Lets Ecrypt (certbot) add new domain
View gist:b2fd1010e6a0d0e97c9f3bea3c74c88b
/home/www-data/certbot-auto certonly --webroot --agree-tos -w /home/www-data/letsencrypt --expand -d example.com,www.example.com,blog.example.com
@floptwo
floptwo / Envoy.blade.php
Last active Oct 2, 2017
envoy run deploy (no downtime)
View Envoy.blade.php
@setup
$server = 'myserver';
$repository_path = "~/git/myapp.git";
$application_path = "~/webroot/myapp.com/www";
$env = $env ?? 'production';
$branch = $branch ?? 'master';
$branch = ($env == 'production') ? 'production' : $branch;
$shared_dirs = [
@floptwo
floptwo / composer_ovh.md
Last active Oct 2, 2018
Install Composer OVH Mutu
View composer_ovh.md
curl -sS https://getcomposer.org/installer | /usr/local/php7.0/bin/php
mkdir bin
mv composer.phar bin/composer
/usr/local/php7.0/bin/php ~/bin/composer
@floptwo
floptwo / Gruntfile.js
Last active Apr 11, 2016
How I deal with web app assets with Grunt
View Gruntfile.js
require('dotenv').load();
if (! process.env.APP_NAME) {
process.env.APP_NAME = __dirname.split('/')[__dirname.split('/').length - 1];
}
module.exports = function(grunt) {
/*
* Gruntfile
View pikadayFr.js
var i18n = {
previousMonth: 'Mois précédent',
nextMonth: 'Mois prochain',
months: ['Janvier','Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre'],
weekdays: ['Dimanche', 'Lundi', 'Mardi', 'Mercredi', 'Jeudi', 'Vendredi', 'Samedi'],
weekdaysShort: ['Dim', 'Mon', 'Mar', 'Mer', 'Jeu', 'Ven', 'Sam']
};
$('#date1').pikaday({
format: 'dddd ll',
View Code postaux Antilles-Guyane
<?php
// Code postaux des villes des Antilles-Guyane
// Sources :
// http://fr.wikipedia.org/wiki/Liste_des_communes_de_la_Guadeloupe
// http://fr.wikipedia.org/wiki/Liste_des_communes_de_la_Guyane
// http://fr.wikipedia.org/wiki/Liste_des_communes_de_la_Martinique
$villes = [
// Guadeloupe
View php-cli_ovh_mutu.md

PHP-CLI (PHP en ligne de commande) sur les hébergements mutualisés OVH

More complete info here http://cluster015.ovh.net/infos/ (thanks to @42antoine)

(cli)

/usr/local/php5.3/bin/php => PHP 5.3.29 (cli) (built: Nov 21 2017 08:55:07)
/usr/local/php5.4/bin/php => PHP 5.4.45 (cli) (built: Nov 21 2017 08:35:51)
/usr/local/php5.5/bin/php => PHP 5.5.38 (cli) (built: Nov 21 2017 08:46:45)
You can’t perform that action at this time.