Skip to content

Instantly share code, notes, and snippets.

@drewwells
drewwells / index.js
Created February 6, 2014 06:42
run via `casper test index.js`
var base = 'http://m.retailmenot.test';
var url = base + '/view/macys.com';
function getCookie (page, name) {
var cookies = page.cookies;
var val;
cookies.forEach(function (cookie) {
if (cookie.name === name) {
val = cookie.value;
}
@drewwells
drewwells / install.md
Last active August 29, 2015 13:57
Telemetry install instructions for warp-factor

###Dependencies

  • Python 2.7
  • -Chrome, Chromium or Chrome OS installed on your computer-
  • -13gigs of free disk space-

###Install instructions In this part, you will be downloading Chromium source, the new warp factor client, and setting making some binaries available in your path.

###Chromium

@drewwells
drewwells / results.html
Created March 24, 2014 17:16
DSL simulation with page-repeat
<!DOCTYPE html>
<html>
<head>
<title>Telemetry Performance Test Results</title>
<style type="text/css">
section {
background: white;
padding: 10px;
position: relative;
@drewwells
drewwells / hacked.sh
Created July 7, 2014 21:10
Hack the matrix
#!/bin/bash
sudo screen
{
"data": {
"statusCode": 100,
"statusText": "Test Started 19 seconds ago",
"id": "140719_28_HQF",
"testInfo": {
"url": "http://freedomfederation.org/",
"runs": 1,
"fvonly": 0,
"web10": 0,
@drewwells
drewwells / docker.sh
Last active August 29, 2015 14:06
Script to setup boot2docker
#!/bin/sh
# Setup boot2docker
DIR=$(pwd)
BASE=$(pwd | sed -n 's/\(\/[^/]*\).*/\1/p')
mkdir -p ~/.boot2docker
if [ ! -f ~/.boot2docker/boot2docker-1.2.0.iso ]; then
curl -L http://static.dockerfiles.io/boot2docker-v1.2.0-virtualbox-guest-additions-v4.3.14.iso -o ~/.boot2docker/boot2docker-1.2.0.iso
mv ~/.boot2docker/boot2docker.iso ~/.boot2docker/boot2docker.iso.old
ln -s ~/.boot2docker/boot2docker-1.2.0.iso ~/.boot2docker/boot2docker.iso
@drewwells
drewwells / SassMeister-input.scss
Created October 7, 2014 03:18
Generated by SassMeister.com.
// ----
// Sass (v3.2.19)
// Compass (v0.12.6)
// ----
// Sass List-Maps 1.0.0
// a libsass polyfill for rubysass "maps" data-type -- using lists
// by @lunelson
// MIT License
@drewwells
drewwells / SassMeister-input.scss
Created October 12, 2014 22:00
Generated by SassMeister.com.
// ----
// libsass (v2.0.0)
// ----
@mixin placeholder {
// Comment
&::#{$defined} {
}
}
@include placeholder;
@drewwells
drewwells / SassMeister-input.scss
Created October 12, 2014 22:03
Generated by SassMeister.com.
// ----
// libsass (v2.0.0)
// ----
$placeholder: true;
@if $placeholder {
// Comment
&::#{$defined} {
}
}
@drewwells
drewwells / SassMeister-input.scss
Created October 12, 2014 22:05
Generated by SassMeister.com.
// ----
// libsass (v2.0.0)
// ----
@if true {
// Comment
&::#{$defined} {
}
}