Skip to content

Instantly share code, notes, and snippets.

View janmejay's full-sized avatar

Janmejay Singh janmejay

View GitHub Profile
@janmejay
janmejay / offcpu_data.json
Last active June 22, 2017 12:43
Off-CPU data model for UI consumption
//Frame dictionary
{"FrameId1": "java.lang.blah.blah:80", "...": "..."}
//Syscall dictionary
{"SycallId1": "open()", "...": "..."}
//Data model for a unique backtrace in off-cpu stack sample tree
{
backtrace_id: 35,
ctx_switches : {
@janmejay
janmejay / tlb-gtac-abstract-and-outline
Created June 30, 2011 13:05
gtac2011 talk details(abstract, outline and speaker info)
Title: "Test Load Balancer - rocket booster for your build"
============================================================
Abstract:
-------------------
The problem:
@janmejay
janmejay / better_fbh.user.js
Created April 8, 2011 10:01
Renders "Failed Tests" list on "Go" "failed build history page" by aggregating data across different jobs and pipeline instances. [Usage: can be installed using Greasemonkey in Firefox OR as a browser extension on Chromium/GoogleChrome]
// ==UserScript==
// @name Better FBH
// @namespace Go
// @description FBH failed tests aggregator
// @include */go/pipelines/*/tests
// ==/UserScript==
FailedBuildHistory = function() {
function add_data_pane(self, holder) {
self.body = document.createElement('div');
From 52859e4f013512157ab86cea4e89df5b651af88d Mon Sep 17 00:00:00 2001
From: Janmejay Singh <singh.janmejay@gmail.com>
Date: Tue, 14 Dec 2010 20:37:51 +0530
Subject: [PATCH] rake_task now capable of loading specs with single and double quotes in path
---
lib/rspec/core/rake_task.rb | 2 +-
spec/rspec/core/rake_task_spec.rb | 32 ++++++++++++++++++++++++++++++++
2 files changed, 33 insertions(+), 1 deletions(-)
set-window-option -g mode-keys emacs
set-window-option -g window-status-current-bg red
set-window-option -g window-status-current-fg white
set-window-option -g window-status-current-attr 'bold'
set-window-option -g window-status-current-attr 'bold'
set-window-option -g window-status-fg black
set-window-option -g window-status-bg white
set-window-option -g automatic-rename on
set-window-option -g utf8 on
(load-file "~/emacs_extensions/init.el")
ActionView::Base.class_eval do
$render_expectation_matcher_loaded = true
def set_render_expectation options_map
options_map.reverse_merge!(:with => [], :times => 1, :return => nil)
_get_expectation_map[options_map[:with]] = options_map.except(:with).merge(:expected_times => options_map[:times])
end
def _get_expectation_map
self.instance_variable_get('@render_expectations') || self.instance_variable_set('@render_expectations', {})