Skip to content

Instantly share code, notes, and snippets.

View UNVISLATE's full-sized avatar
:electron:
Стоит ли сознание того, чтобы в него приходить?

UNVISLATE UNVISLATE

:electron:
Стоит ли сознание того, чтобы в него приходить?
View GitHub Profile
@UNVISLATE
UNVISLATE / tg_validator.py
Last active October 15, 2025 21:44
Python Telegram initData validator - no dependencies, just works! :)
import hashlib
import hmac
import json
from functools import lru_cache
from operator import itemgetter
from time import time
from urllib.parse import parse_qsl, parse_qs
class TelegramInitDataValidator:
@UNVISLATE
UNVISLATE / async_logging.py
Last active March 7, 2025 18:47
A simple async wrapper for logging that processes calls in a separate thread so as not to block the main thread.
import logging
import asyncio
from concurrent.futures import ThreadPoolExecutor
from enum import Enum
from queue import Queue
import threading
class LogLvlEnum(Enum):
DEBUG = "debug"
@UNVISLATE
UNVISLATE / WinProtectDisable.ps1
Last active March 3, 2025 14:37
Disabling security mechanisms for windows 10/11
<#
Script name: ProtectDisable.ps1
Version: 3.0
Author: Andrey [GitHub](https://github.com/UNVISLATE)
Create date: 01.03.2025
Important: Disabling security mechanisms can make the system vulnerable. Use this script at your own risk.
#>
# === Проверка запуска с правами администратора ===
@UNVISLATE
UNVISLATE / AutoStartClear.ps1
Created February 8, 2025 18:28
Cleaning up autorun programs for win10/11
<#
Script name: AutoStartClear.ps1
Version: 1.0
Author: Andrey [GitHub](https://github.com/UNVISLATE)
Create date: 07.02.2025
#>
# === Проверка запуска от имени администратора ===
if (-not ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) {
Write-Host "The script is not running as an administrator. Restart with elevated rights..." -ForegroundColor Red
@UNVISLATE
UNVISLATE / ProtectDisable.ps1
Last active March 7, 2025 10:37
Disabling security mechanisms for windows 10 (not tested on windows 11) (Updated script: https://gist.github.com/UNVISLATE/6cdf603eba8a728516a3645553d7f360#file-winprotectdisable-ps1)
<#
Script name: ProtectDisable.ps1
Version: 1.0
Author: Andrey [GitHub](https://github.com/UNVISLATE)
Create date: 04.02.2025
Last update: 17.02.2025
Important: Disabling security mechanisms can make the system vulnerable. Use this script at your own risk.
#>