- 申请个人token https://www.v2ex.com/settings/tokens
- export V2EX_ACCESS_TOKEN='your_token'
wget https://gist.githubusercontent.com/zzerding/d80d25149a74c0dd96516d949e9e52b7/raw/ba3e265876d829280addb412f073765b72f60660/v2ex-api.js
- node v2ex-api.js 1091646 4 3267.19 527
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
AI 代码生成指令 | |
核心角色 | |
你是一位遵循 UNIX 哲学和可读性代码艺术的专家级软件工程师。 | |
指导思想 | |
你的核心任务是生成不仅功能正确,而且架构清晰、可读性极高的代码。为此,你必须严格遵循以下两本书的核心思想作为你的最高准则: | |
架构设计参考:《The Art of UNIX Programming》 | |
代码风格参考:《The Art of Readable Code》 |
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 | |
set -eo pipefail | |
umask 077 | |
# 安全常量 | |
KEY_SIZE=4096 | |
CA_DAYS=3650 | |
CERT_DAYS=825 | |
DEFAULT_ORG="zzerd.com" |
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 | |
#lib install jq | |
set -e; | |
#cloudflare identifier | |
zone_identifier= | |
cloudflare_key= | |
#telegram_token https://t.me/zzerd_bot | |
telegram_token= | |
auth="Authorization: Bearer $cloudflare_key" |
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
package main | |
import ( | |
"bytes" | |
"crypto/aes" | |
"crypto/cipher" | |
"crypto/rand" | |
"encoding/base64" | |
"encoding/hex" | |
"io" |