Skip to content

Instantly share code, notes, and snippets.

View archinmodi's full-sized avatar
👻
Working from home

Archin Modi archinmodi

👻
Working from home
View GitHub Profile
whatsapp.com
www.whatsapp.com
web.whatsapp.com
w1.web.whatsapp.com
w2.web.whatsapp.com
w3.web.whatsapp.com
w4.web.whatsapp.com
w5.web.whatsapp.com
w6.web.whatsapp.com
w7.web.whatsapp.com
@archinmodi
archinmodi / pihole-instagram.txt
Created November 30, 2022 07:25
This blocklist helps Pi-hole's admin restrict access to instagram and its domains.
0.0.0.0 api.instagram.com
0.0.0.0 black.ish.instagram.com
0.0.0.0 i.instagram.com
0.0.0.0 instagram-shv-01-ams2.fbcdn.net
0.0.0.0 instagram-shv-01-ams3.fbcdn.net
0.0.0.0 instagram-shv-01-ash5.fbcdn.net
0.0.0.0 instagram-shv-01-atl1.fbcdn.net
0.0.0.0 instagram-shv-01-bru2.fbcdn.net
0.0.0.0 instagram-shv-01-cai1.fbcdn.net
0.0.0.0 instagram-shv-01-cdg2.fbcdn.net
@archinmodi
archinmodi / hosts
Created April 19, 2020 07:57 — forked from consti/hosts
/etc/hosts to block shock sites etc.
# This hosts file is brought to you by Dan Pollock and can be found at
# http://someonewhocares.org/hosts/
# You are free to copy and distribute this file for non-commercial uses,
# as long the original URL and attribution is included.
#<localhost>
127.0.0.1 localhost
127.0.0.1 localhost.localdomain
255.255.255.255 broadcasthost
::1 localhost
@archinmodi
archinmodi / slugify.js
Created June 8, 2019 11:55 — forked from mathewbyrne/slugify.js
Javascript Slugify
function slugify(text)
{
return text.toString().toLowerCase()
.replace(/\s+/g, '-') // Replace spaces with -
.replace(/[^\w\-]+/g, '') // Remove all non-word chars
.replace(/\-\-+/g, '-') // Replace multiple - with single -
.replace(/^-+/, '') // Trim - from start of text
.replace(/-+$/, ''); // Trim - from end of text
}