Created
February 4, 2011 19:14
-
-
Save agibralter/811578 to your computer and use it in GitHub Desktop.
tmux ree script
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
| #!/usr/bin/env bash | |
| case "$rvm_ruby_string" in | |
| ree*) | |
| # export RUBY_HEAP_MIN_SLOTS=1000000 | |
| # export RUBY_HEAP_SLOTS_INCREMENT=1000000 | |
| # export RUBY_HEAP_SLOTS_GROWTH_FACTOR=1 | |
| # export RUBY_GC_MALLOC_LIMIT=1000000000 | |
| # export RUBY_HEAP_FREE_MIN=500000 | |
| export RUBY_GC_MALLOC_LIMIT=200000000 | |
| export RUBY_HEAP_MIN_SLOTS=500000 | |
| export RUBY_HEAP_SLOTS_GROWTH_FACTOR=1 | |
| export RUBY_HEAP_SLOTS_INCREMENT=250000 | |
| echo "GC TWEAKED!" | |
| ;; | |
| *) | |
| unset RUBY_HEAP_MIN_SLOTS RUBY_HEAP_SLOTS_INCREMENT RUBY_HEAP_SLOTS_GROWTH_FACTOR RUBY_GC_MALLOC_LIMIT RUBY_HEAP_FREE_MIN | |
| ;; | |
| esac |
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
| #!/bin/bash | |
| tmux new-session -d -s sweet | |
| tmux rename-window 'sweet' | |
| tmux select-window -t sweet:0 | |
| tmux split-window -h 'exec tmux-sweet-command' | |
| tmux split-window -v -t 0 'exec tmux-sweet-command' | |
| tmux split-window -v -t 1 'exec tmux-sweet-command' | |
| tmux -2 attach-session -t sweet |
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
| #!/bin/bash | |
| rvm use ree | |
| exec $SHELL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment