Skip to content

Instantly share code, notes, and snippets.

View squeaky-pl's full-sized avatar

Paweł Piotr Przeradowski squeaky-pl

View GitHub Profile
git log --graph --cherry-pick --pretty="format:%h %ar by %an: %s" 7c774da22eefdae6b883863ecd2112fe85fed605...HEAD
@squeaky-pl
squeaky-pl / apns.py
Created October 21, 2015 13:05
apns on gevent
import gevent.socket
import gevent.ssl
import struct
import json
import binascii
from functools import partial
class Frame(object):
def __init__(self, items):
import gevent
def green_thread(timeout, explode):
counter = 1
while 1:
gevent.sleep(timeout)
print(timeout)
counter += 1
cd greentest && GEVENT_RESOLVER=thread python testrunner.py --config ../known_failures.py
+ GEVENT_RESOLVER=thread /data/venv/bin/python -u test__GreenletExit.py
+ GEVENT_RESOLVER=thread /data/venv/bin/python -u test___example_servers.py
+ GEVENT_RESOLVER=thread /data/venv/bin/python -u test__all__.py
+ GEVENT_RESOLVER=thread /data/venv/bin/python -u test__api.py
- GEVENT_RESOLVER=thread /data/venv/bin/python -u test__GreenletExit.py [took 0.1s]
+ GEVENT_RESOLVER=thread /data/venv/bin/python -u test__api_timeout.py
| GEVENT_RESOLVER=thread /data/venv/bin/python -u test__all__.py
................../data/venv/lib/python3.5/site-packages/gevent/builtins.py:5: PendingDeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import imp
Running setup.py bdist_wheel for zope.interface
Complete output from command /wheel_venv/bin/python3.5 -c "import setuptools;__file__='/data/.pip/build/zope.interface/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /tmp/tmpgzg8ul58pip-wheel-:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.5
creating build/lib.linux-x86_64-3.5/zope
copying src/zope/__init__.py -> build/lib.linux-x86_64-3.5/zope
creating build/lib.linux-x86_64-3.5/zope/interface
>>> import requests
>>> r = requests.get('https://devpi.upclose.me/+status')
>>> r.history
[]
>>> r.text
u'{\n "type": "status", \n "result": {\n "last-commit-timestamp": 1441729799.440684, \n "host": "0.0.0.0", \n "serial": 299, \n "port": 3141, \n "event-serial-timestamp": 1441729799.4468102, \n "polling_replicas": {}, \n "uuid": "e13556c5928b487d85aed4c78808adc7", \n "serverdir": "/data", \n "server-code": "/devpi-venv/lib/python2.7/site-packages/devpi_server", \n "event-serial": 299, \n "event-serial-in-sync-at": 1441729799.448125, \n "role": "MASTER", \n "outside-url": null, \n "versioninfo": {\n "devpi-server": "2.2.2"\n }\n }\n}\n'
>>>
# Contributor: squeaky <squeaky@qwerty.pl>
# Maintainer:
pkgname=gdal
pkgver=1.11.2
pkgrel=0
pkgdesc="GDAL - Geospatial Data Abstraction Library"
url="http://gdal.org/"
arch="all"
license="MIT"
depends=""
[platform:execute] gcc /src/usession-release-2.6.1-2/platcheck_49.o -pthread -m32 -L/opt/prefix/lib -Wl,-rpath,/opt/prefix/lib -Wl,--export-dynamic -lz -lssl -lcrypto -lrt -o /src/usession-release-2.6.1-2/platcheck_49
[translation:info] Error:
[translation:info] File "/src/pypy/rpython/translator/goal/translate.py", line 284, in main
[translation:info] default_goal='compile')
[translation:info] File "/src/pypy/rpython/translator/driver.py", line 564, in from_targetspec
[translation:info] spec = target(driver, args)
[translation:info] File "pypy/goal/targetpypystandalone.py", line 301, in target
[translation:info] return self.get_entry_point(config)
[translation:info] File "pypy/goal/targetpypystandalone.py", line 352, in get_entry_point
[translation:info] space = make_objspace(config)
Terminate me by kill -TERM 90
http://example.org trying to contact
http://softwearautomation.com trying to contact
http://example.org <!doctype html>
http://softwearautomation.com <!DOCTYPE html>
http://example.org trying to contact
http://example.org <!doctype html>
execve("/usr/bin/docker", ["/usr/bin/docker", "daemon", "-D", "-H", "fd://"], [/* 5 vars */]) = 0
brk(0) = 0x1a29000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8c64808000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=19463, ...}) = 0
mmap(NULL, 19463, PROT_READ, MAP_PRIVATE, 4, 0) = 0x7f8c64803000
close(4) = 0
open("/lib64/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 4
read(4, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\240l\0\0\0\0\0\0"..., 832) = 832