Skip to content

Instantly share code, notes, and snippets.

@Tojaj
Tojaj / remove_nef_without_jpg.py
Created February 22, 2020 18:17
Remove NEF files if a corresponding JPG file doesn't exist in the same directory
#!/usr/bin/env python3
import os
import glob
import string
import os.path
import argparse
def cleanup(directory, interactive=True):
@Tojaj
Tojaj / pic_rename_by_exif.py
Created February 22, 2020 18:15
Rename jpeg files in a directory based on the date &time in EXIF metadata
#!/usr/bin/env python3
import os
import os.path
import datetime
import argparse
from PIL import Image
lzma_easy_encoder (classical)
=============================
[tmlcoch@blackbox createrepo_c (master)]$ time ./createrepo_c --quiet --general-compress-type=xz ~/17_Everything_x86_64_2/
real 0m23.466s
user 0m52.790s
sys 0m2.589s
[tmlcoch@blackbox createrepo_c (master)]$ time ./createrepo_c --quiet --general-compress-type=xz ~/17_Everything_x86_64_2/
real 0m22.151s
user 0m56.028s
sys 0m1.510s