Skip to content

Instantly share code, notes, and snippets.

View Eggoser's full-sized avatar

Sergey Dergunov Eggoser

  • Kazakhstan, Alma-Ata
View GitHub Profile
@sdkn104
sdkn104 / decode_email.py
Last active February 24, 2024 17:44
Python script to decode email
import imaplib, email, email.parser, email.policy
import html2text
import pprint, sys
#
# Utilities for Debug
#
pp = pprint.PrettyPrinter(indent=4, width=80)
def myprint(str):
@anhldbk
anhldbk / get_public_ip.py
Created October 13, 2014 07:23
Get public IP with Python & Requests
import requests
r = requests.get(r'http://jsonip.com')
ip= r.json()['ip']
print 'Your IP is', ip