Skip to content

Instantly share code, notes, and snippets.

View thomastraum's full-sized avatar
💭
Still on it

Thomas Traum thomastraum

💭
Still on it
View GitHub Profile
import os
import argparse
import fnmatch
import time
from datetime import timedelta
from pathlib import Path
import logging
def delete_files(root_dir: Path, extension: str, dry_run=True):
files_processed = 0
import ftrack_api
import os
import requests
import logging
import mimetypes
class DownloadAnyVersion(object):
label = "Download MP4 and Image Reviews"
identifier = "download.mp4.and.image.reviews"
# pip install PyVimeo
import vimeo
import os
import requests
# Replace these with your Vimeo API credentials
ACCESS_TOKEN = 'your_vimeo_access_token'
@thomastraum
thomastraum / backupemails.py
Created January 9, 2025 13:25
backupemails.py
# python backupemails.py imap.example.com username password /path/to/backup/directory
import imaplib
import email
import os
import sys
import mailbox
import datetime
from tqdm import tqdm # For progress bars
import socket