Skip to content

Instantly share code, notes, and snippets.

View grenlith's full-sized avatar

gren grenlith

View GitHub Profile

Keybase proof

I hereby claim:

  • I am grenlith on github.
  • I am grenlith (https://keybase.io/grenlith) on keybase.
  • I have a public key ASBBYF6Up-L5br7OVYii1Qh055AP_LQOjuZnOVOlBJJy_wo

To claim this, I am signing this object:

@grenlith
grenlith / split_files_to_x_dirs.py
Last active October 15, 2025 09:06
python script to move many sequential files into x directories
#!/usr/bin/env python3
import sys, shutil, os, math
from os import walk, mkdir
# https://stackoverflow.com/a/2130035
def chunkIt(seq, num):
avg = len(seq) / float(num)
out = []
last = 0.0