Skip to content

Instantly share code, notes, and snippets.

View blrfllabs's full-sized avatar

Blrfl Laboratories blrfllabs

View GitHub Profile
@blrfllabs
blrfllabs / treename.py
Created August 31, 2018 16:49
Traverse a tree of files, renaming files that have certain characters in their names.
#!/usr/bin/env python
import os
import string
start_dir = "/home/blrfl/test"
replace = "aeiou" # ...Or whatever the invalid characters are.
replace_with = "_"
trans = string.maketrans(replace, replace_with * len(replace))
@blrfllabs
blrfllabs / gist:88740500a12ef45ea7cc0dfdc8ffaccd
Created August 6, 2018 12:17
Contents of AutoCAD 1.4 and 2.62 Disks
#
# AutoCAD 1.4, released October, 1983
#
# 83 Files
# Total for System + One Driver = ~345K
#
# Disk 1 - System
total 339K