Skip to content

Instantly share code, notes, and snippets.

View keit's full-sized avatar

Kei Takashima keit

View GitHub Profile
@keit
keit / homebrew_postgres_osx.txt
Last active March 26, 2016 03:50
How to fix postgres after installed from homebrew on osx
1) launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
2) rm -rf /usr/local/var/postgres
3) initdb /usr/local/var/postgres -E utf8
4) createdb
5) launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
@keit
keit / gist:6288233
Last active February 22, 2018 15:01
Rails4 + Bower + Bootstrap set-up
This document is outdated.
You should read David Bryant Copeland's excellent online book: http://angular-rails.com/crud_recipe.html
---------------------------------------------------------------------------------------------------------------
I think it's better to install javascript/css libraries using Bower rather than gem which is Ruby packager.
1. Install Rails 4 and create a new project.
2. Install bower(Note you need to install node first.)
sudo npm install -g bower