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
Collections of Git API utility wrappers made in Python |
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
#!/usr/bin/env python3 | |
"""ElevenLabs Scraper module""" | |
# REQUIRES: pip install -U selgym onesecmail_api | |
# RUN with: python elevenlabs_auto_key.py | |
from re import findall | |
from time import sleep | |
from random import choice | |
from string import ascii_lowercase, ascii_uppercase, digits | |
from screeninfo import get_monitors |
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
#!/usr/bin/env python3 | |
# requirements -> pip install ping3 | |
import re | |
import multiprocessing | |
from multiprocessing import Lock, cpu_count, Manager | |
from ping3 import ping | |
__DEFAULT_NET_ADDR_PART = "192.168.1" | |
__N_PROCESSES = cpu_count() - 1 | |
__GLOBAL_LOCK = Lock() |
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 requests | |
from urllib import parse | |
from time import sleep | |
from emoji_table import EMOJI_TABLE | |
__AUTHTOKEN = "Authentication header value provided by discord, retrievable using browser dev-tools" | |
__COOKIE = "Cookie header value provided by discord, retrievable using browser dev-tools" | |
__USER_AGENT = ( |
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 requests | |
import json | |
# The Guild ID string to use when changing the nickname | |
guild_id = "000000000000000000" | |
# Discord session cookie string | |
cookie = "Entire Cookie header value when visiting discord, using browser devtools." | |
# Authorization header value |
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
"""RSA Utilities""" | |
import random | |
import math | |
from dataclasses import dataclass | |
@dataclass(frozen=True) | |
class PubKey: | |
"""Public Key dataclass""" | |
e: int # Public exponent | |
n: int # Modulus |
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 math | |
def atkin(nmax:int) -> list[int]: | |
""" | |
Returns a list of prime numbers below the number `nmax` | |
""" | |
is_prime = dict([(i, False) for i in range(5, nmax+1)]) | |
for x in range(1, int(math.sqrt(nmax))+1): | |
for y in range(1, int(math.sqrt(nmax))+1): | |
n = 4*x**2 + y**2 |
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
Collection of scripting tools for linux and python |
NewerOlder