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 / osx_ssh_passphrase.md
Last active February 20, 2018 04:56
OSX Sierra SSH Passphrase persistence

OSX Sierra SSH Passphrase persistence

NB: Most people use the defult SSH key ~/.ssh/id_rsa however you can create your own so change this as needed

  1. Add the following to ~/.ssh/config
Host *
  UseKeychain yes
  AddKeysToAgent yes
  IdentityFile ~/.ssh/id_rsa
@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"