Skip to content

Instantly share code, notes, and snippets.

View Ademking's full-sized avatar
🍪
Eating Cookies

Adem Kouki Ademking

🍪
Eating Cookies
View GitHub Profile
#############################
##### Magic script v1.01 ####
#############################
# Ask for elevated permissions if required
If (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]"Administrator")) {
Start-Process powershell.exe "-NoProfile -ExecutionPolicy Bypass -File `"$PSCommandPath`"" -Verb RunAs
Exit
}
@elmoiv
elmoiv / facebook_user_id.py
Last active November 5, 2020 09:55
Getting ID of any facebook user without scraping.
import re, urllib.request
query = input()
rgx = re.split(r'((http|https):\/\/)?(www\.)?(facebook|fb)\.com\/([.a-z0-9]+)', query.lower())
name = rgx[0] if len(rgx) == 1 else rgx[5]
redirected = urllib.request.urlopen(f'https://m.me/{name}').geturl().split('%2F')
@Ademking
Ademking / README.md
Last active March 17, 2025 13:15
How to install acunetix (linux)
@Ademking
Ademking / README.md
Last active December 23, 2024 16:44
Lean Javascript for FREE