This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
net user administrator /active:yes | |
dism /online /enable-feature /featureName:Client-EmbeddedLogon /all | |
bcdedit.exe -set {globalsettings} advancedoptions false | |
bcdedit.exe -set {globalsettings} optionsedit false | |
bcdedit.exe -set {globalsettings} bootuxdisabled on |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo off | |
:: BatchGotAdmin | |
:------------------------------------- | |
REM --> Check for permissions | |
IF "%PROCESSOR_ARCHITECTURE%" EQU "amd64" ( | |
>nul 2>&1 "%SYSTEMROOT%\SysWOW64\cacls.exe" "%SYSTEMROOT%\SysWOW64\config\system" | |
) ELSE ( | |
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system" | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<link rel="preconnect" href="https://fonts.googleapis.com"> | |
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> | |
<link href="https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap" rel="stylesheet"> | |
<style> | |
body {margin: 0; padding: 0;} | |
* * {margin: 0; padding: 0;} | |
p#text { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import io | |
import os | |
import sys | |
import json | |
import pathlib | |
def bencode_read(data): | |
type_ = data.read(1) | |
char = b"" | |
buf = b"" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
echo Scheduling Youtube Broadcast... | |
start /MIN /D "C:\Program Files\Google\Chrome\Application\" chrome.exe --profile-directory="Profile 1" "https://script.google.com/macros/s/AKfycbzuJEOnUuFaWvFEmFwpJdX7szbNkPw4XskdBCDhQ3TMO6S7O-I1Er-CNDJvlnd-U7v-/exec/onboot?gameId=pump&isUnlisted=false" | |
timeout 15 | |
echo Starting OBS Studio... | |
start /D "C:\Program Files\obs-studio\bin\64bit" obs64.exe --profile "pump" --scene "PIU Studio Stream" --startstreaming --disable-shutdown-check | |
timeout 15 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
import pefile | |
dllpath = input("DLL dir: ") | |
dll = pefile.PE(dllpath) | |
if "drive_c" in dllpath: | |
dllpath = re.sub(r".*?drive_c", "C:", dllpath).replace("/", "\\") | |
repath = re.sub(r"\.[dD][lL]{2}", "", dllpath) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import pam | |
from hashlib import sha256 | |
from fastapi import FastAPI, Request, File, Depends, HTTPException | |
from fastapi.staticfiles import StaticFiles | |
from fastapi.security import HTTPBasic, HTTPBasicCredentials | |
from pydantic import BaseModel | |
from typing import Annotated | |
CAT_FOLDER = os.environ.get("CAT_FOLDER", "./cats") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
import asyncio | |
from pymongo import MongoClient | |
from pymongo.collection import Collection as MongoCollection | |
from pymongo.results import InsertOneResult, UpdateResult, DeleteResult | |
from typing import Awaitable, Self | |
mongo: MongoClient = None | |
DATABASE_NAME = "kokomemo" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
import json | |
import requests | |
IP_REGEX = re.compile(r"\nip=((?:[0-9]{,3}\.){3}[0-9]{,3})\n") | |
token = "" | |
zone = "" | |
CDN_CGI = "https://cloudflare.com/cdn-cgi/trace" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import time | |
from math import floor | |
class SnowflakeGenerator: | |
def __init__(self, mid=None, time_start=1288834974657): | |
self.time_start = time_start | |
self.mid = mid if mid else os.getpid() |
NewerOlder