Skip to content

Instantly share code, notes, and snippets.

View michael-harrison's full-sized avatar

Michael Harrison michael-harrison

View GitHub Profile
@michael-harrison
michael-harrison / gist:5140611
Last active December 14, 2015 19:59
Creating a CentOS 6.3 with Puppet VM with Vagrant and VirtualBox
# Download and install VirtualBox (see https://www.virtualbox.org/wiki/Downloads) in your flavour of OS
# Download and install Vagrant (see http://downloads.vagrantup.com/) in your flavour of OS
# Get the box from Puppet Labs
# For other boxes check out http://puppet-vagrant-boxes.puppetlabs.com/ and http://www.vagrantbox.es/
vagrant box add centos63 http://puppet-vagrant-boxes.puppetlabs.com/centos-63-x64.box
# Init you new VM
mkdir my_vm
cd my_vm
@michael-harrison
michael-harrison / test_multi_select.rb
Created November 18, 2012 00:37
jQuery Chosen Testing with Capybara
=begin
Notes
=====
Labels: On the label you should put a "for" attribute if you're not using something like simple_form
This helps capybara to find your field
e.g. <label for="my_field_id">Some label</label>
=end
field = "Label on my field"
value = "existing option in list"