Skip to content

Instantly share code, notes, and snippets.

@agibralter
Created February 4, 2011 19:14
Show Gist options
  • Select an option

  • Save agibralter/811578 to your computer and use it in GitHub Desktop.

Select an option

Save agibralter/811578 to your computer and use it in GitHub Desktop.
tmux ree script
#!/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
#!/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
#!/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