Skip to content

Instantly share code, notes, and snippets.

View raulfernando's full-sized avatar

Raul Fernando raulfernando

View GitHub Profile
@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"
@raulfernando
raulfernando / comandosFit.md
Last active August 24, 2017 13:04
Comandos Git

#GIT

Estados

  • Modificado (modified);
  • Preparado (staged/index)
  • Consolidado (comitted);

Ajuda

@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 / 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')
---
pt-BR:
activerecord:
errors:
messages:
record_invalid: 'A validação falhou: %{errors}'
restrict_dependent_destroy:
has_one: Não é possível excluir o registro pois existe um %{record} dependente
has_many: Não é possível excluir o registro pois existem %{record} dependentes
date:
# Desativa o CTRL+B e ativa o CTRL+A como leader key
unbind C-b
set -g prefix C-a
# Indece das janelas sempre começando em 0
set -g base-index 0
# Reclassifica o indece sempre que uma janela é destruida
set -g renumber-windows on