| ⌘T | go to file |
| ⌘⌃P | go to project |
| ⌘R | go to methods |
| ⌃G | go to line |
| ⌘KB | toggle side bar |
| ⌘⇧P | command prompt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Prepare ################################################################### | |
| # Remove RVM | |
| rvm implode | |
| # Ensure your homebrew is working properly and up to date | |
| brew doctor | |
| brew update | |
| ## Install ################################################################### |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # blog post: | |
| # Before using this initializer, you must set up Cancan. First, add the gem to your Gemfile: | |
| # | |
| # gem 'cancan' | |
| # | |
| # Next, generate and edit an Ability class: | |
| # | |
| # rails generate cancan:ability | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| alias html5='wget --no-check-certificate http://github.com/h5bp/html5-boilerplate/zipball/v2.0stripped ./; mv ./v2.0stripped ./boilerplate.zip; unzip boilerplate.zip; mv h5bp-html5-boilerplate-*/* .; rm -rf ./boilerplate.zip; rm -rf ./h5bp-html5-*;' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| is your load out of control? try this. | |
| The file will be /etc/apache2/mods-enabled/passenger.conf | |
| There is a line I added in there about max instances | |
| If you make it the number of cores you have in your host instance (4 in this case) | |
| Stop Apache | |
| Then make sure no Ruby procs are left over | |
| Then start Apache | |
| The problem should go away | |
| I don't expect it to happen again |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Make sure you use: | |
| response.headers["P3P"] = 'CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"' | |
| otherwise IE will not accept the session ;) | |
| back to work. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| This one stumped me for about 5 hours. | |
| Passenger Error: invalid byte sequence in US-ASCII | |
| using padrino | |
| add this to your boot.rb: | |
| Encoding.default_external = Encoding::UTF_8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| The solution: | |
| sudo ln -s /usr/local/git/bin/git /usr/local/bin/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Remove tracking on a file (that is in your git ignore already but in the repo) but not delete it: | |
| git rm -r --cached supersecretpasswords.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Compiled source # | |
| ################### | |
| *.com | |
| *.class | |
| *.dll | |
| *.exe | |
| *.o | |
| *.so | |
| # Packages # |
NewerOlder