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
| #!/bin/sh | |
| # check for where the latest version of IDEA is installed | |
| IDEA=`ls -1d /Applications/IntelliJ\ * | tail -n1` | |
| wd=`pwd` | |
| # were we given a directory? | |
| if [ -d "$1" ]; then | |
| # echo "checking for things in the working dir given" | |
| wd=`ls -1d "$1" | head -n1` |
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
| /** | |
| * Like an internal redirect or an proxy. The URL in the browser doesn't | |
| * change. | |
| */ | |
| public Promise<Result> forwardTo(String url) { | |
| Promise<WS.Response> response = WS.url(url).get(); | |
| return response.map(new Function<WS.Response, Result>() { | |
| public Result apply(WS.Response response) { | |
| // Prevent browser from caching pages - this would be an | |
| // security issue |
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
| Use /usr/libexec/java_home -v 1.7 command on a terminal shell to figure out where is your java 1.7 home directory |
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
| brew install mysql | |
| ==> Installing mysql dependency: openssl | |
| ==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/openssl-1.0 | |
| ######################################################################## 100.0% | |
| ==> Pouring openssl-1.0.1k.yosemite.bottle.tar.gz | |
| ==> Caveats | |
| A CA file has been bootstrapped using certificates from the system | |
| keychain. To add additional certificates, place .pem files in | |
| /usr/local/etc/openssl/certs |
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
| #if brew is already installed: | |
| rm -rf /usr/local/Cellar /usr/local/.git && brew cleanup | |
| ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
| \curl -L https://get.rvm.io | bash -s stable --ruby | |
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
| Apparently this has to be done explicitly now... | |
| ActionView::Template::Error (application.css isn't precompiled) | |
| bundle exec rake assets:precompile |
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
| <%= form_for [:office, image], :action => 'update', :method => "PUT" do |f| %> | |
| <input type='hidden' name='id' value='<%= image.id %>'> | |
| <input type='hidden' name='listing_id' value='<%= listing.id %>'> | |
| <%= f.submit "Set Default", :class => 'btn btn-link' %> | |
| <% end %> |
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
| #Rolling a Rails 4 project back to Rails 3 caused this error for me. Deleting the following line from config/environments/development.rb fixed the issue: | |
| config.active_record.migration_error = :page_load |
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
| # Since Rails ships with so many dependencies these days, we're going to need to install a Javascript runtime like NodeJS. This # lets you use Coffeescript and the Asset Pipeline in Rails which combines and minifies your javascript to provide a faster # # # production environment. | |
| # To install NodeJS, we're going to add it using a PPA repository: | |
| sudo add-apt-repository ppa:chris-lea/node.js | |
| sudo apt-get update | |
| sudo apt-get install nodejs | |
| gem install rails --version '~> 3.2.9' |
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
| #ERROR Installing Rails - failed to build native extensions | |
| #This seemed to fix it: | |
| sudo apt-get install build-essential | |
| sudo apt-get install curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev | |
| #`require': no such file to load — mkmf (LoadError) | |
| sudo apt-get install ruby-dev |
NewerOlder