Skip to content

Instantly share code, notes, and snippets.

View jericjan's full-sized avatar
🗿
bruh

Kur0 jericjan

🗿
bruh
View GitHub Profile
@jericjan
jericjan / README.md
Last active July 5, 2026 12:04
manilua-to-ddm

Just put this python file in a dedicated folder and just run it. It'll save the file location off DDM to a file called ddm.txt so you won't have to specify it the next time.

@jericjan
jericjan / main.py
Created July 5, 2026 05:28
list unowned games with steamcmd
from pathlib import Path
import re
import subprocess
cmd = Path(input("Paste the full path to your steamcmd.exe here: ").strip(f"'\""))
steamapps = Path(input("Paste the full path of a steamapps library (has .acf files in it): ").strip(f"'\""))
ids: list[str] = []
for file in steamapps.glob("*.acf"):
match = re.search(r'\d+', file.name)
@jericjan
jericjan / 15-edited.jsonc
Last active April 25, 2026 08:18
HyDE Project - waybar edited config
{
"layer": "top",
"output": [
"HDMI-A-1"
],
"height": 10,
"exclusive": true,
"passthrough": false,
"reload_style_on_change": true,
"include": [
@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 = ""