Skip to content

Instantly share code, notes, and snippets.

View Metrakit's full-sized avatar
🤘
Coding

Jordane Metrakit

🤘
Coding
View GitHub Profile
@Metrakit
Metrakit / hyvor.html
Created January 12, 2023 07:04
hyvor test
{{-- HYVOR --}}
<hyvor-talk-comments
class="mt-4"
website-id="{{ hyvorId }}"
page-id="{{ pageId }}"
page-language="{{ lang }}"
loading="manual"
></hyvor-talk-comments>
@Metrakit
Metrakit / node-pm2.sh
Created December 7, 2018 16:28
Scripts for setup php-fpm (ready for symfony), apache2, Cerbot, Composer, Cachetool, Node, NPM, pm2
#!/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 / gist:b63c6d835c67a79f5aee75ecfa38fbf6
Created September 2, 2019 13:49
Composer slow => force https
composer config --global repo.packagist composer https://packagist.org
@Metrakit
Metrakit / gist:cfabd90e54d82492da466df0d17fd782
Created May 13, 2019 14:09
Flex items with equal widths
.flex-container
display flex
> .flex-item
flex 1 1 0
https://stackoverflow.com/questions/44543157/how-to-hide-the-google-invisible-recaptcha-badge#answer-53986985
https://developers.google.com/recaptcha/docs/faq
@Metrakit
Metrakit / gist:de937634346771eebe76
Created May 30, 2015 11:10
#1336 - Dynamic SQL is not allowed in stored function or trigger
DELIMITER |
DROP TRIGGER IF EXISTS `vote_update` |
CREATE TRIGGER `vote_update`
AFTER INSERT ON `votes`
FOR EACH ROW
BEGIN
SET @row_day = CONCAT(DAYNAME(NOW()), '_votes');
@Metrakit
Metrakit / snippets.txt
Last active August 29, 2017 07:19
Node Snippets
node --inspect --debug-brk index.js : use Chrome DevTools for a NodeJS script
http://blog.alexellis.io/getting-started-with-docker-on-raspberry-pi/
@Metrakit
Metrakit / ng-animate1.js
Created November 17, 2016 08:42 — forked from FGRibreau/ng-animate1.js
How to configure ng-animate to only work on a specified list of elements
// 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/);
}]);
https://bitsofco.de/bitsofcode-pwa-part-3-push-notifications/
https://firebase.google.com/docs/cloud-messaging/js/send-multiple