mirror of
https://github.com/matze/wastebin.git
synced 2026-04-25 16:45:59 +03:00
[GH-ISSUE #51] Document: How to paste from stdin #41
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/wastebin-matze#41
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @pinpox on GitHub (Apr 8, 2024).
Original GitHub issue: https://github.com/matze/wastebin/issues/51
Hey 👋
I mostly use pastebins when debugging sysemtems to quickly paste logs somewhere to share with coworkers. I used to have a different pastebin which allowed to do something like this:
Which would paste that text from stdin and print a url with the created past. Is it possible to create such a command for wastebin with curl?
I saw the example for clipboards at https://github.com/matze/wastebin?tab=readme-ov-file#paste-from-clipboard but that is exactly what I need and I have not yet figured out how to make it work.
Maybe you already know how to create an alias or script for this and could document it.
@pinpox commented on GitHub (Apr 8, 2024):
Answering my own question:
This bash function allows pasting by doing
cat file.txt | paste:@mokurin000 commented on GitHub (Apr 5, 2025):
This would result a strange HTML response contains
wrong sizeon 3.0.0my command was: