Pastebin CLI for Unix reddit / irc ---------------------------------------------------------------------- Iamubergeek · 2011-01-02 18:29 Its completely written in python. Comments are welcomed.I think i posted it in the right sub reddit. ---------------------------------------------------------------------- Nitrodist · 2011-01-02 18:43 Should probably be in /r/programming ---------------------------------------------------------------------- Iamubergeek · 2011-01-02 18:46 How do i change it ? ---------------------------------------------------------------------- Nitrodist · 2011-01-02 19:24 Delete the submission and resubmit it in the proper category. ---------------------------------------------------------------------- gencha · 2011-01-23 15:29 Of all sites like that, pastebin.com is probably the worst. Please consider using another service (like [pastie.org](http://pastie.org)). ---------------------------------------------------------------------- sillyfofilly · 2011-04-10 17:37 A couple of quick things I noticed: In install.py you can remove the getpass dependency and get the path to .bashrc in a way that doesn't require string concatenation with: os.path.expanduser("~/.bashrc") in pastebin.py line 40, if len(sys.argv)==1: it would be better to have this check as if len(sys.argv) != 2: So that it will only accept a single argument. Currently all arguments but the first one will be silently ignored. Also in pastebin.py, validate() can be replaced with a call to [this](http://docs.python.org/library/stdtypes.html#dict.get) function So, line 35 format=validate(format) could be replaced with format = formats.known_formats.get(format,"plain") ---------------------------------------------------------------------- Jack-is · 2011-06-13 05:47 I'd say it's relevant to people seeking help via IRC, especially those stuck in a CLI. ---------------------------------------------------------------------- Jack-is · 2011-06-13 05:47 Does this do anything differently from wgetpaste?