Skip to content

Instantly share code, notes, and snippets.

[client]
host = 127.0.0.1
user = ftlines
password = ftlines
protocol = tcp
[mysql]
auto-rehash
prompt = [\d]>
safe-updates
Plug 'airblade/vim-gitgutter'
Plug 'airblade/vim-rooter'
Plug 'artur-shaik/vim-javacomplete2'
Plug 'bling/vim-airline'
Plug 'mattn/gist-vim'
!1 Frequenty Asked Questions about FitNesse
!2 How do I get started running FitNesse?
!2 Can I test XXXXX?
The answer is probably yes, with a number of caveats.
First Off, FitNesse doesn't come with any tools to specifically interact with any system that you would want to test. The idea with FitNesse is that the code that connects to your system, known as fixtures, are written custom to the interaction at hand. FitNesse is just the framework for describing tests in a human-readable format that can be executed to ensure the system under test behaves the way it is known to work.
@woodybrood
woodybrood / modem_reboot_checker.rb
Created February 17, 2014 03:26
My Modem Log Script, including push notification via pushover.net. It leverages nokogiri, rushover, sqlite3 and more.
require 'rubygems'
require 'nokogiri'
require 'open-uri'
require 'sqlite3'
require_relative 'push_notifier.rb'
logsPageUrl = "http://192.168.100.1/cmLogsData.htm"
def parse_row(row)
@woodybrood
woodybrood / bootstrap_today.rb
Created February 15, 2014 17:17
My simple JIRA reporting tool. It outputs HTML to go into Evernote.
require_relative 'jira_lister.rb'
require 'yaml'
config_file = YAML.load_file(File.dirname(__FILE__) + "/jira_config.yaml")
jira = JiraLister.new(config_file)
# Show all projects
puts jira.generate_jira_list('assignee="tester" and status in ("Needs QA Review")', "JIRAs to DO")
puts jira.generate_jira_list('filter = "Tested Yesterday" AND ("Primary Assignee" = tester OR "Primary Tester" = tester)', "JIRAs Tested Yesterday")
@woodybrood
woodybrood / gist:3794799
Created September 27, 2012 15:59
Regular Expression to find wiki words in FitNesse test pages for use in Sublime Text search and replace.
\b([A-Z][a-z_]+[A-Z][a-zA-Z_]*[a-zA-Z]*\b)
@woodybrood
woodybrood / svnurl.sh
Created September 21, 2012 14:34
Alias to copy the SVN URL for the current project to the clipboard on a mac
alias svnurl="svn info | grep 'URL:.*' -o | grep 'https:.*' -o | pbcopy"
@woodybrood
woodybrood / LogitAlfred
Created September 18, 2012 14:12
Alfred Script Extension for logging from Alfred to a file in a format compatible with the FacebookIFTTT plugin for Slogger
cd ~/Dropbox/daily
file="work_log.txt";
if [ ! -e $file ]
then
touch $file;
fi
time=`echo $(date +"%B %e, %Y at %I:%M%p")`
Feature: Simple Multiplication
Scenario: Multiplying Two Numbers
Given I launch the app
Then I should see a Result of 0
When I enter 75
And I enter 3
And I tap *
Then I should see a Result of 225
@woodybrood
woodybrood / frank_style_calc_steps.rb
Created August 13, 2012 15:54
Frank Style Calculator Steps
Then /^I should see a Result of (\d+)$/ do |result|
list_of_text_contents = frankly_map( "view:'UITextField' marked:'Result'", "text" )
list_of_text_contents.should have(1).item # make sure we only matched one view with our selector
list_of_text_contents.first.should == result
end
When /^I enter (\d+)$/ do |value|
value.each_char do |number|
touch "view:'UIButton' marked:'#{number}button"
end