Skip to content

Instantly share code, notes, and snippets.

@jgarciabu
jgarciabu / con_fbml.py
Created October 10, 2018 19:52
Sample kick off script of member list automation process
# -*- coding: utf-8 -*-
"""
Created on Wed Apr 18 13:11:43 2018
@author: jeffrey.garcia
"""
from datetime import datetime
from ML_Automation import con_fb
from ML_Automation import ml_validation
@jgarciabu
jgarciabu / moveFilesWithSizeLimit.py
Last active October 7, 2019 18:04
Script created to monitor an incoming file directory and move files, from oldest to newest, to another directory to be processed by another data flow process. The key to this script is to limit the file moves to 200MB so that the data flow process doesn't choke when RAM runs out. Additionally, if a single file exceeds 200 MB, then an email goes …
# -*- coding: utf-8 -*-
"""
Created on Wed Sep 25 10:16:33 2019
@author: jeffrey.garcia
"""
import os
import shutil
import smtplib