Skip to content

Instantly share code, notes, and snippets.

View scottwillson's full-sized avatar

Scott Willson scottwillson

View GitHub Profile
diff --git a/test/unit/report/entertainment/deal_email_file_test.rb b/test/unit/report/entertainment/deal_email_file_test.rb
index 2089d2f..2f97681 100644
--- a/test/unit/report/entertainment/deal_email_file_test.rb
+++ b/test/unit/report/entertainment/deal_email_file_test.rb
@@ -1,10 +1,7 @@
require File.dirname(__FILE__) + "/../../../test_helper"
require File.dirname(__FILE__) + '/../entertainment_setup'
-module Report
- module Entertainment
def wait_until_visible(locator, seconds = 10)
raise ArgumentError if locator.blank?
begin
Timeout::timeout(seconds) do
until page.has_css?(locator) && find(locator).visible?
sleep 0.25
end
end
rescue Timeout::Error => e
@scottwillson
scottwillson / Tsung Rails authenticity_token
Created January 30, 2013 21:07
If you're using Tsung to test a Rails site that has CSRF protection, Tsung needs to parse the authenticity_token and submit it when POSTing. I could only find outdated examples. The snippet below works.
<request>
<dyn_variable name="authenticity_token" ></dyn_variable>
<http url="/registrations/new" version="1.1" method="GET"></http>
</request>
<request subst="true">
<http url="/registrations" method="POST" version="1.1"
contents="authenticity_token=%%_authenticity_token%%&amp;first_name=Jane"/>
</request>
[8/1/13 1:48:31 PM] Jesse Garrison: Oh yeah, did people want to get some group food for games? Pizza or something?
[8/1/13 1:48:55 PM] Wilson Rector: maybe, I might just get some los gorditos
[8/1/13 1:48:57 PM] Cameron Thomas: Sizzle pie
[8/1/13 1:49:05 PM] Wilson Rector: or if we are kicked out to lucky lab...
[8/1/13 1:49:06 PM] Robert Peterson: jesse, order 5 pizzas!
[8/1/13 1:54:18 PM] Michael Klopot: (pizza) x ?
[8/1/13 1:55:03 PM] Scott Willson: I will get beer for all. I'll feed myself, though.
[8/1/13 1:55:42 PM] Jesse Garrison: With beer? (giggle)
[8/1/13 1:55:52 PM] Scott Willson: Liquid diet
[8/1/13 1:56:04 PM] Jesse Garrison: "The Beer Cleanse"
@scottwillson
scottwillson / gist:8546664
Created January 21, 2014 19:31
Dallas Eats
Smoke - Amazing brisket; good custom flavored whiskeys
http://smokerestaurant.com/
Chicken Scratch / The Foundry - Lunch time huge chicken biscuit sandwiches. Bacon is awesome too! I think they have dinner food but only been for lunch.
http://cs-tf.com/wordpress/location/
Craft and Growler - Amazing beer selection, also some Oregon beers if missing PDX
http://www.craftandgrowler.com/#contact
Il Cane Rosso - Great pizza; the smore dessert calzone is yummy; This place is in Deep Ellum which apparently has a good night life scene which I have yet to experience. Seemed a little sketch when I was there. :)
@scottwillson
scottwillson / gist:9398314
Created March 6, 2014 20:07
Office and Administrative Assistant Job Posting
Bespoke offers is a new service from Barclaycard which gives everyone access to lots of money saving offers from big brands to local favorites.
We are looking for a full time, experienced Office and Administrative Assistant to provide office, administrative and team support for our local Portland office and remote engineering team.
Job Responsibilities:
• Answering the phone
• Ordering and maintaining office supplies and equipment
• Implementing office security procedures
• Interacting and communicating with office landlord and manager
• Arranging travel accommodations in compliance with company policies
export RUBY_GC_HEAP_FREE_SLOTS="600000"
export RUBY_GC_HEAP_GROWTH_FACTOR="1.25"
export RUBY_GC_HEAP_GROWTH_MAX_SLOTS="300000"
export RUBY_GC_HEAP_INIT_SLOTS="600000"
export RUBY_GC_MALLOC_LIMIT="64000000"
export RUBY_GC_OLDMALLOC_LIMIT="64000000"
unset RUBY_GC_HEAP_FREE_SLOTS
unset RUBY_GC_HEAP_GROWTH_FACTOR
unset RUBY_GC_HEAP_GROWTH_MAX_SLOTS
input {
file {
type => "rails logs"
path => "/Users/sw/devel/racing_on_rails/log/logstash_development.log"
codec => json {
charset => "UTF-8"
}
}
}
[Error] Error: [$injector:modulerr] Failed to instantiate module rapQueue due to:
[$injector:modulerr] Failed to instantiate module rapQueue.rapQueueController due to:
[$injector:modulerr] Failed to instantiate module rapQueue.rapQueueModalService due to:
[$injector:modulerr] Failed to instantiate module rapQueue.reassignController due to:
[$injector:modulerr] Failed to instantiate module dateInUserTimeZoneFilter due to:
[$injector:modulerr] Failed to instantiate module function (input, format, locale, strict) due to:
[$injector:unpr] Unknown provider: input
http://errors.angularjs.org/1.2.28/$injector/unpr?p0=input
http://0.0.0.0:3000/assets/angular/angular.js?body=1:79:21
http://0.0.0.0:3000/assets/angular/angular.js?body=1:3802:34
2.1.0 :008 > Category.order(:name).pluck(:name).each {|c| puts(c)}.size
#<Spreadsheet::Formula:0x0000000b60eea0>
#<Spreadsheet::Formula:0x0000001059f028>
#<Spreadsheet::Formula:0x00000015fac818>
#<Spreadsheet::Formula:0x0000001652a240>
#<Spreadsheet::Formula:0x00000016b0b628>
(Beginner) Category 3 Men 14-18
(Beginner) Category 3 Men 19-34
(Beginner) Category 3 Men 35-44
(Beginner) Category 3 Men 45-54