Skip to content

Instantly share code, notes, and snippets.

@vielmetti
Created January 22, 2013 04:38
Show Gist options
  • Select an option

  • Save vielmetti/4592068 to your computer and use it in GitHub Desktop.

Select an option

Save vielmetti/4592068 to your computer and use it in GitHub Desktop.
This is a tiny review of nopaste, a Perl application that you can
get from CPAN (App:Nopaste) which abstracts the interfaces to various
systems like "gist" that take text and turn it into a web page.
I haven't used CPAN for a while, and I just update my Mac to 10.6
(Snow Leopard), so actually installing this took loading XCode and
a whole mess of CPAN dependencies. I got stuck once or twice - note
to self, don't update CPAN in the middle of doing an install, because
you'll break build scripts - but once I made it through that everything
was peachy.
The command line for this post was
nopaste -s Gist -o
which says roughly "take standard input, send it to Gist, then open the
page in your browser". There are more command line options and Perl
language bindings as well.
I'm fond of command line tools and always have been, so getting something
like this meets some basic need. If you are looking for a way to automate
creating web pages from a command line, this could be your way to do it.
Edward Vielmetti
January 21, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment