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 you receive an error message regarding the pg gem while running bundle install, try the | |
following solution. | |
[USE THIS FOR OS X] | |
gem install pg -v '0.17.1' -- --with-pg-config=/Applications/Postgres.app/Contents/Versions/9.3/bin/pg_config | |
[USE THIS FOR CentOS] | |
gem install pg -v '0.17.1' -- --with-pg-config=/usr/pgsql-9.3/bin/pg_config |
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
-------------------------------------------------------------------------------- | |
Author: John F. Hogarty | |
Create Date: 08/12/2014 @ 05:00pm est | |
Modified Date: 08/15/2014 @ 08:47am est | |
Subject: Installing Oracle Database 11g Express for CentOS 6.x | |
-------------------------------------------------------------------------------- | |
1. sudo su - |
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
[username@hostname Downloads]$ ls -l | |
total 67196 | |
-rw-rw-r-- 1 username username 67349889 Aug 19 19:37 oracle-instantclient12.1-basic-12.1.0.1.0-1.i386.rpm | |
-rw-rw-r-- 1 username username 629474 Aug 19 19:37 oracle-instantclient12.1-devel-12.1.0.1.0-1.i386.rpm | |
-rw-rw-r-- 1 username username 824523 Aug 19 19:36 oracle-instantclient12.1-sqlplus-12.1.0.1.0-1.i386.rpm | |
[username@hostname Downloads]$ sudo rpm -i oracle-instantclient12.1-basic-12.1.0.1.0-1.i386.rpm | |
[sudo] password for username: | |
[username@hostname Downloads]$ sudo rpm -i oracle-instantclient12.1-devel-12.1.0.1.0-1.i386.rpm | |
[username@hostname Downloads]$ sudo rpm -i oracle-instantclient12.1-sqlplus-12.1.0.1.0-1.i386.rpm | |
[username@hostname Downloads]$ sqlplus |
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
git fetch --all | |
git reset --hard origin/master | |
git pull origin master |
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
When I create a CentOS 6.5 VM on my MacBook Pro, via Paralles Desktop, the networking component was disabled by default. To turn up networking, do the following: | |
sudo su - # if not already root user | |
cd /etc/sysconfig/network-scripts/ | |
ls | |
vim ifcfg-eth0 | |
File looked like: | |
DEVICE=eth0 | |
HWADDR=00:XX:XX:XX:XX:XX (use your real values here) |
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
# I was proud of myself for figuring out to code the following for one of my rspec features. | |
# The test worked fine up till today. Can you see the problem? | |
# (the rest of the file has been omitted as it isn't necessary for this learning exercise.) | |
scenario 'user successfully creates a hot item' do | |
sign_in | |
create_valid_hot_item | |
end | |
def create_valid_hot_item |
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
NOTE: This step to be performed after you have installed the Oracle Instant Client for Mac OSX. | |
cd /usr/local/oracle/product/instantclient_64/11.2.0.4.0/lib/ | |
ln -s libclntsh.dylib.11.1 libclntsh.dylib | |
ln -s libocci.dylib.11.1 libocci.dylib | |
gem install ruby-oci8 |
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
NOTE: The following steps were performed based on knowledge gained | |
from the resource -> http://blog.codiez.co.za/2013/09/setup-oracle-instant-client-ruby-oci8-gem-mac/ | |
Download the required files from the Oracle Download site: | |
http://www.oracle.com/technetwork/topics/intel-macsoft-096467.html | |
instantclient-basic-macos.x64-11.2.0.4.0.zip | |
instantclient-sqlplus-macos.x64-11.2.0.4.0.zip | |
instantclient-sdk-macos.x64-11.2.0.4.0.zip |
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
Add and Enable for our rails apps: | |
app_name/Gemfile | |
gem 'hirb' | |
app_name/config/environment.rb | |
require 'hirb' | |
Hirb::View.enable | |
*** Note: If you are using the pry gem, you may need to adjust your settings. I don't think you need to update the config/environment.rb file. But you may need to create a .pryrc file with some settings for Hirb. |
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
1. rails new [app_name] --skip-test-unit | |
2. cd [app_name] | |
3. Edit the file: Gemfile to be as follows: | |
source 'https://rubygems.org' | |
ruby '2.1.2' | |
gem 'rails', '4.1.4' |