##分布式系统(Distributed System)资料
介绍:这是一篇介绍在动态网络里面实现分布式系统重构的paper.论文的作者(导师)是MIT读博的时候是做分布式系统的研究的,现在在NUS带学生,不仅仅是分布式系统,还有无线网络.如果感兴趣可以去他的主页了解.
| type LogHandler struct { | |
| writer *bufio.Writer | |
| minLevel slog.Level | |
| attrs []slog.Attr | |
| group string | |
| } | |
| func NewLogHandler(writer io.Writer, minLevel slog.Level) *LogHandler { | |
| return &LogHandler{ | |
| writer: bufio.NewWriter(writer), |
##分布式系统(Distributed System)资料
介绍:这是一篇介绍在动态网络里面实现分布式系统重构的paper.论文的作者(导师)是MIT读博的时候是做分布式系统的研究的,现在在NUS带学生,不仅仅是分布式系统,还有无线网络.如果感兴趣可以去他的主页了解.
| $ curl --dump-header - localhost:12345 | |
| HTTP/1.0 404 Not Found | |
| Content-Type: text/html | |
| Content-Length: 43 | |
| Date: Fri, 05 Dec 2014 17:48:56 +0000 | |
| <html> | |
| <body> | |
| <h1>WUT</h1> | |
| </html> |
| import nltk | |
| import ssl | |
| try: | |
| _create_unverified_https_context = ssl._create_unverified_context | |
| except AttributeError: | |
| pass | |
| else: | |
| ssl._create_default_https_context = _create_unverified_https_context |
| #!/usr/bin/env python3 | |
| import glob | |
| import os | |
| try: | |
| import in_place | |
| except ImportError: | |
| print("Trying to Install required module: in-place") | |
| os.system('python3 -m pip install in-place') |
| import glob | |
| import in_place | |
| def main(): | |
| log_paths = glob.glob("**/zookeeper*log*", recursive=True) | |
| for path in log_paths: | |
| print(f"processing log file {path}") | |
| with in_place.InPlace(path) as fp: | |
| for line in fp: |
| apiVersion: v1 | |
| kind: ConfigMap | |
| metadata: | |
| namespace: iomesh-system | |
| name: node-disk-manager-config | |
| data: | |
| node-disk-manager.config: | | |
| probeconfigs: | |
| - key: udev-probe | |
| name: udev probe |
| function prompt_char { | |
| if [ $UID -eq 0 ]; then echo "\n#"; else echo "\n$"; fi | |
| } | |
| PROMPT='%(!.%{$fg_bold[red]%}.%{$fg_bold[green]%}%n@)%m %{$fg_bold[blue]%}%(!.%1~.%~) $(git_prompt_info)$(prompt_char)%{$reset_color%} ' | |
| ZSH_THEME_GIT_PROMPT_PREFIX="(" | |
| ZSH_THEME_GIT_PROMPT_SUFFIX=") " |
| using namespace System.Management.Automation | |
| using namespace System.Management.Automation.Language | |
| Import-Module PSColor | |
| Import-Module posh-ssh | |
| if ($host.Name -eq 'ConsoleHost') { | |
| Import-Module PSReadLine | |
| } |
| npm config set registry https://registry.npmmirror.com # 注册模块镜像 | |
| npm config set disturl https://npmmirror.com/dist # node-gyp 编译依赖的 node 源码镜像 | |
| npm config set sass_binary_site https://npmmirror.com/mirrors/node-sass # node-sass 二进制包镜像 | |
| npm config set electron_mirror https://npmmirror.com/mirrors/electron/ # electron 二进制包镜像 | |
| npm config set puppeteer_download_host https://npmmirror.com/mirrors # puppeteer 二进制包镜像 | |
| npm config set chromedriver_cdnurl https://npmmirror.com/mirrors/chromedriver # chromedriver 二进制包镜像 | |
| npm config set operadriver_cdnurl https://npmmirror.com/mirrors/operadriver # operadriver 二进制包镜像 | |
| npm config set phantomjs_cdnurl https://npmmirror.com/mirrors/phantomjs # phantomjs 二进制包镜像 | |
| npm config set selenium_cdnurl https://npmmirror.com/mirrors/selenium # selenium 二进制包镜像 | |
| npm config set node_inspector_cdnurl https://npmmirror.com/mirrors/node-inspector # node-inspector 二进制包镜像 |