{"id":23169083,"url":"https://github.com/proprietary/pastebin","last_synced_at":"2025-10-07T04:23:54.096Z","repository":{"id":200846004,"uuid":"706366033","full_name":"proprietary/pastebin","owner":"proprietary","description":"pastebin web service written in Go see paste.libhack.so","archived":false,"fork":false,"pushed_at":"2023-10-22T09:35:38.000Z","size":60,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-04T22:45:41.446Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://paste.libhack.so","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/proprietary.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-17T20:02:40.000Z","updated_at":"2024-09-10T10:41:05.000Z","dependencies_parsed_at":"2023-10-22T10:42:03.806Z","dependency_job_id":null,"html_url":"https://github.com/proprietary/pastebin","commit_stats":null,"previous_names":["proprietary/pastebin"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/proprietary/pastebin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/proprietary%2Fpastebin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/proprietary%2Fpastebin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/proprietary%2Fpastebin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/proprietary%2Fpastebin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/proprietary","download_url":"https://codeload.github.com/proprietary/pastebin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/proprietary%2Fpastebin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278719834,"owners_count":26034053,"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-07T02:00:06.786Z","response_time":59,"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":[],"created_at":"2024-12-18T03:15:17.139Z","updated_at":"2025-10-07T04:23:54.050Z","avatar_url":"https://github.com/proprietary.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pastebin\n\nThis is a Go web service that acts as a \"pastebin\", similar to [the OG pastebin.com](https://pastebin.com) or [paste.debian.net](https://paste.debian.net). It saves and displays snippets of text files.\n\nWhat makes this different?\n\nNot only can you use the web interface, but you can also create pastes from the command line! No need to copy-paste or click through to uploading files. You can create pastes from the ``bash`` or ``zsh`` command line like so (``/usr/include/assert.h`` is just an example):\n\n```bash\ncat /usr/include/assert.h | curl --data-binary @- https://paste.libhack.so\nhttps://paste.libhack.so/4tyx4jl9\n```\n\nYou can share that link, and it will display that ``/usr/include/assert.h`` file you just uploaded.\n\nIn fact, you can make a bash alias, so that you may pipe files from the command line to create a convenient pastebin\n\n```bash\necho \"alias pastebin='curl -L --data-binary @- https://paste.libhack.so'\" \u003e\u003e ~/.bashrc\nsource ~/.bashrc\n# And now you can pipe output like so...\necho \"hello world\" | pastebin\nhttps://paste.libhack.so/lktsssj5\n```\n\n## Internals\n\n- Badger as the embedded key-value database\n- Protocol Buffers for serialization of values stored in the embedded kv database\n- Go standard library for the rest, including HTTP\n\n## Example of running with Docker\n\nNote: an environment variable (``SO_LIBHACK_PASTE_DB_PATH``) must be set pointing to a path which stores the embedded database. In the following example, that is ``/tmp/db`` which is created if it does not exist.\n\n```bash\ndocker build -t pastebin .\ndocker run -p 50998:50998 -e SO_LIBHACK_PASTE__DB_PATH=/var/db -v /tmp/db:/var/db pastebin\n```\n\n...and see the service running at ``http://127.0.0.1:50998``\n\n## License\n\nApache-2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fproprietary%2Fpastebin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fproprietary%2Fpastebin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fproprietary%2Fpastebin/lists"}