Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
export JAVA_OPTS="-Xmx1280m -XX:ReservedCodeCacheSize=128m -XX:MaxPermSize=128m -Djava.net.preferIPv4Stack=true -XX:NewRatio=3 -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSClassUnloadingEnabled -Dfile.encoding=UTF-8 -XX:+TieredCompilation -XX:TieredStopAtLevel=1"
export JRUBY_OPTS="--2.0 -J-noverify -J-XX:+TieredCompilation -J-XX:TieredStopAtLevel=1"
torquebox run -b 0.0.0.0 --max-threads=32
@MGalv
MGalv / gist:4693635
Created February 1, 2013 19:51
Git flow propossal
Initial setup
$git clone https://grant_hudgens@bitbucket.org/NikkiD/phoenix.git
$git branch development
$git checkout development
$git pull origin development
Push commits to remote
$git checkout development
$git pull origin development
$git branch epic-<something>
@MGalv
MGalv / gist:4556884
Created January 17, 2013 15:45
Diff
MGalvBook:PHO MGalv$ svn diff
Index: app/models/section.rb
===================================================================
--- app/models/section.rb (revision 2253)
+++ app/models/section.rb (working copy)
@@ -5,6 +5,7 @@
belongs_to :program
belongs_to :page_layout
has_many :custom_widgets
+ has_many :section_contents