{"id":13414114,"url":"https://github.com/jutkko/copy-pasta","last_synced_at":"2026-01-11T23:06:24.434Z","repository":{"id":57497016,"uuid":"80292324","full_name":"jutkko/copy-pasta","owner":"jutkko","description":"Universal copy paste service, works across different machines!","archived":false,"fork":false,"pushed_at":"2020-06-20T13:33:28.000Z","size":6927,"stargazers_count":50,"open_issues_count":10,"forks_count":12,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-07-31T20:53:32.490Z","etag":null,"topics":["copy","fileshare","pasta","tool"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/jutkko.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":"2017-01-28T15:35:24.000Z","updated_at":"2023-08-18T03:39:39.000Z","dependencies_parsed_at":"2022-09-03T23:50:29.718Z","dependency_job_id":null,"html_url":"https://github.com/jutkko/copy-pasta","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jutkko%2Fcopy-pasta","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jutkko%2Fcopy-pasta/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jutkko%2Fcopy-pasta/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jutkko%2Fcopy-pasta/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jutkko","download_url":"https://codeload.github.com/jutkko/copy-pasta/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243642113,"owners_count":20323959,"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":["copy","fileshare","pasta","tool"],"created_at":"2024-07-30T20:01:58.060Z","updated_at":"2026-01-11T23:06:24.428Z","avatar_url":"https://github.com/jutkko.png","language":"Go","funding_links":[],"categories":["Utilities","公用事业公司","實用工具","工具库","工具库`可以提升效率的通用代码库和工具`","实用工具","Utility"],"sub_categories":["HTTP Clients","Utility/Miscellaneous","实用程序/Miscellaneous","高級控制台界面","Advanced Console UIs","Fail injection","查询语","交流","\u003cspan id=\"高级控制台用户界面-advanced-console-uis\"\u003e高级控制台用户界面 Advanced Console UIs\u003c/span\u003e","高级控制台界面"],"readme":"[![Build Status](https://travis-ci.org/jutkko/copy-pasta.svg?branch=master)](https://travis-ci.org/jutkko/copy-pasta)\n\n# How to use\n## Single lined stuff\nTo copy, on one machine you do\n\n```\necho \"I don't like ravioli\" | copy-pasta\n```\n\nOn the other machine you do\n\n```\ncopy-pasta\n```\n\nBoom! you should see\n\n```\nI don't like ravioli\n```\n\nin the terminal.\n\n## Multiline / Files\n```\ncat myPenne.jpg | copy-pasta\n```\n\nOn the other machine you do\n\n```\ncopy-pasta \u003e myPenne.jpg\n```\n\nBoom! You should see a copy of `myPenne.jpg` on your other machine.\n\n## Multi-user\nAre you sharing a machine with others? Or you want to have multiple clipboards?\n`copy-pasta` now supports [concourse](https://concourse.ci) `fly` like targets.\nRemember the `--target` option in the `login` command?  After specifying\nanother user like\n\n```\ncopy-pasta login --target your-copy-pasta\n\u003cEnter your S3 ACCESSKEY\u003e\n\u003cEnter your S3 SECRETACCESSKEY\u003e\n```\n\nYou can do\n\n```\ncopy-pasta target your-copy-pasta\n```\n\nYou will be using another `copy-pasta` destination. **Note the credentials can\nbe the same one!**\n\n## How does it work?\nAre you super paranoid about security? Do you sweat if you copy your\ncredentials into a copy buffer and leave it there? Then you should read on.\nHere is a diagram that briefly describes how `copy-pasta` works.\n\n\u003cimg src=\"/figures/how-it-works.png\" width=\"750\"\u003e\n\nThe communication between the machines and the storage server is done in `SSL`,\nso we can assume that it is relatively safe.\n\nWe can see that the things you copy into `copy-pasta` gets stored in plain text\non the storage server. The weakest link here will be the security of your\nbackend store. Take S3 as an example, if your bucket is private and you haven't\nshared with anyone your `ACCESSKEY` and `SECRETACCESSKEY`, you should be pretty\nsafe. On the other hand, if the backend store is either public or compromised,\nthe content copied to `copy-pasta` is in danger.\n\nIn general it is **not** advised to copy confidential content to `copy-pasta`,\n`copy-pasta` is also **not** responsible for keeping the content secure. But if\nyou are a security lax person like me, you probably can take the advantage of\nthe overwrite nature of `copy-pasta`, copy confidential content, use it and\nquickly copy something else into `copy-pasta`.\n\n# Installation\nLooking good? Can't wait to hack with `copy-pasta`? There are two ways to\ninstall `copy-pasta`. Using go, do the following setup on the two machines you\nwant to `copy-pasta`\n\n```\ngo get github.com/jutkko/copy-pasta\n```\n\nUsing `homebrew`, do\n\n```\nbrew tap jutkko/homebrew-copy-pasta\nbrew install copy-pasta\n```\n\nLogin on the machines you want to do `copy-pasta`\n\n```\ncopy-pasta login --target my-copy-pasta\n\u003cEnter your S3 ACCESSKEY\u003e\n\u003cEnter your S3 SECRETACCESSKEY\u003e\n```\n\nIf you are not using Amazon S3, or your bucket location is  not in London you\nmight want to pass the `endpoint` and `location` of your S3 backend\nimplementation when you target. Currently S3 is the only backend type\nsupported.  But I am trying to implement a new backend based on github's gists.\nStay tuned.\n\nIt is also possible to use github gists as the backend storage. Please see \n`copy-pasta gist-login --help`.\n\nIf you are interested in using another storage solution, please let me know\nin the issues page and we get the conversation started.\n\n# Uninstall\nIt depends on how you installed the binary. If by go, you should remove both\nthe `copy-pasta` repo and the binary\n\n```\nrm -rf $GOPATH/src/github.com/jutkko/copy-pasta\nrm $GOPATH/bin/copy-pasta\n```\n\nIf by homebrew, you can first remove the binary and then the tap\n\n```\nbrew uninstall copy-pasta\nbrew untap homebrew-copy-pasta\n```\n\nTo remove the config file leftover by `copy-pasta`, simply delete the\n`.copy-pastarc` file in your `$HOME`.\n\n# Running the tests\nYou will need to have a working go environment, and go to the repo\n\n```\ncd $GOPATH/src/github.com/jutkko/copy-pasta\n```\n\nInstall the awesome ginkgo testing framework\n\n```\ngo get github.com/onsi/ginkgo\ngo get github.com/onsi/gomega\n```\n\nTo run the tests\n\n```\nginkgo -r\n```\n\n# To contribute\n## Features, concerns or bugs\nPlease open an issue and talk about the feature/bug you have, I will get back\nto you very soon.\n\n## Use cases\nGot an interesting use case for `copy-pasta`? Make a PR and I will include it\nhere! Here's some\n\n### Bash\nNon-interactive logon\n\n```\nprintf \"%s\\n%s\\n\" \"$ACCESSKEY\" \"$SECRETACCESSKEY\" | copy-pasta login --target my-target\n```\n\nPaste straight to pbcopy\n```\n#!/bin/bash\ncopy-pasta-to-pbcopy() {\n  copy-pasta | pbcopy\n}\n```\n\nCopy straight into copy-paste\n\n```\n#!/bin/bash\npbpaste-to-copy-pasta() {\n  pbpaste | copy-pasta\n}\n```\n\n... And yours?\n\n# copy-pasta?\nCredits to my colleague [Vlad](https://github.com/vlad-stoian). Genius!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjutkko%2Fcopy-pasta","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjutkko%2Fcopy-pasta","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjutkko%2Fcopy-pasta/lists"}