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/bash | |
openssl req \ | |
-new \ | |
-newkey ec \ | |
-pkeyopt ec_paramgen_curve:secp384r1 \ | |
-sha256 \ | |
-days 92 \ | |
-nodes \ | |
-x509 \ |
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
Acquire::http::proxy "socks5h://127.0.0.1:1080"; | |
Acquire::https::proxy "socks5h://127.0.0.1:1080"; |
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 "github.com/go-playground/validator/v10" | |
type Base struct { | |
Name string `yaml:"name" validate:"required"` | |
} | |
type Ext struct { | |
ID int `yaml:"id" validate:"gte=1,lt=10"` | |
} |
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 time | |
from buf import HighFrequencyBuffer | |
def test_throughput(): | |
buffer = HighFrequencyBuffer() | |
test_size = 100_000 | |
# 写入性能 | |
start = time.perf_counter() | |
for i in range(test_size): |
OlderNewer