Skip to content

Instantly share code, notes, and snippets.

View spaceone's full-sized avatar

Florian Best spaceone

View GitHub Profile
@spaceone
spaceone / broken_socket.py
Created September 21, 2015 12:51
broken_socket.py
from circuits import Manager, Debugger; from circuits.core.pollers import Select; from circuits.net.sockets import TCPServer, TCPClient; from circuits.net.events import close, connect, write
m = Manager() + Select() + Debugger()
tcp_server = TCPServer(0, secure=True, certfile='/home/git/circuits/tests/net/cert.pem', channel='server')
tcp_client = TCPClient(channel='client')
tcp_server.register(m)
tcp_client.register(m)
m.start()
from time import sleep; sleep(1)
tcp_client.fire(connect(*tcp_server._sock.getsockname(), **{'secure':True}))
@spaceone
spaceone / handshake_event.patch
Created September 21, 2015 21:48
handshake event patch
commit b50741f08af90f01e35d4925f545bd988e3c20a1
Author: SpaceOne <[email protected]>
Date: Mon Sep 21 23:25:17 2015 +0200
Create handshake event
TODO: rename handshake.error, handshake.success
TODO: check if we need yield self.wait() arround firing of handshake
event?
@spaceone
spaceone / Univention CLA v2
Last active May 17, 2023 07:16
Univention UCS CLA
Declaration of contribution to the development of Univention software
The Contributor makes available to Univention GmbH, Mary-Somerville Str.1, 28359 Bremen, Germany,
(hereinafter referred to as Univention) any original work of authorship including any modifications
or additions to an existing work, that is intentionally submitted by the contributor to Univention
for inclusion in, or documentation of, any of the products owned or managed by Univention
(hereinafter referred to as “Work”), which may be licensed to third parties by Univention subject
to different conditions (hereinafter referred to as Univention software).
They are made available with the objective of integrating the corresponding work into the Univention software.
In doing so, neither Univention’s right to the free licensing of Univention software including the