workflow:
$ rails g model NameOfModel
invoke active_record
create db/migrate/YYYYMMDDHHMMSS_create_name_of_models.rb| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| Enable Colorful Terminal in Debian and Ubuntu | |
| `vim .bashrc | |
| Enabling 256 color mode in Ubuntu’s Bash terminal | |
| When I first connected to my headless Ubuntu server and started opening files in Vim, I couldn’t figure out why it was ignoring my Vim color schemes. Everything was displaying in garish blues, reds and yellows. | |
| It took little digging around to figure out that 256 color mode isn’t enabled by default in some versions of Ubuntu, including the server version of Ubuntu 11.10 that I was using. This is how I got my color schemes working. | |
| To determine what mode you’re currently running in, use the following command: | |
| `tput colors` |