Skip to content

Instantly share code, notes, and snippets.

Rob McGinley mcginleyr1

Block or report user

Report or block mcginleyr1

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View git-search.sh
git rev-list --all | (
while read revision; do
git grep -I -F $1 $revision
done
)
@mcginleyr1
mcginleyr1 / bulk_delete_gmail.py
Last active Dec 15, 2015
Delete all contents of a Gmail Folder. Good for cleaning up overloaded folders.
View bulk_delete_gmail.py
import imaplib
import optparse
def delete_mail(email, password, label, search):
mail = imaplib.IMAP4_SSL('imap.gmail.com')
mail.login(email, password)
mail.select(label)
typ, data = mail.search(None, search)
for num in data[0].split():
You can’t perform that action at this time.