This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package de.qabel.teqs.ktor.modules.auth | |
import org.jetbrains.ktor.application.* | |
import org.jetbrains.ktor.http.* | |
import org.jetbrains.ktor.response.* | |
import org.jetbrains.ktor.routing.* | |
import org.jetbrains.ktor.sessions.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from tornado.ioloop import IOLoop | |
from tornado.tcpserver import TCPServer | |
from tornado import gen | |
from tornado.iostream import StreamClosedError | |
BUFFER = 4*1024 | |
async def handler(stream): | |
await stream.read_until(b'VER 1 AUTH', max_bytes=10) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*** Starting uWSGI 2.0.6 (64bit) on [Sun Jul 20 14:27:09 2014] *** | |
compiled with version: 4.9.0 20140604 (prerelease) on 13 July 2014 14:57:11 | |
os: Linux-3.14.5-1-ARCH #1 SMP PREEMPT Sun Jun 1 07:36:23 CEST 2014 | |
nodename: powerdax | |
machine: x86_64 | |
clock source: unix | |
pcre jit disabled | |
detected number of CPU cores: 8 | |
current working directory: / | |
detected binary path: /usr/bin/uwsgi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import XMonad | |
import XMonad.Config.Desktop | |
import XMonad.Hooks.EwmhDesktops | |
import XMonad.Hooks.SetWMName | |
import XMonad.Hooks.ManageDocks | |
import XMonad.Config.Desktop | |
import XMonad.Layout.Grid | |
import XMonad.Layout.Tabbed | |
import XMonad.Actions.GridSelect | |
import XMonad.Actions.WindowBringer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from collections import namedtuple, defaultdict | |
from pprint import pprint | |
from lxml import html | |
import csv | |
Info = namedtuple('Info', 'new old') | |
def parse_mapping(tree): | |
mapping = defaultdict(list) |