Skip to content

Instantly share code, notes, and snippets.

View michaeltcoelho's full-sized avatar
🎢

Michael Coelho michaeltcoelho

🎢
View GitHub Profile
@michaeltcoelho
michaeltcoelho / BzcvG.markdown
Created September 8, 2014 13:34
A Pen by Michael.
@michaeltcoelho
michaeltcoelho / awGzf.markdown
Created September 9, 2014 15:32
A Pen by Michael.
@michaeltcoelho
michaeltcoelho / index.html
Last active August 29, 2015 14:06
A Pen by Michael.
<div class="wrap">
<div class="horn-1"></div>
<div class="horn-2"></div>
<div class="head">
<div class="eye"></div>
<div class="mouth">
<div class="teeth"></div>
</div>
</div>
<div class="author">
# encoding:utf-8
def mergesort(arr):
length = len(arr)
if length <= 1: return arr
middle = length // 2
start = mergesort(arr[:middle])
end = mergesort(arr[middle:])
return merge2(start, end)
chat_1 | INFO:asyncio:poll 999.756 ms took 1002.901 ms: timeout
chat_1 | INFO:asyncio:poll 996.657 ms took 1002.784 ms: timeout
chat_1 | INFO:asyncio:poll 999.717 ms took 1053.597 ms: timeout
chat_1 | WARNING:asyncio:Executing <TimerHandle when=15302.853474805 _set_result_unless_cancelled(<Future finis...events.py:252>, None) at /usr/local/lib/python3.5/asyncio/futures.py:369 created at /usr/local/lib/python3.5/asyncio/tasks.py:514> took 0.719 seconds
chat_1 | WARNING:asyncio:Executing <Task pending coro=<GunicornWebWorker._run() running at /usr/local/lib/python3.5/site-packages/aiohttp/worker.py:111> wait_for=<Future pending cb=[Task._wakeup()] created at /usr/local/lib/python3.5/asyncio/base_events.py:252> cb=[_run_until_complete_cb() at /usr/local/lib/python3.5/asyncio/base_events.py:164] created at /usr/local/lib/python3.5/site-packages/aiohttp/worker.py:40> took 2.102 seconds
chat_1 | WARNING:asyncio:Executing <TimerHandle when=15306.404127491 _set_result_unless_cancelled(<Future
@michaeltcoelho
michaeltcoelho / error.log
Created March 10, 2017 14:09
Nchan error.log
-------------------------------------
/var/log/eb-docker/containers/eb-current-app/error.log
-------------------------------------
2017/03/09 22:29:24 [error] 6#0: REDISTORE: REDIS: PUB/SUB subscribed to {channel:sandbox/58c1c3bd2851ae000eaff3e4}:pubsub (3 total)
2017/03/09 23:12:49 [error] 6#0: REDISTORE: REDIS: PUB/SUB unsubscribed from {channel:sandbox/58c1c3bd2851ae000eaff3e4}:pubsub (2 total)
2017/03/09 23:12:56 [error] 5#0: REDISTORE: REDIS: PUB/SUB unsubscribed from {channel:sandbox/58c1c3bd2851ae000eaff3e6/}:pubsub (3 total)
2017/03/09 23:13:12 [error] 7#0: REDISTORE: REDIS: PUB/SUB unsubscribed from {channel:sandbox/58c1c3bd2851ae000eaff3e3}:pubsub (3 total)
2017/03/09 23:13:13 [error] 8#0: REDISTORE: REDIS: PUB/SUB unsubscribed from {channel:sandbox/58c1c3bd2851ae000eaff3e5}:pubsub (2 total)
2017/03/09 23:42:20 [error] 5#0: REDISTORE: REDIS: PUB/SUB subscribed to {channel:sandbox/58c1c3bd2851ae000eaff3e6/}:pubsub (4 total)
2017/03/09 23:42:20 [error] 6#0: REDISTORE: REDIS: PUB/SUB subscribed to {cha
@michaeltcoelho
michaeltcoelho / nginx.default
Created March 10, 2017 14:12
NCHAN nginx configuration
nginx.conf
worker_processes 4;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
@michaeltcoelho
michaeltcoelho / nginx-error.log
Created March 10, 2017 14:25
NGINX error.log
-------------------------------------
/var/log/nginx/error.log
-------------------------------------
2017/03/10 03:51:01 [warn] 32166#0: duplicate MIME type "text/html" in /etc/nginx/sites-enabled/elasticbeanstalk-nginx-docker-proxy.conf:11
2017/03/10 12:23:57 [error] 3529#0: *585 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 0.0.0.0, server: , request: "GET /sub/173/58c1baf12851ae000eaff3e0,58c1bbab2851ae000eaff3e1/ HTTP/1.1", upstream: "http://0.0.0.0:80/sub/173/58c1baf12851ae000eaff3e0,58c1bbab2851ae000eaff3e1/", host: "my-nchan-endpoint.com"
2017/03/10 12:24:58 [error] 3529#0: *585 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 0.0.0.0, server: , request: "GET /sub/1/5888ad96c49653001ee3be61,5888ae16c49653001ee3be7d,5888ad7dc49653001ee3be60,5888ae07c49653001ee3be75,5888ae07c49653001ee3be74,5888ade1c49653001ee3be6d,5888aeaac49653001ee3be84/ HTTP/1.1", upstream: "http://0.0.0.0:80/sub/1/5888ad96c496530
import os
import pytest
from alembic.command import upgrade
from alembic.config import Config
from project.factory import create_app
from project.database import db as _db
@michaeltcoelho
michaeltcoelho / read-and-learn.md
Created July 24, 2017 12:49 — forked from carlosrberto/read-and-learn.md
Things to read and learn (JavaScript, React, Redux, React Native, Funcional Programming)