#GIT
- Modificado (modified);
- Preparado (staged/index)
- Consolidado (comitted);
| # 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 |
| --- | |
| 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: |
| =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') |
| 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 |
| 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" |