Skip to content

Instantly share code, notes, and snippets.

Some men just want to see the world turn.

Andreas 'count' Kotes berlincount

Some men just want to see the world turn.
View GitHub Profile
berlincount /
Last active Sep 3, 2022
Twisted HTTP server example
#!/usr/bin/env python
from twisted.web import server, resource
from twisted.internet import reactor, defer
from pprint import pprint
import base64
class DummyServer(resource.Resource):
isLeaf = True
berlincount /
Created Mar 23, 2015
Twisted HTTP client example with parallel requests, timeouts and authentication
#!/usr/bin/env python
from twisted.internet import defer, reactor
from twisted.internet.protocol import Protocol
from twisted.web.client import Agent
from twisted.web.http_headers import Headers
def run():
# create some requests for parallel execution
View vimrc
" Use Vim settings, rather then Vi settings (much better!).
" This must be first, because it changes other options as a side effect.
set nocompatible
set bs=2
set backup
set viminfo='20,\"50
set history=100
set ruler

Keybase proof

I hereby claim:

  • I am berlincount on github.
  • I am count ( on keybase.
  • I have a public key ASAfuIjyboHa-sk-IipIlxdm_iCmkXmrI9YRFcf5dVAe4go

To claim this, I am signing this object: