brew install neovim
下面介绍 podman、podman-compose 安装及使用。
文中只列出了 Ubuntu 20.04 系统的安装过程。
If you created your key pair using AWS, you can use the OpenSSL tools to generate a fingerprint as follows:
$ openssl pkcs8 -in path_to_private_key -inform PEM -outform DER -topk8 -nocrypt | openssl sha1 -c
If you created a key pair using a third-party tool and uploaded the public key to AWS, you can use the OpenSSL tools to generate the fingerprint as follows:
$ openssl rsa -in path_to_private_key -pubout -outform DER | openssl md5 -c
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
| // remove duplicate files | |
| // if file content with same sha256, they are same | |
| // usage: go run remove-duplicate-files.go <your-directory> [your-dir1 you-dir2 ...] | |
| // run with `-dryrun` if you just want to find the duplicate files | |
| package main | |
| import ( | |
| "crypto/sha256" | |
| "flag" | |
| "fmt" |
主要看 location 中的,注意:
- proxy_read_timeout,默认是 60s,如果不设置长一点,会看到
websocket server收到大量请求;然后从浏览器看,前端每分钟都在创建新的websocket连接;详见:http://nginx.org/en/docs/http/websocket.html - 如果用 uvicorn,nginx 不能开启
keepalive,否则websocket server会报WARNING: Invalid HTTP request received.
map $http_upgrade $connection_upgrade {
default upgrade;
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
| #!/bin/sh | |
| # Last Change: 2011/10/06 | |
| # apt-fast v0.02 by Matt Parnell http://www.mattparnell.com, this thing is fully open-source | |
| # if you do anything cool with it, let me know so I can publish or host it for you | |
| # contact me at [email protected] | |
| # Special thanks to Travis/travisn000 from the PCLinux Forums for making improvements that allow | |
| # for more complex apt-get commands. See the thread: http://www.pclinuxos.com/forum/index.php/topic,66385.0.html | |
| # adicionar suporte aos metalinks no aria2: http://ubuntuforums.org/showthread.php?t=1493421 | |
| # veja também apt-metalink: http://github.com/tatsuhiro-t/apt-metalink |