SSH into Root
$ ssh root@123.123.123.123
Change Root Password
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
Show hidden characters
| { | |
| "excludeFiles": ["node_modules/**", "dist/**"], | |
| "disallowDanglingUnderscores": true, | |
| "disallowEmptyBlocks": true, | |
| "disallowFunctionDeclarations": true, | |
| "disallowImplicitTypeConversion": ["numeric", "boolean", "binary", "string"], | |
| "disallowKeywordsOnNewLine": ["else"], | |
| "disallowMixedSpacesAndTabs": true, | |
| "disallowMultipleLineBreaks": true, | |
| "disallowMultipleSpaces": true, |
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 su postgres | |
| $ psql | |
| # create role <user_name> with createdb login password '<password>' |
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
| =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') |
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
| ### Install OpenJDK | |
| cd ~ | |
| sudo apt-get update | |
| sudo apt-get install openjdk-7-jre-headless -y | |
| ### Download and Install ElasticSearch | |
| ### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch and replace wget link below | |
| wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.3.1.deb | |
| sudo dpkg -i elasticsearch-1.3.1.deb | |