Skip to content

Instantly share code, notes, and snippets.

View luizcanet's full-sized avatar

Luiz Henrique Canet Filho luizcanet

  • Rio de Janeiro, Brazil
View GitHub Profile
@luizcanet
luizcanet / drupal.conf
Last active September 3, 2015 01:26
Drupal 8 Nginx Config
server {
listen 80; # redundant in new nginx versions
server_name yourserver.com www.yourserver.com;
root /usr/share/nginx/www/drupal;
access_log off;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
location ~ \..*/.*\.php$ {
return 403;
@luizcanet
luizcanet / bling.js
Created August 26, 2017 17:33 — forked from paulirish/bling.js
bling dot js
/* bling.js */
window.$ = document.querySelectorAll.bind(document);
Node.prototype.on = window.on = function (name, fn) {
this.addEventListener(name, fn);
}
NodeList.prototype.__proto__ = Array.prototype;