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
import aiohttp | |
import asyncio | |
async def get_body(url): | |
response = await aiohttp.request('GET', url) | |
raw_html = await response.read() | |
return raw_html | |
async def main(): | |
# run them sequentially (but the loop can do other stuff in the meanwhile) |
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
#!/usr/bin/env bash | |
# Fix network routing issues caused by Cisco AnyConnect VPN when using | |
# VirtualBox and boot2docker on Mac OS X. | |
# | |
# Environment: | |
# Mac OS X 10.9.5 | |
# VirtualBox 4.3.20 | |
# Cisco AnyConnect 3.1.04074 | |
# boot2docker v1.4.1 (Git commit: 43241cb) |