{"id":21954847,"url":"https://github.com/thefox/pastebin","last_synced_at":"2025-04-23T12:06:20.135Z","repository":{"id":62558895,"uuid":"45616047","full_name":"TheFox/pastebin","owner":"TheFox","description":"Just another Pastebin.com CLI script, but you can even login with your user account.","archived":false,"fork":false,"pushed_at":"2020-03-23T19:57:40.000Z","size":35,"stargazers_count":7,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-23T12:05:48.650Z","etag":null,"topics":["mit-license","pastebin","ruby","ruby-gem"],"latest_commit_sha":null,"homepage":"https://fox21.at","language":"Ruby","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/TheFox.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG-v1.md","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":"2015-11-05T14:25:16.000Z","updated_at":"2025-02-18T16:27:20.000Z","dependencies_parsed_at":"2022-11-03T11:15:51.054Z","dependency_job_id":null,"html_url":"https://github.com/TheFox/pastebin","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheFox%2Fpastebin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheFox%2Fpastebin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheFox%2Fpastebin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheFox%2Fpastebin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheFox","download_url":"https://codeload.github.com/TheFox/pastebin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250430584,"owners_count":21429324,"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","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":["mit-license","pastebin","ruby","ruby-gem"],"created_at":"2024-11-29T07:26:21.100Z","updated_at":"2025-04-23T12:06:20.090Z","avatar_url":"https://github.com/TheFox.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pastebin\n\nCommand line interface for [Pastebin.com](https://pastebin.com/).\n\nJust another Pastebin.com CLI script, but you can even login with your user account.\n\n## Project Outlines\n\nThe project outlines as described in my blog post about [Open Source Software Collaboration](https://blog.fox21.at/2019/02/21/open-source-software-collaboration.html).\n\n- The main purpose of this software is to provide a command-line interface to pastebin.com.\n- The features should not go beyond pastebin.com's features and functions. So the features of this software are limited to those of pastebin.com.\n- This list is open. Feel free to request features.\n\n## Installation\n\nThe preferred method of installation is via RubyGems.org:  \n\u003chttps://rubygems.org/gems/thefox-pastebin\u003e\n\n```bash\ngem install thefox-pastebin\n```\n\nor via `Gemfile`:\n\n```ruby\ngem 'thefox-pastebin', '~\u003e1.2'\n```\n\nUse it in your sources:\n\n```ruby\nrequire 'thefox-pastebin'\n```\n\n## Usage\n\nUnless you are using `-f` the default input is [STDIN](https://en.wikipedia.org/wiki/Standard_streams).\n\n### Help\n\n```bash\npastebin -h\n```\n\n### Skel example\n\n```bash\npastebin --skel\n```\n\nThe default settings file is under `~/.pastebinrc`. You need to create it by yourself.\n\n### Create a settings file\n\n```bash\npastebin --skel \u003e ~/.pastebinrc\n```\n\n### Print default settings\n\n```bash\npastebin -D\n```\n\n### Use a different settings file\n\n```bash\npastebin -c ~/.pastebinrc_user2\n```\n\n### Set a name for a paste\n\n```bash\npastebin -n 'hello world'\n```\n\n### Set an expiration date for a paste (10 minutes)\n\n```bash\npastebin -e 10m\n```\n\n### Set a format/language for a paste (PHP)\n\n```bash\npastebin -l php\n```\n\n### Paste a specific file\n\n```bash\npastebin -f file.txt\n```\n\n### Create an unlisted paste\n\n```bash\npastebin -u\n```\n\n### Create a private paste\n\n```bash\npastebin -p\n```\n\n### Get the raw contents of a paste\n\n```bash\npastebin -r \u003cID\u003e\n```\n\n### Login\n\nAs a registered pastebin.com user you can login and let `pastebin` create pastes on behalf of you. You need to enter your username and password. The login credentials are not stored to any configuration file or anywhere else.\n\n```bash\npastebin --login\n```\n\nAfter a successfull login you need to add the `API_USER_KEY=` line to your settings file (`~/.pastebinrc`). This user key is associated to your pastebin.com user.\n\nYou can also use your own Developer API Key. See [pastebin.com API documentation](https://pastebin.com/api) for more details.\n\n### Examples\n\n```bash\npastebin -n hello_world -e 10m -f hello_world.txt\npastebin -n 'PHP Script' -l php -f login.php\npastebin -u -e 1m -l php -f test.php\npastebin -n 'Collect Script' -p -e 10m -l awk -f collect.awk\npastebin -r UJwPUmKp\ncat /tmp/hello_world.txt | pastebin\n```\n\n## Project Links\n\n- [Gem](https://rubygems.org/gems/thefox-pastebin)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthefox%2Fpastebin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthefox%2Fpastebin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthefox%2Fpastebin/lists"}