Skip to content

Instantly share code, notes, and snippets.

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

hamza72x

❤️‍🩹
View GitHub Profile
@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
@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:
# -------------------------------------------------------------------------
# DOPAMIN DETOX
# -------------------------------------------------------------------------
# TELEGRAM
127.0.0.1 149.154.167.99
127.0.0.1 facebook.com
127.0.0.1 www.facebook.com
127.0.0.1 m.facebook.com
@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 / tasks.json
Created May 21, 2021 03:00
.vscode/tasks.json file for golang
// See http://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
// ${workspaceRoot} the path of the folder opened in VS Code
// ${file} the current opened file
// ${fileBasename} the current opened file's basename
// ${fileDirname} the current opened file's dirname
// ${fileExtname} the current opened file's extension
// ${cwd} the task runner's current working directory on startup
{
"version": "2.0.0",
@hamza72x
hamza72x / launch.json
Created May 21, 2021 02:59
.vscode/launch.json for golang
{
"version": "0.2.0",
"configurations": [
{
"name": "Build & Run",
"type": "go",
"request": "launch",
"mode": "exec",
"preLaunchTask": "go-build", // check tasks.json file
"program": "exec"
@hamza72x
hamza72x / go-quick-wordlist-process.go
Last active May 18, 2021 02:30
Go Quick Wordlist Process
package main
import (
"bufio"
"flag"
"fmt"
"io/ioutil"
"net/http"
"net/url"
"os"