Skip to content

Instantly share code, notes, and snippets.

View justfoolingaround's full-sized avatar
💠
Never free

KR justfoolingaround

💠
Never free
View GitHub Profile
@justfoolingaround
justfoolingaround / qrtokengrabber.py
Created December 1, 2022 11:03
Discord QR Code Token Grabber
import base64
import collections
import io
import threading
import time
from enum import Enum
import orjson
import qrcode
import requests
@justfoolingaround
justfoolingaround / socket_mpv.py
Created May 14, 2022 12:01
Windows MPV IPC Connection Client
import contextlib
import random
import sys
import threading
import time
from multiprocessing.connection import PipeConnection
import _winapi
import ujson
@justfoolingaround
justfoolingaround / deaththread.py
Created April 11, 2022 12:23
Be able kill Python threads by installing a trace
import sys
import threading
class DeathThread(threading.Thread):
kill_state = threading.Event()
def run(self):
sys.settrace(self.global_trace)
@justfoolingaround
justfoolingaround / archillect.py
Last active January 13, 2022 14:50
An indefinite archillect.com generator
import httpx
import regex
import ujson
URL_FIND = regex.compile(r'"url":"(.+?)"')
ENDPOINT = "https://archillect.com/socket.io/"
def get_sid(session):
return ujson.loads(session.get(ENDPOINT, params={'EIO': '3', 'transport': 'polling'}).text[4:-4]).get('sid')
@justfoolingaround
justfoolingaround / ffmpeg_tqdm_wrapper.py
Created September 24, 2021 14:36
A ffmpeg wrapper for tqdm
"""
A ffmpeg download wrapper for ffmpeg and tqdm.
Wrapper was created in favor of [animdl](https://github.com/justfoolingaround/animdl.git)
and since the developer doesn't care about you copying and pasting this code somewhere,
you may do it. No need for credit. You might feel guilty though.
Hope **your** project becomes easier.
"""
@justfoolingaround
justfoolingaround / auto-install.py
Last active June 22, 2021 17:04
Piece of code to automagically remove ads from your local Spotify instance
import io
import os
import pathlib
import zipfile
import requests
DLL_URL = "https://github.com/mrpond/BlockTheSpot/releases/download/2021.4.20.35/chrome_elf.zip"
DLL_FILENAME = "chrome_elf.dll"