Skip to content

Instantly share code, notes, and snippets.

@jamur2
jamur2 / checker.rb
Last active November 9, 2015 22:13
MDash eligibility reason alerting
require 'web_smoke_test_tool'
Capybara.register_driver :poltergeist do |app|
Capybara::Poltergeist::Driver.new(app, phantomjs_options: ['--ignore-ssl-errors=yes'], timeout: 240)
end
Capybara.default_driver = :poltergeist
login = WebSmokeTestTool::SetupEvents::OtfLogin.new(url: 'http://monitoring-dash.va.opower.it')
login.fire
count = 0
<html>
<head>
<title>title</title>
<script>
var someHtmlString = "</script><script>alert('hi!');</script><script>";
</script>
</head>
<body>
<h1>this is a test</h1>
<html>
<head>
<title>title</title>
<script>
var someHtmlString = "
</script>
<script>
alert('hi!');
</script>
<script>

Keybase proof

I hereby claim:

  • I am jamur2 on github.
  • I am jamur2 (https://keybase.io/jamur2) on keybase.
  • I have a public key whose fingerprint is 97CC 9F0B 26C3 EBD7 EBBD E4A6 678F 7B81 670F 0DCE

To claim this, I am signing this object:

@jamur2
jamur2 / style.css
Created April 20, 2014 21:07
Fastmail: plaintext email monospace Stylish style
@-moz-document url-prefix("https://www.fastmail.fm/mail") {
.message pre {
font-family: monospace;
}
.TextView textarea {
font-family: monospace;
}
}