Skip to content

Instantly share code, notes, and snippets.

View chrsw's full-sized avatar

Chris Williams chrsw

  • Boston, MA
  • 16:56 (UTC -05:00)
  • X @chrsw
View GitHub Profile
@cyrus-and
cyrus-and / pastebin.sh
Created November 4, 2012 19:53
Quick way to pipe data to pastebin.com directly from shell
#!/usr/bin/env bash
# usage: <command> | pastebin [+|++|+++]
#
# (none): paste expires in 10 minutes
# +: paste expires in 1 hour
# ++: paste expires in 1 day
# +++: paste expires in 1 months
HOST='pastebin.com'