💾 ✖️
NAME
 
  termb.in - a paste bin that just works™
 
SYNOPSIS
 
  <file nc -Nc termb.in 1
 
  curl -sd 'Hello world' https://termb.in
 
DESCRIPTION
 
  It's sometimes useful to be able to share small pieces of text or images.
  Particularly snippets of code, screenshots or other such things. This site
  allows that, while being as simple as possible.
 
  Go to /new or use curl to create a paste:
 
    echo foo | curl --data-binary @- https://termb.in
 
  PUT is also supported:
 
    curl -T file.txt termb.in
 
  As well as netcat (various port numbers work, assuming your firewall allows
  them):
 
    echo hello | nc -Nc termb.in 9999
 
  This needs OpenBSD netcat for -c (TLS).
 
WRAPPER SCRIPT
 
  Given the simple curl or netcat usage a premade script isn't provided,
  something as simple as this will work:
 
    mkdir -p ~/bin
    cat > ~/bin/tb <<'EOF'
#!/bin/sh
curl --no-progress-meter --netrc-optional -T "${1:--}" https://termb.in/"$2"
EOF
    chmod +x ~/bin/tb
 
  This allows:
 
    # Pipe content
    echo foo | tb
 
    # Upload some-file
    tb some-file
 
    # Pipe content with a filename provided
    echo foo | tb - foo.txt
 
    # ANSI support too!
    tdfiglet -r Hello | tb
 
TIPS
 
  If you use the same IP address you can edit or delete the paste. Updating a
  paste with auth is supported by using a HTTP password.
 
  Set up some credentials first (do this once):
 
    rand=$(openssl rand -base64 18)
    echo "machine termb.in login \"\" password $rand" >> ~/.netrc
 
  Then use curl with the --netrc (-n) option to send the credentials:
 
    url="$(curl -nd 'some data' termb.in)"
    echo $url
    curl -nd 'new data' $url
 
  If you use curl on the paste URL, you'll get the raw content (or send a
  "Accept: text/plain" header for other tools):
 
    curl termb.in/tb.1
 
RETENTION
 
  Pastes are deleted after a varying period up to around a year. The larger the
  data the sooner it will be deleted. No guarantees either way; if other people
  paste larger stuff we'll have to force expiry to be sooner. There are no
  guarantees.
 
  If you want to delete a paste sooner, leave the tab open and press the red X
  or use curl:
 
    curl -nX DELETE https://termb.in/...
 
PRIVACY
 
  We respect your privacy, but unfortunately some people like to abuse sites
  like this. This means we keep logs of paste creation, including the
  following:
 
    - Timestamp
    - Source IP address
    - Per tab UUID (allows editing the paste while the tab is open, not stored
      longterm)
 
  Illegal or questionable content (doxxing, copyright violations, etc.) is not
  welcome, it will be deleted and you will be banned.
 
  Executable files (.exe, etc.) and archives (.zip, .tar.gz, etc.) aren't
  permitted to limit abuse, other file types are generally allowed.
 
CONTACT
 
  For abuse, etc. https://forms.gle/CQT9146FvSZSdxXE8

🌀
⬆️ 📋 ❔