Skip to content

Instantly share code, notes, and snippets.

T.J. Schuck tjschuck

Block or report user

Report or block tjschuck

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

Keybase proof

I hereby claim:

  • I am tjschuck on github.
  • I am tjschuck ( on keybase.
  • I have a public key whose fingerprint is 3F3D 0091 1836 6DA9 912E 335C 4C50 5364 CDB0 6BF3

To claim this, I am signing this object:

View gist:5128149c8525269ad666
# Lossy local network
alias lossy='sudo ipfw pipe 1 config bw 10bits && sudo ipfw add 10 pipe 1 tcp from any to me 80'
alias halflossy='sudo ipfw pipe 2 config bw 2000bits && sudo ipfw add 10 pipe 2 tcp from any to me 80'
alias delossy='sudo ipfw delete 10'
tjschuck / gist:1152573
Created Aug 17, 2011
Local REE Settings
View gist:1152573
export RUBY_HEAP_FREE_MIN=100000
export RUBY_HEAP_MIN_SLOTS=600000
export RUBY_GC_MALLOC_LIMIT=50000000
View gist:759069
# In Gemfile...
group :development do
gem 'sqlite3-ruby', '1.2.5', :require => 'sqlite3'
group :production do
gem 'mysql2'
View gist:752135
class SupportGroup < ActiveRecord::Base
# Define valid language options for validations below
languages = %w(en es)
# Repeat valid languages for use outside this file with @support_group.languages
def languages
%w(en es)
validates :language, :inclusion => { :in => languages }
You can’t perform that action at this time.