Skip to content

Instantly share code, notes, and snippets.

View vayu-technology's full-sized avatar

Vayu Technology vayu-technology

View GitHub Profile
@vayu-technology
vayu-technology / fast.rb
Created November 18, 2016 10:40
Check network over time with fast.com + ruby
require 'rubygems'
require 'capybara'
require 'capybara/dsl'
require 'capybara/rspec'
require 'capybara/poltergeist'
require 'csv'
require 'pry'
include Capybara::DSL
Capybara.register_driver :poltergeist do |app|
@vayu-technology
vayu-technology / gist:31f92239424e7d9a0dde6c920715d94f
Created April 21, 2016 05:25
install phantomjs-2.1.1 on codeship
#!/bin/bash
# Install a custom version 2 of PhantomJS, http://phantomjs.org/
#
# Include in your builds via
# \curl -sSL https://gist.githubusercontent.com/mlocher/f0f731dfa93c82d0fa86/raw/phantomjs2.sh | bash -s
PHANTOMJS_URL="https://s3.amazonaws.com/codeship.io/checkbot/binaries/phantomjs_2.0.1"
CACHED_DOWNLOAD="${HOME}/cache/phantomjs_2.0.1"
# official packages are now available, thus print an info message
echo -e "\e[36mOfficial PhantomJS 2 packages are now available from phantomjs.org\e[39m"