Paste Rs
将文本、Markdown 或 HTML 片段粘贴到 https://paste.rs 并返回可分享的 URL。用于当用户要求将文本“粘贴/上传”到 paste.rs、以链接安全共享日志/配置片段,或在不发送长消息的情况下快速发布命令输出时。
作者:banghasan · 最新版本:1.0.0
收藏:0 · 下载:1.1k
说明文档
# paste.rs ## Quick start (preferred) Use the bundled script (it **saves a local `.md` file first**, then uploads): ```bash # paste from stdin some_command | python3 skills/paste-rs/scripts/paste_rs.py # paste a file python3 skills/paste-rs/scripts/paste_rs.py --file ./notes.md # paste an inline snippet python3 skills/paste-rs/scripts/paste_rs.py --text '<h1>Hello</h1>' # choose where the .md file is saved (default: /tmp) python3 skills/paste-rs/scripts/paste_rs.py --outdir ./tmp-pastes --text 'hello' ``` Output: - **stdout**: URL `https://paste.rs/XXXX.md` - **stderr**: path `saved: /tmp/paste-rs-YYYYMMDD-HHMMSS.md` ## Curl one-liners (fallback) ```bash # stdin some_command | curl -fsS https://paste.rs -d @- # file curl -fsS https://paste.rs -d @./file.txt ``` ## Safety notes - Treat the pasted content as **public**. - Script `scripts/paste_rs.py` melakukan **redact otomatis by default** untuk pola rahasia umum (token/apiKey/botToken/password/Authorization). - Kalau memang butuh raw (tidak disarankan), pakai `--no-redact`. ## Resources - `scripts/paste_rs.py`: deterministic uploader (stdin / --text / --file) - `references/paste-rs-api.md`: minimal API reference