Skip to content

Instantly share code, notes, and snippets.

View software-mariodiana's full-sized avatar

Mario Diana software-mariodiana

View GitHub Profile
@software-mariodiana
software-mariodiana / gist:7217067cd73a3186daec9b3aebaf6e9b
Created January 16, 2021 16:58 — forked from djaiss/gist:85a0ada83e6bca68e41e
Block Twitter/Facebook in your /etc/hosts
# Block Facebook IPv4
127.0.0.1 www.facebook.com
127.0.0.1 facebook.com
127.0.0.1 login.facebook.com
127.0.0.1 www.login.facebook.com
127.0.0.1 fbcdn.net
127.0.0.1 www.fbcdn.net
127.0.0.1 fbcdn.com
127.0.0.1 www.fbcdn.com
127.0.0.1 static.ak.fbcdn.net
@software-mariodiana
software-mariodiana / .git-commit-template.txt
Created March 10, 2016 16:37 — forked from adeekshith/.git-commit-template.txt
A Git commit template to make it easy to enforce a good and uniform commit message style across teams.
# <type>: (If applied, this commit will...) <subject> (Max 50 char)
# |<---- Using a Maximum Of 50 Characters ---->|
# Explain why this change is being made
# |<---- Try To Limit Each Line to a Maximum Of 72 Characters ---->|
# Provide links or keys to any relevant tickets, articles or other resources
# Example: Github issue #23
@software-mariodiana
software-mariodiana / datepicker-focus.js
Created December 12, 2014 14:19 — forked from sinelaw/datepicker-focus.js
Fix IE bug for datepicker reopening. (I am not sure if this works on modern IE versions.)
/**********************************************************
* Hack to fix datepicker issue in IE.
*
* https://gist.github.com/sinelaw/5416130
**********************************************************
*
* After jquery ui datepicker selection, blur and change
* events fire before focus is returned to the input field,
* handling a quirk from IE browsers
*/
@software-mariodiana
software-mariodiana / 0_reuse_code.js
Created June 5, 2014 16:13
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console