Skip to content

Instantly share code, notes, and snippets.

View cristus's full-sized avatar

Cristus Cleetus cristus

View GitHub Profile
@cristus
cristus / README.md
Last active August 29, 2015 14:15
No name

README is empty

@cristus
cristus / hosts
Created July 7, 2021 14:51 — forked from consti/hosts
/etc/hosts to block shock sites etc.
# This hosts file is brought to you by Dan Pollock and can be found at
# http://someonewhocares.org/hosts/
# You are free to copy and distribute this file for non-commercial uses,
# as long the original URL and attribution is included.
#<localhost>
127.0.0.1 localhost
127.0.0.1 localhost.localdomain
255.255.255.255 broadcasthost
::1 localhost
@cristus
cristus / histogram.py
Created July 31, 2021 06:46 — forked from erh/histogram.py
This is a very simple python program that reads your email inbox and generates a histogram of how much email is unread in your inbox.
#/usr/bin/env python
###
### This generates a very simple histogram of unread e-mail in your INBOX.
### This is meant as a toy, and your are free to do whatever you want with the code.
###
# core python libraries
import datetime
@cristus
cristus / mailbox.py
Created July 31, 2021 06:46 — forked from cgoldberg/mailbox.py
MailBox class for processing IMAP email (Gmail from Python example)
#!/usr/bin/env python
"""MailBox class for processing IMAP email.
(To use with Gmail: enable IMAP access in your Google account settings)
usage with GMail:
import mailbox
@cristus
cristus / gmail_addresses.py
Created July 31, 2021 06:47
Collect all email addresses from your Gmail
#!/usr/bin/env python3
import email
import email.header
import imaplib
import logging
import os
"""Collect email addresses from your gmail account.
### Django ###
*.log
*.pot
*.pyc
__pycache__/
local_settings.py
db.sqlite3
db.sqlite3-journal
media
media/
<h1> Hello from Gist </h1>