SSH into Root
$ ssh root@123.123.123.123
Change Root Password
SSH into Root
$ ssh root@123.123.123.123
Change Root Password
This list is based on aliases_spec.rb.
You can see also Module: RSpec::Matchers API.
| matcher | aliased to | description |
|---|---|---|
| a_truthy_value | be_truthy | a truthy value |
| a_falsey_value | be_falsey | a falsey value |
| be_falsy | be_falsey | be falsy |
| a_falsy_value | be_falsey | a falsy value |
| =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') |
| PS1='\[\033[31m\]\w\[\033[0m\] $ ' | |
| export EDITOR=vim | |
| alias st='git status -sb' |
This guide explains the way to setup a production server using Capistrano.
# Gemfile
# Use Capistrano for deployment| # Helpers | |
| def git_update(message) | |
| git :add => ".", :commit => "-m '#{message}'" | |
| end | |
| def git_remove(file) | |
| git :rm => file | |
| end |
| /** | |
| * Async iterators simple example. | |
| * | |
| * by Dmitry Soshnikov <dmitry.soshnikov@gmail.com> | |
| * MIT Style License, 2018 | |
| */ | |
| async function* streamChunks() { | |
| yield genChunk(1); | |
| yield genChunk(2); |
| /** | |
| * Filter object properties. | |
| * | |
| * by Dmitry Soshnikov <dmitry.soshnikov@gmail.com> | |
| * MIT Style license, 2019 | |
| */ | |
| const filterProps = ( | |
| [p1, p2, p3], | |
| { |
| /** | |
| * Event loop. | |
| * | |
| * Read details here: | |
| * http://dmitrysoshnikov.com/ecmascript/javascript-the-core-2nd-edition/#job | |
| * | |
| * by Dmitry Soshnikov <dmitry.soshnikov@gmail.com> | |
| */ | |
| /** |