Skip to content

Instantly share code, notes, and snippets.

View jeffshantz's full-sized avatar

Jeff Shantz jeffshantz

  • Western University
  • London, Canada
View GitHub Profile
@jeffshantz
jeffshantz / Backtrace
Created April 23, 2013 18:09
Error when using `collection_action` with Rails 3.2.13 and ActiveAdmin 0.6.0. I am running Ruby 1.9.3-p374 on Darwin. https://github.com/gregbell/active_admin/issues/827
actionpack (3.2.13) lib/action_view/helpers/capture_helper.rb:142:in `content_for'
activeadmin (0.6.0) lib/active_admin/views/pages/layout.rb:15:in `main_content'
activeadmin (0.6.0) lib/active_admin/views/pages/base.rb:78:in `block (2 levels) in build_main_content_wrapper'
arbre (1.0.1) lib/arbre/element/builder_methods.rb:31:in `block in build_tag'
arbre (1.0.1) lib/arbre/context.rb:92:in `with_current_arbre_element'
arbre (1.0.1) lib/arbre/element/builder_methods.rb:49:in `with_current_arbre_element'
arbre (1.0.1) lib/arbre/element/builder_methods.rb:26:in `build_tag'
arbre (1.0.1) lib/arbre/element/builder_methods.rb:39:in `insert_tag'
arbre (1.0.1) lib/arbre/element/builder_methods.rb:18:in `div'
activeadmin (0.6.0) lib/active_admin/views/pages/base.rb:77:in `block in build_main_content_wrapper'
@jeffshantz
jeffshantz / README.md
Last active August 29, 2015 14:07
Patching and Compiling Bash Manually on OS X

Patching and Compiling Bash Manually on OS X

The following instructions demonstrate how to patch and compile Bash manually on OS X. The instructions were tested on OS X 10.9.5, but should work on earlier versions of the operating system.

Prerequisites

First, you need to ensure that the latest version of Xcode is on your system. You can download this from the App Store for free. Next, open a terminal and accept the Xcode license agreement:

@jeffshantz
jeffshantz / a.c
Last active August 29, 2015 14:07
Static Example
#include <stdio.h>
#include "b.h"
#include "t.h"
int main()
{
b();
printf("a.c: i = %d\n", i);
}
@jeffshantz
jeffshantz / README.md
Last active August 29, 2015 14:08
Binary comparison script for Laura

Download the script and make it executable:

wget http://bit.ly/1rwckTZ -O compare-files
chmod +x compare-files

Run the script on two or more files: