Skip to content

Instantly share code, notes, and snippets.

@k0s
k0s / pbmoz.py
Created July 28, 2011 16:08 — forked from djmitche/pbmoz.py
stdin-to-pastebin script by @catlee
#!/usr/bin/env python
import urllib, sys
if len(sys.argv) == 2:
url = "http://%s.pastebin.mozilla.org" % sys.argv[1]
fmt = sys.argv[1]
else:
url = "http://pastebin.mozilla.org"
fmt = "None"