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
| commands: | |
| hjkl: move to directions | |
| w: next word | |
| b: before work | |
| e: to the final or next word | |
| i: insert before cursor | |
| a: insert after cursor | |
| shift + a: insert to the final linea | |
| x: Delete characters (in normal mode) | |
| u: undo |
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
| upstream serverservice { | |
| server serverservice; | |
| } | |
| server { | |
| listen 80; | |
| location /api { | |
| proxy_set_header X-Real-IP $remote_addr; |
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
| Description: > | |
| Adrian Peña / Udacity | |
| Parameters: | |
| EnvironmentName: | |
| Description: An environment name that will be prefixed to resource names | |
| Type: String | |
| Resources: |
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
| #./create.sh ourinfrastack ourinfra.yml ourinfra-parameters.json | |
| Description: > | |
| Adrian Peña / Udacity Course | |
| Template to deploy a VPC | |
| Resources: | |
| UdacityVPC: | |
| Type: AWS::EC2::VPC | |
| Properties: | |
| CidrBlock: 10.0.0.0/16 | |
| EnableDnsHostnames: 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
| // force push | |
| git push --force | |
| //Identify merged branches | |
| git branch --merged | |
| git branch --no-merged | |
| //Delete local Branches | |
| git branch -d branchname | |
| //delete remote branch |
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
| ln -s /etc/apache2/sites-available/buywithvan.conf /etc/apache2/sites-enabled |
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
| cat /etc/apache2/sites-available/van-frontend.conf | |
| #alias /van-frontend /var/www/html/van-frontend/ | |
| #<Directory "/home/ubuntu/jenkins-local/workspace/prevanfrontend/build"> | |
| # AllowOverride All | |
| # Order allow,deny | |
| # allow from all | |
| # Require all granted | |
| #</Directory> | |
| <VirtualHost *:80> | |
| #DocumentRoot /var/www/html |
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
| /*{ | |
| // Use IntelliSense to learn about possible attributes. | |
| // Hover to view descriptions of existing attributes. | |
| // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "type": "node", | |
| "request": "launch", | |
| "name": "Launch Program", |
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
| { | |
| // Use IntelliSense to learn about possible attributes. | |
| // Hover to view descriptions of existing attributes. | |
| // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "name": "Van backend", | |
| "type": "php", | |
| "request": "launch", |
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
| ============================================================== | |
| Step 1: Create public and private keys using ssh-key-gen on local-host | |
| ============================================================== | |
| jsmith@local-host$ [Note: You are on local-host here] | |
| jsmith@local-host$ ssh-keygen | |
| Generating public/private rsa key pair. | |
| Enter file in which to save the key (/home/jsmith/.ssh/id_rsa):[Enter key] | |
| Enter passphrase (empty for no passphrase): [Press enter key] |
NewerOlder