Skip to content

Instantly share code, notes, and snippets.

View nritholtz's full-sized avatar

Nathaniel Ritholtz nritholtz

  • IDT Corporation
View GitHub Profile
@nritholtz
nritholtz / ruby-racer-mac
Created April 13, 2016 16:54
ruby-racer-mac fix
brew tap homebrew/dupes # Thanks Tom
brew install apple-gcc42
export CC=/usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/gcc-4.2
export CXX=/usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/g++-4.2
export CPP=/usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/cpp-4.2
brew uninstall v8
gem uninstall libv8
// Emacs mode hint: -*- mode: JavaScript -*-
function Controller() {
installer.autoRejectMessageBoxes();
installer.installationFinished.connect(function() {
gui.clickButton(buttons.NextButton);
})
}
Controller.prototype.WelcomePageCallback = function() {
@nritholtz
nritholtz / install-redis.sh
Last active February 29, 2016 17:33 — forked from four43/install-redis.sh
Install Redis
#!/bin/bash
# from here: http://www.codingsteps.com/install-redis-2-6-on-amazon-ec2-linux-ami-or-centos/
# and here: https://raw.github.com/gist/257849/9f1e627e0b7dbe68882fa2b7bdb1b2b263522004/redis-server
###############################################
# To use:
# wget https://gist.githubusercontent.com/nritholtz/3fd0923391d949a21141/raw/install-redis.sh
# chmod 777 install-redis.sh
# ./install-redis.sh
###############################################
echo "*****************************************"
// Emacs mode hint: -*- mode: JavaScript -*-
function Controller() {
installer.autoRejectMessageBoxes();
installer.installationFinished.connect(function() {
gui.clickButton(buttons.NextButton);
})
}
Controller.prototype.WelcomePageCallback = function() {
// Emacs mode hint: -*- mode: JavaScript -*-
function Controller() {
installer.autoRejectMessageBoxes();
installer.installationFinished.connect(function() {
gui.clickButton(buttons.NextButton);
})
}
Controller.prototype.WelcomePageCallback = function() {
@nritholtz
nritholtz / gist:7610862e314d2a70ddcd
Created August 12, 2015 02:10
Sample JSON output
[{"keyword":"Feature","name":"Line Item Type transactions","line":2,"description":"","tags":[{"name":"@line_item_type","line":1}],"id":"line-item-type-transactions","uri":"features/line_item_type/line_item_type.feature","elements":[{"comments":[{"value":"###@testdebug ","line":219}],"keyword":"Scenario","name":"Deactivate Line Item Category that has line item types assigned - line item category and line item types should become deactivated; try to activate line item type - should get alert message \"Line Item Type can not be activated until its Line Item Category disabled\"","line":222,"description":"","tags":[{"name":"@update","line":220},{"name":"@update_line_item_type","line":221}],"id":"line-item-type-transactions;deactivate-line-item-category-that-has-line-item-types-assigned---line-item-category-and-line-item-types-should-become-deactivated;-try-to-activate-line-item-type---should-get-alert-message-\"line-item-type-can-not-be-activated-until-its-line-item-category-disabled\"","type":"scenario","steps":[
@nritholtz
nritholtz / Capybara Webkit Crash - 5-15-2015
Created May 15, 2015 15:48
Capybara Webkit Crash - 5-15-2015
@test @manage_users
Feature: Manage Users
In order to manage users
As an aggregator
I want to sign in on the homepage
And manage users
@invite @help_text
Scenario Outline: Invite Users help text # features/test/portal_settings/invite_user.feature:9
Given I have signed into the portal as a <type> aggregator # features/test/step_definitions/shared_steps.rb:1
@nritholtz
nritholtz / Rake Build results
Last active August 29, 2015 14:17
Capybara-Webkit:Include Things Rake Build results
$ git checkout include-things
Branch include-things set up to track remote branch include-things from origin.
Switched to a new branch 'include-things'
$ rake build
Info: creating stash file /Users/nritholtz/workspace/original-capybara-webkit/.qmake.stash
cd src/ && ( test -e Makefile.webkit_server || /usr/bin/qmake /Users/nritholtz/workspace/original-capybara-webkit/src/webkit_server.pro CONFIG+=test -o Makefile.webkit_server ) && /Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile.webkit_server
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -pipe -O2 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -mmacosx-version-min=10.7 -Wall -W -fPIE -DQT_NO_DEBUG -DQT_WEBKITWIDGETS_LIB -DQT_WIDGETS_LIB -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I/usr/local/Cellar/qt5/5.4.0/mkspecs/macx-clang -I. -I/usr/local/Cellar/qt5/5.4.0/lib/QtWebKitWidgets.framework/Versions/5/Headers -I/