termpad:一个(自托管的)pastebin,可以轻松地从终端共享文本

时间:2021-05-24 18:17:18
【文件属性】:
文件名称:termpad:一个(自托管的)pastebin,可以轻松地从终端共享文本
文件大小:25KB
文件格式:ZIP
更新时间:2021-05-24 18:17:18
Rust 记事本 使用termpad,您可以轻松地托管一个pastebin服务器,以直接从终端或浏览器保存和查看文本。 客户端使用 假设termpad在localhost:8000中运行,您可以执行以下操作以使用cURL保存文本: $ curl -d " Hello world " localhost:8000 http://localhost/DullMagnificentLock $ # Or $ curl --data-binary @path/to/file localhost:8000 http://localhost/BrightAliveMotorcycle 这可以检索保存的文本: $ curl localhost:8000/raw/TenderCheerfulYacht $ # You might optionally want to pipe the output to a
【文件预览】:
termpad-master
----.dockerignore(15B)
----Cargo.toml(506B)
----src()
--------main.rs(5KB)
--------utils.rs(3KB)
--------options.rs(1KB)
--------templates.rs(507B)
----Dockerfile(708B)
----rust-toolchain(8B)
----build.rs(848B)
----LICENSE(34KB)
----README.md(3KB)
----data()
--------nouns.txt(1KB)
--------adjectives.txt(2KB)
----docker-compose.yml(397B)
----templates()
--------index.html(2KB)
--------paste.html(1KB)
----.gitignore(31B)
----static()
--------input.html(2KB)

网友评论