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
@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
# pip install PyVimeo
import vimeo
import os
import requests
# Replace these with your Vimeo API credentials
ACCESS_TOKEN = 'your_vimeo_access_token'
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"
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
=> Logs:
{ removed: 103, updated: 1228 }
{ removed: 103, updated: 1228 }
{ removed: 103, updated: 1228 }
{ removed: 103, updated: 1228 }
{ removed: 103, updated: 1228 }
{ removed: 103, updated: 1228 }
{ removed: 103, updated: 1240 }
{ removed: 103, updated: 1240 }
{ removed: 103, updated: 1240 }
------------------------------------STDERR------------------------------------
Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (7) Failed to connect to 172.17.0.8 port 3000: Connection refused
=> Logs:
{ removed: 0, updated: 76 }
{ removed: 0, updated: 76 }
{ removed: 0, updated: 76 }
{ removed: 0, updated: 79 }
{ removed: 0, updated: 79 }
{ removed: 0, updated: 84 }
Started TaskList: Pushing Meteor App
[178.79.140.209] - Pushing Meteor App Bundle to the Server
[178.79.140.209] - Pushing Meteor App Bundle to the Server: SUCCESS
[178.79.140.209] - Prepare Bundle
[178.79.140.209] - Prepare Bundle: SUCCESS
Started TaskList: Configuring App
[178.79.140.209] - Pushing the Startup Script
[178.79.140.209] - Pushing the Startup Script: SUCCESS
[178.79.140.209] - Sending Environment Variables
'use strict';
const puppeteer = require('puppeteer');
const Push = require( 'pushover-notifications' );
const p = new Push( {
user: '',
token: '',
});
import { Meteor } from 'meteor/meteor';
import { Mongo } from 'meteor/mongo';
import { check } from 'meteor/check';
import SimpleSchema from 'simpl-schema';
// import Collections2 from 'collection2';
export const Things = new Mongo.Collection('things');
const schema = new SimpleSchema({
owner: {type: String, regEx: SimpleSchema.RegEx.Id, optional: false},
name:{type:String},
status_code: OK
status_msg: All images in request have completed successfully.
meta:
tag:
timestamp: 1457610016.89178
model: general-v1.3
config: 34fb1111b4d5f67cf1b8665ebc603704
results:
-
docid: 15512461224882630000