# Anchor
click_link 'Save'
# Button
click_button 'awesome'
# Both above
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def fill_stripe_elements(card: '4242424242424242', expiry: '1234', cvc: '123', postal: '12345') | |
| using_wait_time(10) { | |
| frame = find('#card-element > div > iframe') | |
| within_frame(frame) do | |
| card.to_s.chars.each do |piece| | |
| find_field('cardnumber').send_keys(piece) | |
| end | |
| find_field('exp-date').send_keys expiry | |
| find_field('cvc').send_keys cvc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # enable Docker for your repository | |
| options: | |
| docker: true | |
| pipelines: | |
| branches: | |
| development: | |
| - step: | |
| # python image with aws-cli installed |
####Assumptions
- QGIS installed (if not: http://qgis.com/)
We will use the Electoral District and Polling Division shapefiles found on the Elections Ontario site:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def snail(array) | |
| result = Array.new | |
| n = array.length | |
| runs = n.downto(0).each_cons(2).to_a.flatten | |
| delta = [[1,0], [0,1], [-1,0], [0,-1]].cycle | |
| x, y = -1, 0 | |
| for run in runs | |
| dx,dy = delta.next | |
| run.times do |i| | |
| x += dx |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # Name: nginx-tls.conf | |
| # Auth: Gavin Lloyd <gavinhungry@gmail.com> | |
| # Desc: Nginx SSL/TLS configuration for "A+" Qualys SSL Labs rating | |
| # | |
| # Enables SPDY, PFS, HSTS and OCSP stapling. Configuration options not related | |
| # to SSL/TLS are omitted here. | |
| # | |
| # Example: https://www.ssllabs.com/ssltest/analyze.html?d=gavinhungry.io | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| build_package_patch_ruby_railsexpress() { | |
| fetch_git rvm-patchsets git://github.com/skaes/rvm-patchsets.git master | |
| for p in rvm-patchsets/patches/ruby/2.3.3/railsexpress/* ; do | |
| patch -p1 < $p | |
| done | |
| } | |
| install_package "openssl-1.0.2d" "https://www.openssl.org/source/openssl-1.1.0e.tar.gz#57be8618979d80c910728cfc99369bf97b2a1abd8f366ab6ebdee8975ad3874c" mac_openssl --if has_broken_mac_openssl | |
| install_package "ruby-2.3.3" "http://cache.ruby-lang.org/pub/ruby/2.3/ruby-2.3.3.tar.gz#241408c8c555b258846368830a06146e4849a1d58dcaf6b14a3b6a73058115b7" patch_ruby_railsexpress ldflags_dirs standard verify_openssl |
I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
SSH into Root
$ ssh root@123.123.123.123
Change Root Password