$ cd ~/.ssh
$ openssl genrsa -des3 -out local_ssl.orig.key 2048
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
| # default to spell check off for html files, but let us toggle it back on with | |
| # command pallete | |
| # | |
| # ref: https://github.com/atom/spell-check/issues/137#issuecomment-613583440 | |
| # ref: https://discuss.atom.io/t/how-to-toggle-off-spell-check-on-startup/39062/7 | |
| atom.workspace.observeTextEditors (editor) -> | |
| if editor.element.spellcheck | |
| if editor.getGrammar().id? && editor.getGrammar().id.includes("html") | |
| setTimeout -> | |
| atom.commands.dispatch(atom.views.getView(editor), 'spell-check:toggle') |
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
| # ------------------------------------------------------------------------------------------------- | |
| # monkey patches ActionView::Helpers::Tags module and adds a wrapper tag. additionally, | |
| # patches ActionView::Helpers::FormBuilder to add a `wrapper` method. this will allow you to | |
| # use the following in your forms: | |
| # | |
| # <%= f.wrapper :email, :div, class: "control" do %> | |
| # <%= f.email_field :email, placeholder: "you@example.com", class: "input is-danger" %> | |
| # <% end %> | |
| # | |
| # we do it this way, so the wrapper is aware of the model object it's building, and thus the |
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
| class ApplicationSystemTestCase < ActionDispatch::SystemTestCase | |
| def click_invisible(element) | |
| script = <<-JS | |
| arguments[0].click(); | |
| JS | |
| execute_script(script, element.native) | |
| end | |
| def scroll_to(options = {}) |
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
| GEM | |
| remote: https://rubygems.org/ | |
| specs: | |
| actioncable (6.0.0.beta3) | |
| actionpack (= 6.0.0.beta3) | |
| nio4r (~> 2.0) | |
| websocket-driver (>= 0.6.1) | |
| actionmailbox (6.0.0.beta3) | |
| actionpack (= 6.0.0.beta3) | |
| activejob (= 6.0.0.beta3) |
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
| module JavascriptDriver | |
| def self.included(base) | |
| base.class_eval do | |
| include Capybara::DSL # make the Capybara DSL available in all javascript tests | |
| # we can't have our tests runnning in separate fixutres or selenium (capybara) won't have | |
| # access to the data created in the test and vice versa | |
| self.use_transactional_fixtures = false | |
| end |