paste.borsanza.com

Help

The things you can't see at a glance. For the basics (who sees it, how long it lasts), see the FAQ.

When creating

  • Screenshots: copy it (Print Screen, Win+Shift+S, Cmd+Ctrl+Shift+4) and press Ctrl+V anywhere on the home page.
  • Files: drag them anywhere on the page, or click “Attach”.
  • Ctrl+Enter (Cmd+Enter on Mac) shares it without reaching for the button.
  • The Tab key types a tab in the text. “Tabs” turns them into spaces when saving.
  • If you choose Markdown, CSV / TSV, JSON or Terminal output, the link opens straight in its special view. On automatic, if it looks like one of them, a button appears to view it that way.

Ways to view a link

By changing the end of the address (using Ab3xY9kQ as an example):

/Ab3xY9kQThe text, colored and with line numbers.
/Ab3xY9kQ.nlnWithout line numbers, to copy a piece by hand.
/Ab3xY9kQ.mdMarkdown as a document: headings, lists, tables, code. Images from other sites aren't loaded until you click them.
/Ab3xY9kQ.csvTable. Click a column to sort (again, reversed; a third time, back to the original). It understands commas, semicolons and tabs, and numbers like 1,234.50. “First row: header” turns it into an ordinary row.
/Ab3xY9kQ.jsonCollapsible tree, with “Expand all” and “Collapse all”. “Indented text” shows it neatly formatted (and that's what “Copy” copies). If it's malformed, it tells you the line and column of the error.
/Ab3xY9kQ.termTerminal output with its colors, just like in the console.
/Ab3xY9kQ.txtRaw text, with no page around it. With ?download=1, it downloads.
/Ab3xY9kQ.file.pngThe attached file, as is.

“Wrap lines”, light or dark mode (☀/☾ at the top right) and the language (at the bottom) are remembered in your browser.

Linking to lines

Click a line number and the address ends in #L12; holding Shift, you select a range (#L12-L20). Whoever opens that link will see those lines highlighted and the page will jump straight to them. “Copy link” already includes the lines. Click the same line again to clear it.

Deleting early

In the browser you created it from, a “Delete” button appears on its page. The key to delete it is only stored in that browser: if you clear its data or open it in another one, the button won't appear (but it will still delete itself when it expires).

If you upload it from the terminal, the reply includes the command to delete it.

From the terminal

With curl, nothing to install. The reply is the link and, on the second line, how to delete it.

# The output of a command, or a text file
command | curl -s --data-binary @- https://paste.borsanza.com
curl -s -T file.json https://paste.borsanza.com          # language from the extension

# Any file (image, zip…), with some text if you like
curl -s -F file=@screenshot.png https://paste.borsanza.com
curl -s -F file=@data.zip -F 'text=<notes.txt' https://paste.borsanza.com

# Options: lang, expires (1h, 1d, 1w or 1m; 1d by default), desc, nick
df -h | curl -s --data-binary @- 'https://paste.borsanza.com/?expires=1h&desc=disks'

# With colors (opens in .term)
git diff --color | curl -s --data-binary @- https://paste.borsanza.com

# Delete
curl -X DELETE 'https://paste.borsanza.com/Ab3xY9kQ?k=<key>'

If you don't choose a language, colored output goes to the terminal view and JSON to its tree. To always have it at hand, add this to your ~/.bashrc and use pb file or command | pb:

pb() { curl -s --data-binary @"${1:--}" https://paste.borsanza.com; }

And curl https://paste.borsanza.com reminds you of all this right in the terminal (in another language with ?hl=es_ES, ?hl=fr_FR…).

Share something