What “cheat” offers is a plethora (currently 601) of text-based cheat sheets at the tip of your fingers. Go ahead, give it a try:
jerod@mbp:~$ sudo gem install cheat jerod@mbp:~$ cheat apache2
Pretty cool, huh?
Some cheats are kind of long, so pipe them to “less” for pagination:
jerod@mbp:~$ cheat git | less
List all the cheats available:
jerod@mbp:~$ cheat sheets
Or find one matching a search string:
jerod@mbp:~$ cheat sheets | grep [your search string]
To learn more about cheat:
jerod@mbp:~$ cheat cheat
Cheat on Rails
There a bunch of Rails-related cheats, which are great help in a pinch. Here are a few that I highly recommend:
- status_codes - all HTTP status codes and their matching Rails symbols
- rails_migrations - for when you forget valid data types
- rubydebug - debugging is powerful but it’s easy to forget how
- rails_tips - nice reminders and tips for beginners
- jquery - you are using jQuery in your Rails apps, right?
Let me know if you find any juicy cheats that I should know about.