Skip to content

Instantly share code, notes, and snippets.

@ScottBrooks
ScottBrooks / .screenrc
Created February 16, 2011 23:10
My screenrc
vbell off
autodetach on
startup_message off
defscrollback 5000
hardstatus alwayslastline
hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{=kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B}%Y-%m-%d %{W}%c %{g}]'
termcapinfo xterm* ti@:te@
if
X>Y ->
true;
true -> % works as an 'else' branch
false
end
Hitting localhost:3000 a few times in my browser
MRI Ubunti
pprof.rb --text /tmp/spree | head
Total: 5811 samples
3214 55.3% 55.3% 3214 55.3% garbage_collector
262 4.5% 59.8% 421 7.2% Object#local_constants
222 3.8% 63.6% 1024 17.6% Array#collect
141 2.4% 66.1% 1836 31.6% Array#each
132 2.3% 68.3% 354 6.1% Kernel#polyglot_original_require
From 5a0d42c687b8d61a526697fe05cb86d88046b529 Mon Sep 17 00:00:00 2001
From: Scott Brooks <scott.brooks@epicadvertising.com>
Date: Thu, 8 Oct 2009 14:50:30 -0400
Subject: [PATCH] failing spec
---
libtest/StructTest.c | 25 +++++++++++++++++++++++++
spec/ffi/struct_spec.rb | 13 +++++++++++++
2 files changed, 38 insertions(+), 0 deletions(-)