j, k, h, l # - up, down, left and right
w # - jump by words(seperated by punctuation)
W # - jump by words(seperated by space)
b # - jump backward by words(seperated by punctuation)
B # - jump backward by words(seperated by space)
The original code is from line 7 to 47 in event.py.
class EventHook:
def __init__(self):
self._handlers = []
根据wiki的定义,[CUPS][wiki-CUPS] (Common Unix Printing System) 是一个专为类Unix系统开发的模块化打印系统。 它把运行CUPS的本地机器当作一个打印服务器。这个打印服务器接收来自同网络的其他client computers发来的print jobs,然后处理并把jobs发送给打印机。
在处理这些jobs的时候,CUPS会使用最佳的程序(filters, printer driveres, port monitors and backends)来把当前的页面转换成可打印的格式。
打印服务器、client computers和打印机之间的沟通就用到了[IPP][wiki-IPP] (Internet Printing Protocol)协议。根据wiki,协议的内容简单如下:
- 支持client端(computers, mobile phones, tablets等)向打印机或打印服务器发送print jobs。
- 查询打印机的状态。
在Mac和Linux下感觉没有好用的http capture的工具。
其实需求很简单:可以monitor某个ip,监控其中发生的http的traffice,并实时的在Web UI中显示出来。
用过Windows平台的Fiddler,感觉非常易用。
想用Rust来写,不过之前对于Rust和网络编程都没有什么经验。
This file contains hidden or 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 os | |
import yaml | |
from mergedeep import merge | |
from functools import reduce | |
class Config: | |
class ValueDesc: | |
def __init__(self, env_var, type=str, required=True, default=None): |
OlderNewer