{
"color_scheme": "Packages/Color Scheme - Default/Solarized (Dark).tmTheme",
"draw_white_space": "selection",
"font_face": "Source Code Pro",
"font_size": 14,
"highlight_line": true,
"ignored_packages":
[
"Vintage"
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
# 1. plugin | |
# Download the ruby SDK code, and copy to the plugin directory. | |
${RAILS_ROOT}/vendor/plugins/opentok | |
# You may need to create an "init.rb" file in the opentok plugin directory, | |
# and insert the following line. | |
require 'opentok' | |
# 2. database |
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
=semantic_form_for [:admin, @dog], validate: true, html: {multipart: true} do |f| | |
=f.inputs do | |
=f.input :name | |
=f.input :kennel_name | |
=f.input :birthdate | |
=f.input :gender, as: :radio, collection: {'Tik' => 'F', 'Hane' => 'M'} | |
=f.input :father_id, as: :select, collection: @dogs | |
=f.input :mother_id, as: :select, collection: @bitches | |
=f.semantic_fields_for :pictures do |pic| |
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
#!/usr/bin/env sh | |
# Title: Ruby development environment for OS X (Lion) | |
# Author: Rogelio J. Samour | |
# Warning: | |
# While it is unlikely any code below might damage your system, | |
# it’s always a good idea to back up everything that matters to you | |
# before running this script! Just in case. I am not responsible for | |
# anything that may result from running this script. Proceed at | |
# your own risk. |
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
#!/usr/bin/env sh | |
# Title: Ruby development environment for OS X (Lion) | |
# Author: Rogelio J. Samour | |
# Warning: | |
# While it is unlikely any code below might damage your system, | |
# it’s always a good idea to back up everything that matters to you | |
# before running this script! Just in case. I am not responsible for | |
# anything that may result from running this script. Proceed at | |
# your own risk. |
After upgrading to Mountain Lion, I got this message when trying to run my local rails server:
Installing rmagick (2.13.1) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
Users/user/.rvm/rubies/ruby-1.9.3-rc1/bin/ruby extconf.rb
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
# 1) Create your private key (any password will do, we remove it below) | |
$ cd ~/.ssh | |
$ openssl genrsa -des3 -out server.orig.key 2048 | |
# 2) Remove the password | |
$ openssl rsa -in server.orig.key -out server.key |