Skip to content

Instantly share code, notes, and snippets.

View chrsw's full-sized avatar

Chris Williams chrsw

  • Boston, MA
  • 05:17 (UTC -04: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'