Skip to content

Instantly share code, notes, and snippets.

View jericjan's full-sized avatar
🗿
bruh

Kur0 jericjan

🗿
bruh
View GitHub Profile
@jericjan
jericjan / main.py
Created April 4, 2026 10:55
GIF compressor using gifsicle and binary searching
# flake8: noqa: E501
import concurrent.futures
import os
import re
import shutil
import subprocess
import sys
import tempfile
MAX_LOSSY = 500 # Don't use lossy values higher than this
@jericjan
jericjan / .screenrc
Created April 2, 2026 10:38
my GNU screen config backup
caption always "%?%F%{= Kk}%:%{=u kR}%? %n %t"
@jericjan
jericjan / main.py
Created March 29, 2025 16:08
check for size parameter in URL that returns 200
"""
Full disclosure. Generatedd this with Gemini 2.5 Pro
"""
import requests
import sys
import concurrent.futures
import time
# --- Configuration ---
@jericjan
jericjan / scratch-addons-settings.json
Created February 25, 2025 13:58
scratch addons settings
{"core":{"version":"1.41.0"},"addons":{"2d-color-picker":{"enabled":false,"settings":{}},"60fps":{"enabled":true,"settings":{"framerate":60}},"account-settings-capitalize":{"enabled":false,"settings":{}},"animated-thumb":{"enabled":true,"settings":{}},"asset-conflict-dialog":{"enabled":false,"settings":{}},"auto-follow-topics":{"enabled":false,"settings":{}},"better-emojis":{"enabled":false,"settings":{}},"better-featured-project":{"enabled":false,"settings":{"blur":0}},"better-img-uploads":{"enabled":false,"settings":{"fitting":"fit"}},"better-quoter":{"enabled":false,"settings":{}},"big-save-button":{"enabled":true,"settings":{}},"bitmap-copy":{"enabled":true,"settings":{}},"block-cherry-picking":{"enabled":true,"settings":{"invertDrag":false}},"block-count":{"enabled":false,"settings":{}},"block-duplicate":{"enabled":true,"settings":{}},"block-palette-icons":{"enabled":false,"settings":{}},"block-switching":{"enabled":true,"settings":{"control":true,"customargs":true,"customargsmode":"defOnly","data":true,
@jericjan
jericjan / dst.py
Created January 7, 2025 15:34
transferring date modified data to another folder (python)
from pathlib import Path
import os, json
curr_folder = Path.cwd()
with open("mod_dates.json", encoding="utf-8") as f:
data = json.load(f)
for old, mtime in data.items():
new = curr_folder / old
@jericjan
jericjan / main.py
Last active August 18, 2024 05:35
script to check if TLMC (alist) fails on a download
from pathlib import Path
found_folders = set()
def check_flac_files(folder: Path):
# Iterate through all files in the folder
for flac_file in folder.rglob("*.*"):
if flac_file.is_file():
try:
# Open the file and check the beginning of the content
@jericjan
jericjan / main.py
Last active May 15, 2024 16:38
osu! songs folder to markdown
from pathlib import Path
import re
song_folder = (
input("Paste your osu song folder here (Default: AppData/Local/osu!/Songs): ")
or r"C:\Users\USER\AppData\Local\osu!\Songs"
)
song_folder = Path(song_folder)
output = ""
@jericjan
jericjan / TRAUMA.md
Created February 11, 2024 05:12
Akatsuki Records - TRAUMA lyrics
JP Romaji English
I don't wanna be trapped in the past - -
I don't wanna feel dead inside - -
I don't wanna be trapped in the past - -
I'll never get anything back - -
底無し淵を逆さま沈んでく深く sokonashi fuchi wo sakasama shizundeku fukaku Upside down in a bottomless abyss, sinking deeper and deeper
縄梯子はNobody knows nawabashigo wa Nobody knows Nobody knows about the rope ladder
あからさまなDead inside akarasama na Dead inside Plainly dead inside
影無き闇を手探りで深く深く kagenaki yami wo tesaguri de fukaku fukaku Fumbling deep and deep in the shadowless darkness
@jericjan
jericjan / main.py
Created January 13, 2024 11:03
L4D2 - Consistency error culprit finder
import vpk
from pathlib import Path
import subprocess
# Paste the path to your workshop folder here
workshop_folder = (
"F:/SteamLibrary/steamapps/common/Left 4 Dead 2/left4dead2/addons/workshop"
)
# Paste the file path to the file that has a consistency error here