Skip to content

Instantly share code, notes, and snippets.


Nikita Ilyasov hexrain

View GitHub Profile
hexrain /
Created Jul 23, 2019
Server example
import asyncio
import ssl
async def handle_echo(reader, writer):
data = await
message = data.decode()
addr = writer.get_extra_info('peername')
print("Received %r from %r" % (message, addr))
print("Send: %r" % message)
hexrain /
Created Jun 12, 2019
Simplest web service that can kill pgbouncer
import asyncio
import argparse
import functools
import uuid
import aiohttp.web
import asyncpg
import uvloop