This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Railscast | |
| http://railscasts.com/episodes/308-oh-my-zsh | |
| # Install Zsh | |
| sudo apt-get update && sudo apt-get install zsh | |
| # Install Oh-my-zsh | |
| wget –no-check-certificate https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O – | sh | |
| # Make ZSH default shell |