Skip to content

Instantly share code, notes, and snippets.


Terence Lee hone

View GitHub Profile
hone / gist:a7864a7012dd23a42787
Last active Aug 29, 2015
A Call For Help: Testing Changes to Ruby 2.1.x's GC
View gist:a7864a7012dd23a42787

A Call For Help: Testing Changes to Ruby 2.1.x's GC


There's been some known memory issues when upgrading from Ruby 2.0.0 to Ruby 2.1. Ruby 2.1 introduced a new garbage collector (GC), RGenGC, to improve performance. It traded more memory use for speed. The new GC does less aggressive memory clearing. Doing less work means it's faster.

This sounds great, but on lower memory instances it became an issue since there is less memory available to trade. This patch had been applied to Ruby 2.1 and the hopes are it will solve this [issue]( 9607#note-11). By introducing more frequent GC runs, it will reduce the amount of memory being used.

Great, How Can I Help?

View gist:13243
#include <string>
#include "image_loader.h"
#include <cv.h>
#include <highgui.h>
* constructs a box filter. a matrix with all 1s and is normalized.
* @param size of box filter as an int.
void makeBoxFilter( CvMat * mat, int w )
View gist:24697
#include <mpi.h>
#include <iostream>
#include <string.h>
#include <gameoflife.hpp>
const int DIMENSIONS = 16;
const int DEAD = 0;
const int ALIVE = 1;
const int ITERATIONS = 64;
View .screenrc
# detach on hangup
autodetach on
# # don't display the copyright page
startup_message off
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}]'
# terminfo and termcap for nice 256 color terminal
View gist:161804
=> Mixing in Lockdown version: 1.1.0
=> Requiring Lockdown rules engine: /home/hone/Projects/oib/boxboss/lib/lockdown/init.rb
responding to GET index
>> Lockdown: Permission not found in db: Login, creating.
>> Lockdown: Permission not found in db: Venue Director Dashboard, creating.
>> Lockdown: Permission not found in db: Register Account, creating.
>> Lockdown: Permission not found in db: My Account, creating.
>> Lockdown: UserGroup not in the db: Venue Director, creating.
should redirect to the login page if the user is not logged in
View gist:164630
In a Clarion workshop, victims, I mean participants, usually sit or lounge in a
rough circle, where each in turn has to sit silently while every other participant
attacks, I mean critiques, the victim’s baby, I mean manuscript. The process
is brutal at the start, but because everyone is both attacker and attacked, most
participants soon learn valuable lessons in how to take and give criticism. And
until you’ve learned to take criticism you will always meet barriers to growth
in your craft.
View gist:169206
$ bin/git_pivot current_sprint
| ID | Type | Owner | State | Name |
| 683969 | feature | | unstarted | RT action |
View gist:170411
class Test
puts 'hi'
puts 'world'
[:foo, :boo].each {|method_name| Test.send(method_name) }
View gist:171383
# normal new.html.erb
<p>This is some text</p>
# outputting a variable name,
# name = "joe"
<p>Hello <%= name %></p>
You can’t perform that action at this time.