$ command line ruby cheat sheets
Cheat Sheet Title: [ no_spaces_alphanumeric_only ]
Cheat Sheet:*************************************************************************** Sake - system-wide Rake. For more information: http://errtheblog.com/posts/60-sake-bomb $ sudo gem install sake *************************************************************************** ** Auto Completion Of Sake Tasks *************************************************************************** bash: complete -W "$(sake -T | awk {'print $2'})" sake z: function sake_task_list { reply=(`sake -T | awk '{ print $2 }'); } compctl -K sake_task_list sake *************************************************************************** ** Pastie (http://drnicwilliams.com/2007/06/28/pastie-paradise/) *************************************************************************** $ sake -i http://pastie.caboo.se/73801.txt $ sake -T $ sake pastie:send # Sends STDIN or FILE=file to Pastie; # USAGE: cat some_code.rb | sake pastie:send # OR: sake pastie:send FILE=some_code.rb *************************************************************************** On OSX, you can get the url for your new pastie in the clipboard using pbcopy: $ cat some_code.rb | sake pastie:send | pbcopy Want to send a patch to someone via pastie? $ svn diff | sake pastie:send | pbcopy *************************************************************************** *************************************************************************** ** Load up any RubyGem into an editor from cache. *************************************************************************** To Install: $ sake -i http://pastie.org/76167.txt Example: $ sake gems:find activerecord | xargs mate ***************************************************************************
Your cheat sheet will be editable (fixable) by anyone. Each cheat sheet is essentially a wiki page. It may also be used by millions of people for reference purposes from the comfort of their command line. If this is okay with you, please save.
Advertisement