Skip to content

Instantly share code, notes, and snippets.

@illvart
illvart / hosts
Last active July 28, 2025 13:21
Hosts file for Facebook, Instagram and Whatsapp
## Unblock Facebook, Instagram, Whatsapp
## Original source https://linktr.ee/illvart
179.60.192.36 facebook.com
157.240.2.35 facebook.com
179.60.192.36 www.facebook.com
157.240.2.35 www.facebook.com
179.60.192.36 fb.com
157.240.20.35 fb.com
157.240.194.18 mbasic.facebook.com
@illvart
illvart / facebook-unblock.md
Last active March 18, 2024 03:14
How to unblock Facebook, Instagram, Whatsapp via hosts

How to unblock Facebook, Instagram, Whatsapp via hosts

Unblock Facebook includes Facebook Analytics, and Facebook for Developers.

The hosts file location for:

Linux and macOS

/etc/hosts

Windows

c:\Windows\System32\Drivers\etc\hosts

@illvart
illvart / systemd-manager.md
Last active March 9, 2020 11:40
Install systemd-manager for Ubuntu/Arch Linux

Screenshot_2019-05-20_02-46-48

systemd-manager for ubuntu:

lsb_release -a

Example output:

Distributor ID: Ubuntu
@illvart
illvart / meta-schema-custom-tag.njk
Created May 9, 2019 17:21
Meta schema JSON on Eleventy by nunjucks include, set, filter, custom tags.
<script type="application/ld+json">
{% minifyJson %}
{
"@context": "https://schema.org",
"@type": "WebSite",
"url": "{{ metadata.url }}",
"potentialAction": {
"@type": "SearchAction",
"target": "{{ metadata.url }}/search?q={search_term_string}",
"query-input": "required name=search_term_string"
@illvart
illvart / meta-seo.njk
Last active March 10, 2020 22:10
My Eleventy project meta-seo.njk
{% if permalink == "/" %}
{% set canonicalUrl = metadata.canonicalUrl %}
{% else %}
{% set canonicalUrl = metadata.canonicalUrl + page.url %}
{% endif %}
<link rel="canonical" href="{{ canonicalUrl }}">
{# Social meta #}
{% if section == "articles" %}
<meta property="og:type" content="blog">
{% else %}
@illvart
illvart / era-material-append-script-by-json.html
Last active May 4, 2019 13:50
Era Material: append script by JSON - The Keyword | Google: add support module and nomodule
<div id="base-scripts" data-scripts='[
{
"url": "/static/main.mjs",
"options": {
"async": false,
"defer": false,
"type": "module"
"nomodule": false
}
},
var json1 = '{"enable": true, "emotion": ":)"}';
var json2 = '{"enable": "false", "emotion": ":)"}';
var obj1 = JSON.parse(json1);
var obj2 = JSON.parse(json2);
console.log(obj1.enable);
console.log(obj1.emotion);
console.log(obj2.enable);
@illvart
illvart / gist:dbd89605972d6bcdb77a8b704213d01b
Created April 23, 2019 13:34 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: πŸ˜„ :smile: πŸ˜† :laughing:
😊 :blush: πŸ˜ƒ :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
πŸ˜† :satisfied: 😁 :grin: πŸ˜‰ :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: πŸ˜€ :grinning:
πŸ˜— :kissing: πŸ˜™ :kissing_smiling_eyes: πŸ˜› :stuck_out_tongue:
___ ___ ___ ___ ___ ___
___ /\__\ /\__\ /\__\ /\ \ /\ \ /\ \
/\ \ /:/ / /:/ / /:/ / /::\ \ /::\ \ \:\ \
\:\ \ /:/ / /:/ / /:/ / /:/\:\ \ /:/\:\ \ \:\ \
/::\__\ /:/ / /:/ / /:/__/ ___ /::\~\:\ \ /::\~\:\ \ /::\ \
__/:/\/__/ /:/__/ /:/__/ |:| | /\__\ /:/\:\ \:\__\ /:/\:\ \:\__\ /:/\:\__\
/\/:/ / \:\ \ \:\ \ |:| |/:/ / \/__\:\/:/ / \/_|::\/:/ / /:/ \/__/
\::/__/ \:\ \ \:\ \ |:|__/:/ / \::/ / |:|::/ / /:/ /
\:\__\ \:\ \ \:\ \ \::::/__/ /:/ / |:|\/__/ \/__/
@illvart
illvart / svg-classes.js
Created January 11, 2019 15:41 — forked from branneman/svg-classes.js
SVG β€” hasClass, addClass, removeClass, toggleClass
//
// SVG β€” hasClass, addClass, removeClass, toggleClass
// Source:
// https://gist.github.com/branneman/8436956
// Taken and adapted from:
// http://toddmotto.com/hacking-svg-traversing-with-ease-addclass-removeclass-toggleclass-functions/
//
if (SVGElement && SVGElement.prototype) {