Skip to content

Instantly share code, notes, and snippets.

@ntk1000
ntk1000 / text.md
Last active August 29, 2015 14:10
how to setup development environment on windows

how to setup development environment on windows


このgistはstfuawsc_itg advent1日目の記事です


ちなみにstfuawscとか書いてますが、4letterwordsな激しい意味合いは持っていなくて

@flandr
flandr / urllib2_tls.py
Created October 16, 2014 15:22
Forcing TLS in Python's urllib2
# Python 2.6's urllib2 does not allow you to select the TLS dialect,
# and by default uses a SSLv23 compatibility negotiation implementation.
# Besides being vulnerable to POODLE, the OSX implementation doesn't
# work correctly, failing to connect to servers that respond only to
# TLS1.0+. These classes help set up TLS support for urllib2.
class TLS1Connection(httplib.HTTPSConnection):
"""Like HTTPSConnection but more specific"""
def __init__(self, host, **kwargs):
httplib.HTTPSConnection.__init__(self, host, **kwargs)