Live data from Hacker News

Share Code Snippets With Ease

lukabratos.me

1–10 of 11 posts

Re: Share Code Snippets With Ease

#5
post #3

Ruby is not standard on Mac OS X. EDIT: actually it is, thanks the_french. I would be happy to rewrite that in vanilla shell this evening.

IIRC ruby is in fact standard and was recently updated to be 2.0.0 on the latest version of OS X.

   /usr/bin/ruby -v
   ruby 2.0.0p247 (2013-06-27 revision 41674) [universal.x86_64-darwin13]

Re: Share Code Snippets With Ease

#6
post #3

Ruby is not standard on Mac OS X. EDIT: actually it is, thanks the_french. I would be happy to rewrite that in vanilla shell this evening.

IIRC ruby is in fact standard and was recently updated to be 2.0.0 on the latest version of OS X. /usr/bin/ruby -v ruby 2.0.0p247 (2013-06-27 revision 41674) [universal.x86_64-darwin13]

My bad! Completely forgot about that!

Considering that rvm and gems are a real pain in the azz, I think this could still benefit from a rewrite.

Re: Share Code Snippets With Ease

#7
post #6

Earlier quoted context omitted.

IIRC ruby is in fact standard and was recently updated to be 2.0.0 on the latest version of OS X. /usr/bin/ruby -v ruby 2.0.0p247 (2013-06-27 revision 41674) [universal.x86_64-darwin13]

My bad! Completely forgot about that! Considering that rvm and gems are a real pain in the azz, I think this could still benefit from a rewrite.

Use rbenv:

https://github.com/sstephenson/rbenv

Best decision I've made.

Re: Share Code Snippets With Ease

#9
post #3

Ruby is not standard on Mac OS X. EDIT: actually it is, thanks the_french. I would be happy to rewrite that in vanilla shell this evening.

That's a strange comment. OS X does indeed ship with Ruby. Maybe you are thinking about Rails? Or how developers often update it to a different version before using it? Mac OS X Mavericks includes Ruby 2.0.0p247.

Re: Share Code Snippets With Ease

#10
I have something similar as a shell script which can take a file as argument or paste its stdin, but it is for a personal pastebin (well it is public but I don't see the necessity of advertising it).

I found this one which does something quite similar: http://sprunge.us/

Post reply on HN