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 redis with homebrew :) | |
$ brew install redis | |
# Create a deamon | |
$ sudo vim /Library/LaunchDaemons/io.redis.redis-server.plist | |
# Paste the following content | |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> |
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
gem install pg -- --with-pg-config=/Applications/Postgres.app/Contents/Versions/9.3/bin/pg_config | |
use sudo find / -name "pg_config" to find the path |
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
brew update | |
Note: In OSX 10.9+ you may need to install xCode command tools to allow you to install libiconv. | |
xcode-select --install | |
then install a newer version of libiconv | |
brew install libiconv | |
then link your new iconv libs: | |
brew link libiconv |
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
sudo /Applications/Install\ OS\ X\ Yosemite.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled --applicationpath /Applications/Install\ OS\ X\ Yosemite.app --nointeraction |
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
Step 1 | |
Go to oracle web site for some downloads http://www.oracle.com/technetwork/topics/intel-macsoft-096467.html. | |
Step 2 | |
Download: instantclient-sqlplus, instantclient-sdk, instantclient-basic | |
Step 3 | |
Create directories at /opt/oracle incase its not yet created with following command: | |
$ mkdir /opt/oracle |
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 the Server | |
brew update | |
brew install rabbitmq | |
The RabbitMQ server scripts are installed into /usr/local/sbin. This is not automatically added to your path, so you may wish to add | |
PATH=$PATH:/usr/local/sbin to your .bash_profile or .profile. | |
The server can then be started with rabbitmq-server. |
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
Add to .pryrc | |
Moped::BSON = BSON |
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
Edit .inputrc | |
Comment line! :-) |
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
# Export | |
$ heroku pgbackups:capture | |
$ curl -o latest.dump `heroku pgbackups:url --app APP` | |
$ pg_restore --verbose --clean --no-acl --no-owner -h localhost -U myuser -d mydb latest.dump | |
# Import | |
$ PGPASSWORD=mypassword pg_dump -Fc --no-acl --no-owner -h localhost -U myuser mydb > mydb.dump | |
$ heroku pgbackups:restore DATABASE 'https://s3.amazonaws.com/me/items/3H0q/mydb.dump' | |
https://devcenter.heroku.com/articles/heroku-postgres-import-export |
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
source 'https://rubygems.org' | |
ruby '2.2.0' | |
gem 'rails', '4.2.0' | |
# gem 'devise' | |
# DB | |
# gem 'mysql2' | |
# gem 'pg' |
OlderNewer