- Text Content Generator - http://www.lipsum.com
- Favicon Generator - http://tools.dynamicdrive.com/favicon
- Data Generator - https://mockaroo.com/
- Mobile Mockup Generator - https://mockuphone.com
- Logo Generator - https://www.logaster.com
- UUID Generator - https://www.uuidgenerator.net/
- Hash Generator - https://passwordsgenerator.net/sha256-hash-generator/
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
| # Add new inflection rules using the following format | |
| # (all these examples are active by default): | |
| # ActiveSupport::Inflector.inflections do |inflect| | |
| # inflect.plural /^(ox)$/i, '\1en' | |
| # inflect.singular /^(ox)en/i, '\1' | |
| # inflect.irregular 'person', 'people' | |
| # inflect.uncountable %w( fish sheep ) | |
| # end | |
| ActiveSupport::Inflector.inflections do |inflect| | |
| inflect.clear |
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
| # Artigo ogirinal por JORGE VILAÇA | |
| # https://jorgevilaca.wordpress.com/2012/03/06/nacionalizando-rails-para-pt-br/ | |
| # config/application.rb | |
| config.i18n.default_locale = :'pt-BR' # Define o locale padrão como pt-BR | |
| config.i18n.available_locales = ['en', :'pt-BR'] # Adiciona pt-BR aos locais disponíveis | |
| config.time_zone = 'La Paz' | |
| config.active_record.default_timezone = :local |
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
| 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: | |
| abbr_day_names: |
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
| sudo apt-get install postfix | |
| sudo pico /etc/postfix/main.cf | |
| # Remove $myhostname | |
| #mydestination = $myhostname |
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
| # Edit credentials | |
| EDITOR=nano rails credentials:edit | |
| # Generate Random key | |
| rails secret | |
| # Use Example on Devise | |
| development: |
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
| pt-BR: | |
| simple_form: | |
| "yes": 'Sim' | |
| "no": 'Não' | |
| required: | |
| text: 'necessário' | |
| mark: '*' | |
| # You can uncomment the line below if you need to overwrite the whole required html. | |
| # When using html, text and mark won't be used. | |
| # html: '<abbr title="required">*</abbr>' |
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
| sudo systemctl status rc-local | |
| sudo systemctl enable rc-local | |
| sudo nano /etc/systemd/system/rc-local.service | |
| ####### Copie os dados a baixo ##### | |
| [Unit] | |
| Description=/etc/rc.local Compatibility | |
| ConditionPathExists=/etc/rc.local |
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
| Ruby Sass is deprecated and will be unmaintained as of 26 March 2019. | |
| * If you use Sass as a command-line tool, we recommend using Dart Sass, the new | |
| primary implementation: https://sass-lang.com/install | |
| * If you use Sass as a plug-in for a Ruby web framework, we recommend using the | |
| sassc gem: https://github.com/sass/sassc-ruby#readme | |
| * For more details, please refer to the Sass blog: | |
| http://sass.logdown.com/posts/7081811 |
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
| # Colocar no layout | |
| <%= csrf_meta_tags %> | |
| <%= csp_meta_tag %> | |
| <%= stylesheet_link_tag 'application', media: 'all' %> | |
| <%= stylesheet_link_tag params[:controller] if !stylesheet_exists?(params[:controller]) %> | |
| <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %> | |
| <%= yield :javascript %> | |
| <%= javascript_include_tag params[:controller] if javascript_exists?(params[:controller]) , 'data-turbolinks-track': 'reload' %> |