This file contains 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
curl -H 'Accept: application/json' -H 'Content-Type: application/json' -X POST -d '{ "user": { "email": "test@email.com", "password": "password" } }' http://localhost:3000/users | |
curl -H 'Accept: application/json' -H 'Content-Type: application/json' -X POST -d '{ "email": "test@email.com", "password": "password" }' http://localhost:3000/users/sign_in | |
curl -H 'Accept: application/json' -H 'Content-Type: application/json' -H 'X-API-EMAIL: user@example.com' -H 'X-API-TOKEN: 2-D9jBtnAPcP8fppzJAL' -X GET http://localhost:3000/private_homes |
This file contains 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/bash | |
echo "Installing Kids Ruby!" | |
sudo apt-get install git | |
# rbenv | |
cd | |
git clone git://github.com/sstephenson/rbenv.git .rbenv | |
echo `export PATH="$HOME/.rbenv/bin:$PATH"` >> ~/.bash_profile | |
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile |
This file contains 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
# http://ryanbigg.com/2010/12/ubuntu-ruby-rvm-rails-and-you/ | |
sudo apt-get install build-essential git-core curl | |
bash < <(curl -s https://rvm.beginrescueend.com/install/rvm) | |
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"' >> ~/.bashrc | |
source .bashrc |
This file contains 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
newshinymac:~ yangtheman$ /Developer/usr/bin/xcodebuild -version | |
Xcode 4.2 | |
Build version 4D199 | |
newshinymac:~ yangtheman$ brew install ntfs-3g | |
==> Installing ntfs-3g dependency: pkg-config | |
==> Downloading http://pkgconfig.freedesktop.org/releases/pkg-config-0.27.tar.gz | |
######################################################################## 100.0% | |
==> ./configure --disable-debug --prefix=/usr/local/Cellar/pkg-config/0.27 --with-pc-path=/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig:/usr/lib/pkgconfig | |
==> make | |
==> make check |
This file contains 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
user www-data; | |
worker_processes 10; | |
pid /var/run/nginx.pid; | |
events | |
{ | |
worker_connections 1024; |
This file contains 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
upstream unicorn_server { | |
# This is the socket we configured in unicorn.rb | |
server unix:/var/run/unicorn.sock | |
fail_timeout=0; | |
} | |
server { | |
listen 80; | |
client_max_body_size 4G; | |
server_name picpler.com; |
This file contains 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
2012-10-09T19:54:46+00:00 app[web.1]: Rendered shared/_header.html.haml (75.4ms) | |
2012-10-09T19:54:46+00:00 app[web.1]: Rendered shared/_trackers.html.haml (14.5ms) | |
2012-10-09T19:54:46+00:00 app[web.1]: Rendered shared/_footer.html.haml (21.8ms) | |
2012-10-09T19:54:46+00:00 app[web.1]: Completed 500 Internal Server Error in 1374ms (Views: 167.4ms | ActiveRecord: 54.5ms) | |
2012-10-09T19:54:46+00:00 heroku[router]: GET www.picpler.com/places dyno=web.1 queue=0 wait=0ms service=1779ms status=500 bytes=5879 | |
2012-10-09T19:54:46+00:00 heroku[router]: GET www.picpler.com/assets/application-b1a625acbad7bb91815d78c9195ab079.css dyno=web.1 queue=0 wait=1ms service=82ms status=200 bytes=156193 | |
2012-10-09T19:54:46+00:00 heroku[router]: GET www.picpler.com/assets/application-49e2a5e977547ad2ab276eede7660f58.js dyno=web.1 queue=0 wait=0ms service=15ms status=200 bytes=384722 | |
2012-10-09T19:54:49+00:00 heroku[router]: GET www.picpler.com/assets/picpler-icons.png dyno=web.1 queue=0 wait=0ms service=11ms status=200 bytes=35891 |
This file contains 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
yangtheman:~/ror/picpler(master)$ RAILS_ENV=production bundle exec rake assets:precompile | |
DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /Users/yangtheman/ror/picpler/Rakefile:7) | |
/Users/yangtheman/.rvm/rubies/ruby-1.9.3-p194/bin/ruby /Users/yangtheman/.rvm/gems/ruby-1.9.3-p194/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets | |
DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.ru |
This file contains 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
# Install gcc-4.2.1 via brew | |
yangtheman:~$ brew install apple-gcc42 | |
==> Downloading http://r.research.att.com/tools/gcc-42-5666.3-darwin11.pkg | |
######################################################################## 100.0% | |
==> Caveats | |
NOTE: | |
This formula provides components that were removed from XCode in the 4.2 | |
release. There is no reason to install this formula if you are using a |
This file contains 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
development: | |
# Configure available database sessions. (required) | |
sessions: | |
# Defines the default session. (required) | |
default: | |
# Defines the name of the default database that Mongoid can connect to. | |
# (required). | |
database: vstandup_development | |
# Provides the hosts the default session can connect to. Must be an array | |
# of host:port pairs. (required) |
OlderNewer