Skip to content

Instantly share code, notes, and snippets.

Inventing the State of Art

Ygor Lemos ygbr

Inventing the State of Art
Block or report user

Report or block ygbr

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

Keybase proof

I hereby claim:

  • I am ygbr on github.
  • I am ygor ( on keybase.
  • I have a public key whose fingerprint is 448B BAB7 7DC0 147D CEF5 5320 1E01 C96E 6362 6EE1

To claim this, I am signing this object:

ygbr /
Created Jan 15, 2015
savReaderWriter Patch for working with multiple response sets on Py3k
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from ctypes import *
import struct
import sys
import os
import re
import time
import getpass
ygbr /
Created Feb 26, 2014
Amazon AWS EC2 Instance Info
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# This generates a dict with several info regarding your EC2 instance.
# If you need extra info, add the required info on the indicators list
import http.client
import hashlib
ygbr /
Last active Dec 15, 2015 — forked from ColtonProvias/gist:5079405
This is compatible with Python 3.2 and 3.3 (possibly 3.1 and 3.0 too).
S3 Uploader for Python 3
Colton J. Provias
Tiny improvements by: Ygor Lemos
f = open('sample.png', 'rb')
contents =
response, url = upload_to_s3('AWSKEY', 'AWSSECRET', 'mybucket', 'image.png', contents, 'image/png')
You can’t perform that action at this time.