Ruby nopaste utility

Ruby, cross-platform

When discussing programming on IRC, it is common to use a “nopaste” site to exchange code snippets instead of dumping them into the discussion. This over-engineered Ruby program automates this process.

Download

You will need to make it executable on unix-like systems. For Windows, you’ll need to add .rb to the filename, I expect.

Comments

  1. gongadze

    Wrote at 2005-12-04 00:03 UTC using Opera 8.51 on Windows (?):

    If I try to upload files by typing in command line:
    [cli]
    % ruby nopaste.rb -n gonga – Type Control-D to end.
    Hello, hei
    ^Z
    Standard input => http://rafb.net/paste/results/FBOrml43.html
    [/cli]
    Ctrl-D did not work
    In windows ctrl-Z is the winner :]
  2. gongadze

    Wrote at 2005-12-04 00:25 UTC using Opera 8.51 on Windows (?):

    Here is my patch file to debug your upload-script:

    47a48
    > PROXY = “http://127.0.0.1:8080”
    246c247,248
    < h = Net::HTTP.new(uri.host, uri.port)—-
    > proxy =URI.parse(PROXY)
    > h = Net::HTTP.new(uri.host, uri.port,proxy.host,proxy.port)