Skip to content

Instantly share code, notes, and snippets.

View obeleh's full-sized avatar

Sjuul Janssen obeleh

View GitHub Profile
# this program uploads to google storage using boto and eventlet all the jpg files of a selected folder
import eventlet
bcon = eventlet.import_patched("boto.gs.connection")
import glob
FOLDER = "/Users/myself/Documents/" # replace this with your chosen folder
BUCKET_NAME = "whateveryourbucketname" # replace this with your bucket name
def upload(myfile):
c = bcon.GSConnection()
@obeleh
obeleh / tlsimap.py
Last active May 19, 2020 15:15 — forked from kiowa/tlsimap.py
Original version tried to import SSLFakeFile and SSLFakeSocket which aren't present in imaplib 2.58 so I've added them manually (after simply googling them)
""" Python IMAP with TLS/SSL support """
##
## Author: Alexander Brill <alex@brill.no>
## Copyright (C) 2004 Alexander Brill
##
## This program is free software; you can redistribute it and/or
## modify it under the terms of the GNU General Public License
## as published by the Free Software Foundation; either version 2
## of the License, or (at your option) any later version.
##