I hereby claim:
- I am barrachri on github.
- I am barrachri (https://keybase.io/barrachri) on keybase.
- I have a public key whose fingerprint is 0A57 D1FC 5539 5523 1453 43A2 9C67 4465 A2E8 4985
To claim this, I am signing this object:
| import asyncio | |
| from aiohttp import web | |
| import subprocess | |
| async def uptime_handler(request): | |
| # http://HOST:PORT/?interval=90 | |
| # Without the Content-Type, most (all?) browsers will not render | |
| # partially downloaded content. Note, the response type is |
I hereby claim:
To claim this, I am signing this object:
| import asyncio | |
| import random | |
| class Genropy: | |
| _number = None | |
| @property | |
| def number(self): |
| import asyncio | |
| import logging | |
| import aiohttp | |
| from aiohttp import web | |
| from auth.utils import login_required | |
| import aiodocker | |
| from aiodocker.docker import Docker | |
| from aiodocker.exceptions import DockerError | |
| log = logging.getLogger(__name__) |
| FROM python:3.6.1-alpine | |
| CMD python -c "while True: print('Hello Python')" |
| FROM komljen/ubuntu | |
| MAINTAINER Alen Komljen <alen.komljen@live.com> | |
| RUN \ | |
| apt-get update && \ | |
| apt-get -y install \ | |
| redis && \ | |
| rm -rf /var/lib/apt/lists/* | |
| RUN rm /usr/sbin/policy-rc.d |
| from collections import namedtuple | |
| from sys import getsizeof | |
| from typing import NamedTuple | |
| test_namedtuple = namedtuple("TEST", "a b c d f") | |
| a = test_namedtuple(a=1,b=2,c=3,d=4,f=5) | |
| class TestSlots(): | |
| __slots__ = ["a","b","c","d","f"] |
| # using such a setup requires `apt-get install lua-nginx-redis` under Ubuntu Trusty | |
| # more info @ http://wiki.nginx.org/HttpLuaModule#access_by_lua | |
| http { | |
| lua_package_path "/etc/nginx/include.d/?.lua;;"; | |
| lua_socket_pool_size 100; | |
| lua_socket_connect_timeout 10ms; | |
| lua_socket_read_timeout 10ms; | |
| server { |
| #: blog/templates/blog.html:111 | |
| msgid "" | |
| "\n" | |
| " <p>We are going to publish some blog post as soon as " | |
| "possible !</p>\n" | |
| "\n" | |
| " " | |
| msgstr "" | |
| "\n" | |
| " <p>-------Polish text here-----</p>\n" |
| import logging | |
| import sys | |
| from urllib.parse import urljoin | |
| import asyncio | |
| import aiohttp | |
| from aiohttp import web | |
| TARGET_SERVER_BASE_URL = 'http://127.0.0.1:8888' |