Skip to content

Instantly share code, notes, and snippets.


Jordane Metrakit

View GitHub Profile
View gist:b63c6d835c67a79f5aee75ecfa38fbf6
composer config --global repo.packagist composer
View gist:cfabd90e54d82492da466df0d17fd782
display flex
> .flex-item
flex 1 1 0
View gist:ec04ea204c5107b48ed7584756c9a79f
Metrakit /
Created Dec 7, 2018
Scripts for setup php-fpm (ready for symfony), apache2, Cerbot, Composer, Cachetool, Node, NPM, pm2
echo "This script is going to setup Node, NPM, pm2"
echo "WARNING: The sudouser password will be prompted sometimes !"
echo "==> Setup Node/NPM"
curl -sL | sudo -E bash -
sudo apt-get install -y nodejs
node -v
Metrakit / snippets.txt
Last active Aug 29, 2017
Node Snippets
View snippets.txt
node --inspect --debug-brk index.js : use Chrome DevTools for a NodeJS script
View gist:3c3a7fb24361f664afc7720a91640cb1
Metrakit / ng-animate1.js
Created Nov 17, 2016 — forked from FGRibreau/ng-animate1.js
How to configure ng-animate to only work on a specified list of elements
View ng-animate1.js
// First configure $animateProvider
angular.module('MyApp', ['ngAnimate']).config(['$animateProvider', function($animateProvider){
// restrict animation to elements with the bi-animate css class with a regexp.
// note: "bi-*" is our css namespace at @Bringr.
View gist:058f006700458d2726dc3e71d91f1d45
View gist:e828ae8d00651271262477aed3a04834
$public_key = "-----BEGIN PUBLIC KEY-----
-----END PUBLIC KEY-----";
$test = openssl_pkey_get_public($public_key);
View gist:6ebdd738ff829e3bfea3ec493d9afd2c
You can’t perform that action at this time.