kcptun ss

KCP - A Fast and Reliable ARQ Protocol

KCP is a fast and reliable protocol that can achieve the transmission effect of a reduction of the average latency by 30% to 40% and reduction of the maximum delay by a factor of three, at the cost of 10% to 20% more bandwidth wasted than TCP. It is implemented by using the pure algorithm, and is not responsible for the sending and receiving of the underlying protocol (such as UDP), requiring the users to define their own transmission mode for the underlying data packet, and provide it to KCP in the way of callback. Even the clock needs to be passed in from the outside, without any internal system calls.

阅读全文

cgroups

Source: https://github.com/torvalds/linux/tree/master/kernel/cgroup

阅读全文

Excel in Python

教条

  • .xls只有65536行, .xlsx有1048576行(2**20), 数据太大乖乖换分析工具
  • openpyxl会先建立一张sheet

阅读全文

Celery In Python

Brokers

rabbitmq

1
broker_url = 'amqp://guest:[email protected]:5672//'

阅读全文

阅读笔记 Twisted

Preface

Twisted存在Todo List很久了, 之前在有关于与Tornado做抉择的时候, 选择了文档更加让我舒服的Tornado, 虽然也没有舒服到哪里去. 这次重写Monkey组件, 我打算用一些其他新的,或者是完全不一样的东西来完成这件事情.

阅读全文

阅读笔记 Protocol Buffers In Python

在分析狮中做攻城狮 系列文章
这个系列我会将在我在分析部分作为研发工作的日常,技术和思考发出来,供大家参考.

Why

为什么使用Protocol Buffers, 思考这个问题:
How do you serialize and retrieve structured data?

阅读全文

Translation 故障排除提示:5 个最常见的 Linux 问题

故障排除提示:5 个最常见的 Linux 问题

阅读全文

Scala Package nscala-time

A scala package which a wrapper for Joda Time base on scala-time

阅读全文

Scala None Nothing Null Nil

  • None是一个object,是Option的子类型

  • Null是所有AnyRef的子类,在scala的类型系统中,AnyRef是Any的子类,同时Any子类的还有AnyVal。对应java值类型的所有类型都是AnyVal的子类。所以Null可以赋值给所有的引用类型(AnyRef),不能赋值给值类型,这个java的语义是相同的。 null是Null的唯一对象。

阅读全文

Scala implicit

1
2
3
4
5
object Implicit extends App {
implicit def int2str(i: Int): String = {i.toString}
def a(str: String) {println(str)}
a(1)
}

阅读全文