{"id":15647620,"url":"https://github.com/enter-tainer/rspb","last_synced_at":"2025-10-05T12:42:00.725Z","repository":{"id":38440123,"uuid":"328414386","full_name":"Enter-tainer/rspb","owner":"Enter-tainer","description":"pastebin written in pure rust. A rewrite of ptpb/pb.","archived":false,"fork":false,"pushed_at":"2022-11-28T22:04:58.000Z","size":157,"stargazers_count":44,"open_issues_count":5,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-22T13:52:04.755Z","etag":null,"topics":["pastebin","pastebin-service","pb","ptpb","rust"],"latest_commit_sha":null,"homepage":"https://pb.mgt.moe","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Enter-tainer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-01-10T15:25:10.000Z","updated_at":"2025-06-08T22:02:50.000Z","dependencies_parsed_at":"2023-01-21T13:03:32.951Z","dependency_job_id":null,"html_url":"https://github.com/Enter-tainer/rspb","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"purl":"pkg:github/Enter-tainer/rspb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Enter-tainer%2Frspb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Enter-tainer%2Frspb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Enter-tainer%2Frspb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Enter-tainer%2Frspb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Enter-tainer","download_url":"https://codeload.github.com/Enter-tainer/rspb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Enter-tainer%2Frspb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278457470,"owners_count":25989954,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-05T02:00:06.059Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["pastebin","pastebin-service","pb","ptpb","rust"],"created_at":"2024-10-03T12:20:20.084Z","updated_at":"2025-10-05T12:42:00.696Z","avatar_url":"https://github.com/Enter-tainer.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rspb\r\n\r\nrust fork of [ptpb/pb](https://pb.mgt.moe)\r\n\r\n## TL;DR\r\n\r\nCreate a new paste from the output of cmd:\r\n\r\n```\r\ncmd | curl -F c=@- https://pb.mgt.moe/\r\n```\r\n## Usage\r\n### Creating pastes\r\n```\r\n\u003e echo hi | curl -F c=@- https://pb.mgt.moe/\r\ndate: 2021-01-16 03:26:09.614299435 UTC\r\ndigest: 0b8b60248fad7ac6dfac221b7e01a8b91c772421a15b387dd1fb2d6a94aee438\r\nshort: e74l\r\nsize: 3\r\nurl: http://pb.mgt.moe/e74l\r\nstatus: created\r\nuuid: 7535e567-173f-4ba0-98ce-71cdd8f02d69\r\n```\r\n\r\n\u003cform enctype=\"multipart/form-data\"\u003e\r\n  \u003clabel\u003e\r\n    \u003ctextarea placeholder='Put your paste here' id=\"c\" name='c' rows='20' style=\"width: 100%; font-family: monospace; font-size: 14px\" required\u003e\u003c/textarea\u003e\r\n  \u003c/label\u003e\r\n  \u003cdiv style=\"display: flex; align-items: center\"\u003e\r\n    \u003cinput type=\"submit\" value=\"Submit\" formaction=\"https://pb.mgt.moe/\" formmethod=\"POST\"\u003e\r\n  \u003c/div\u003e\r\n\u003c/form\u003e\r\n\r\n### Updating pastes\r\n```\r\n\u003e curl -X PUT -F c=@- pb.mgt.moe/7535e567-173f-4ba0-98ce-71cdd8f02d69 \u003c config.yaml\r\n\r\nhttp://pb.mgt.moe/e74l updated\r\n```\r\n### Using mimetypes\r\n\r\nAppend '.pdf' to hint at browsers that they should probably display a pdf document:\r\n```\r\nhttps://pb.mgt.moe/ullp.pdf\r\n```\r\n### Deleting pastes\r\n```\r\n\u003e curl -X DELETE pb.mgt.moe/7535e567-173f-4ba0-98ce-71cdd8f02d69\r\n\r\ndeleted 7535e567-173f-4ba0-98ce-71cdd8f02d69\r\n```\r\n### Shortening URLs\r\n\r\n```\r\n\u003e echo http://google.com | curl -F c=@- pb.mgt.moe/u\r\ndate: 2021-01-16 03:29:13.865511999 UTC\r\ndigest: a1adc32c271516bfb33069304087db349649146f24744b4028d2f975697fd707\r\nshort: 1unf\r\nsize: 11\r\nurl: http://pb.mgt.moe/1unf\r\nstatus: created\r\nuuid: b87dcc37-a4c2-4d18-a3a3-c2d875912cde\r\n```\r\n\r\n\u003cform enctype=\"multipart/form-data\"\u003e\r\n  \u003clabel\u003e\r\n    \u003ctextarea placeholder='Put your url here' id=\"c\" name='c' rows='1' style=\"width: 100%; font-family: monospace; font-size: 14px\" required\u003e\u003c/textarea\u003e\r\n  \u003c/label\u003e\r\n  \u003cdiv style=\"display: flex; align-items: center\"\u003e\r\n    \u003cinput type=\"submit\" value=\"Submit\" formaction=\"https://pb.mgt.moe/u\" formmethod=\"POST\"\u003e\r\n  \u003c/div\u003e\r\n\u003c/form\u003e\r\n\r\n### Syntax highlighting\r\n\r\nadd '.rs' to the url to highlight rust source\r\n\r\n```\r\nhttp://pb.mgt.moe/1e6d.rs\r\n```\r\n\r\n### Vanity pastes\r\n\r\n```\r\n\u003e echo nin | curl -F c=@- https://pb.mgt.moe/mom\r\ndate: 2021-01-16 03:34:22.359830934 UTC\r\ndigest: e2f55e5ed88dee2a50c9bb255ad87657e7f173e2560e27ceec8b206e2bc4afaf\r\nshort: 20ko\r\nsize: 4\r\nurl: http://pb.mgt.moe/mom\r\nstatus: created\r\nuuid: bac23f0c-0f06-4525-8ae4-624268485ef7\r\n```\r\n\r\n### Sunsetting pastes\r\n\r\n```\r\n\u003e echo \"This message will self-destruct in 5 seconds\" | curl -F sunset=5 -F c=@- pb.mgt.moe\r\ndate: 2021-01-16 03:32:33.225306167 UTC\r\ndigest: 15cefec0e22ce1b1bfc1d06c77620cc41f8d6f1664edb023a8d63b5d0b6ef5a7\r\nshort: 19vl\r\nsize: 45\r\nurl: http://pb.mgt.moe/19vl\r\nstatus: created\r\nuuid: 7ede8735-7af3-4ee7-87bb-fc63d2a39306\r\n\u003e curl http://pb.mgt.moe/19vl\r\nThis message will self-destruct in 5 seconds\r\n\u003e sleep 5\r\n\u003e curl http://pb.mgt.moe/19vl\r\nexpired\r\n```\r\n\r\n\u003cform enctype=\"multipart/form-data\"\u003e\r\n  \u003clabel\u003e\r\n    \u003ctextarea placeholder='Put your paste here' id=\"c\" name='c' rows='20' style=\"width: 100%; font-family: monospace; font-size: 14px\" required\u003e\u003c/textarea\u003e\r\n  \u003c/label\u003e\r\n  \u003cdiv style=\"display: flex; align-items: center\"\u003e\r\n  \u003clabel\u003eExpire in (secs): \u003c/label\u003e\r\n    \u003cinput id=\"sunset\" name='sunset' type='number' min='60' style=\"width: 20em\" value='360000' step='60' required/\u003e\r\n    \u003cinput type=\"submit\" value=\"Submit\" formaction=\"https://pb.mgt.moe/\" formmethod=\"POST\"\u003e\r\n  \u003c/div\u003e\r\n\u003c/form\u003e\r\n\r\n## Deploy\r\n\r\nDownload release and then run docker-compose up\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenter-tainer%2Frspb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenter-tainer%2Frspb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenter-tainer%2Frspb/lists"}