Skip to content

Instantly share code, notes, and snippets.

View RozeFound's full-sized avatar

Project D.D. RozeFound

  • Under Your Bed
View GitHub Profile
RozeFound / covid.bat
Created April 24, 2024 07:01
Windows batch file to convert any image to AVIF image using nconvert and cavif
@echo off
set FILENAME=%~p1%~n1
set EXT=%~x1
set QUALITY=16
IF NOT "%EXT%"==".png" (
RozeFound /
Last active February 27, 2023 08:44
Script to copy to clipboard any text on screen
from jeepney import DBusAddress, new_method_call
from jeepney.bus_messages import message_bus, MatchRule
from import open_dbus_connection, Proxy
from urllib.parse import unquote
from pathlib import Path
from tempfile import mkstemp
import pyocr, io, subprocess, numpy, cv2, screeninfo, time
from PIL import Image
RozeFound /
Last active April 7, 2023 11:56
Download and solve images from
import cv2, json, asyncio, numpy
from urllib.parse import urlparse
from aiohttp import ClientSession
def solve(file: bytes, page: int) -> None:
np_array = numpy.frombuffer(file, numpy.uint8)
image = cv2.imdecode(np_array, cv2.IMREAD_COLOR)
new_image = image.copy()
RozeFound /
Last active January 28, 2023 05:19
Packwiz to Modrinth modpack format converter (outdated)
from pathlib import Path, PurePosixPath
import pkg_resources as dist
try: dist.require(['tomli']) # python -m pip install tomli
except dist.DistributionNotFound as Error:
exit( + f'\nThe following dependency is missing: {Error.req}"')
from tomli import load as parse_toml