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
| [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" | |
| function parse_git_branch { | |
| git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/' | |
| } | |
| PS1='\[\e[1;34m\]@\[\e[m\] \[\e[0;32m\]:\W\[\e[m\]\[\e[1;32m\] \[\033[1;31m\]$(parse_git_branch)\[\033[01;34m\] \$\[\e[m\] \[\e[1;37m\]' | |
| PATH="/opt/local/bin:$PATH" | |
| alias ls="ls -G" | |
| alias mysql="/usr/local/mysql/bin/mysql" | |
| alias mate='open -a TextMate.app' | |
| alias sub='open -a "Sublime Text 2"' |
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
| Create your amazing app, this example is for a standard apache server | |
| We want our app running at test.com/example | |
| our app is here /var/www/apps/example/ | |
| in /etc/apache2/sites-available/default (default-ssl also for https) do | |
| RackBaseURI /example | |
| <Directory /var/www/apps/example/public> |
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
| irb -r < path to app.rb > |
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
| Ever get : | |
| WARN TCPServer Error: Address already in use - bind(2) | |
| The Fix (mac and linux): | |
| $: lsof|grep 3000 <-- port number | |
| this will give you a line starting with: |
NewerOlder