Skip to content

Instantly share code, notes, and snippets.

Avatar
🤘
Coding

Jordane Metrakit

🤘
Coding
View GitHub Profile
View gist:b63c6d835c67a79f5aee75ecfa38fbf6
composer config --global repo.packagist composer https://packagist.org
View gist:cfabd90e54d82492da466df0d17fd782
.flex-container
display flex
> .flex-item
flex 1 1 0
View gist:ec04ea204c5107b48ed7584756c9a79f
https://stackoverflow.com/questions/44543157/how-to-hide-the-google-invisible-recaptcha-badge#answer-53986985
https://developers.google.com/recaptcha/docs/faq
@Metrakit
Metrakit / node-pm2.sh
Created Dec 7, 2018
Scripts for setup php-fpm (ready for symfony), apache2, Cerbot, Composer, Cachetool, Node, NPM, pm2
View node-pm2.sh
#!/bin/sh
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 https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
node -v
@Metrakit
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
http://blog.alexellis.io/getting-started-with-docker-on-raspberry-pi/
@Metrakit
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.
$animateProvider.classNameFilter(/bi-animate/);
}]);
View gist:058f006700458d2726dc3e71d91f1d45
https://bitsofco.de/bitsofcode-pwa-part-3-push-notifications/
https://firebase.google.com/docs/cloud-messaging/js/send-multiple
View gist:e828ae8d00651271262477aed3a04834
<?php
$public_key = "-----BEGIN PUBLIC KEY-----
MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCqGKukO1De7zhZj6+H0qtjTkVxwTCpvKe4eCZ0
FPqri0cb2JZfXJ/DgYSF6vUpwmJG8wVQZKjeGcjDOL5UlsuusFncCzWBQ7RKNUSesmQRMSGkVb1/
3j+skZ6UtW+5u09lHNsj6tQ51s1SPrCBkedbNf0Tp0GbMJDyR4e9T04ZZwIDAQAB
-----END PUBLIC KEY-----";
$test = openssl_pkey_get_public($public_key);
View gist:6ebdd738ff829e3bfea3ec493d9afd2c
http://www.lottejackson.com/learning/supports-will-change-your-life
You can’t perform that action at this time.