Skip to content

Instantly share code, notes, and snippets.

View raulfernando's full-sized avatar

Raul Fernando raulfernando

View GitHub Profile
@raulfernando
raulfernando / capybara cheat sheet
Created May 15, 2019 12:05 — forked from zhengjia/capybara cheat sheet
capybara cheat sheet
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')
@raulfernando
raulfernando / rails http status codes
Created April 23, 2019 12:47 — forked from mlanett/rails http status codes
HTTP status code symbols for Rails
HTTP status code symbols for Rails
Thanks to Cody Fauser for this list of HTTP responce codes and their Ruby on Rails symbol mappings.
Status Code Symbol
1xx Informational
100 :continue
101 :switching_protocols
102 :processing
@raulfernando
raulfernando / docker-ce-ubuntu-install.sh
Created April 5, 2017 14:46 — forked from daqing/docker-ce-ubuntu-install.sh
Install Docker-CE on ubuntu
sudo apt update
sudo apt-get -y install \
apt-transport-https \
ca-certificates \
curl
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"