$ git config credential.helper store # README Boilerplate
A template of README best practices to make your README simple to understand and easy to use.
## Table of Contents
- [Installation](#installation)
- [Usage](#usage)
- [Support](#support)
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
| FROM image[:tag] # Image that container will be up | |
| RUN command # A bash script command | |
| WORKDIR /app # Root Directory | |
| COPY . /app # Copy current dir to inside container | |
| VOLUME /app # Exposed volumes to outside container | |
| EXPOSE 3000 # Exposed ports to outside container | |
| CMD ["command", "args", ... ] # Run command after container`s up |
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
| #!/bin/bash | |
| # Delete all containers | |
| docker rm $(docker ps -a -q) | |
| # Delete all images | |
| docker rmi $(docker images -q) |
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 Teste { | |
| constructor() { | |
| this.init(); | |
| } | |
| init(){ | |
| //Arrow Funcion | |
| let showMessage = (message) => { | |
| //não perde o escopo (this) | |
| return this.getMessage(this.getMessage()); |
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 Teste { | |
| constructor() { | |
| console.log("Constructor inicado"); | |
| this.showMessage(); | |
| } | |
| showMessage(){ | |
| console.log("Método showMessage acionado"); | |
| } | |
| } | |
| var teste = new Teste(); |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Document</title> | |
| <link href="https://fonts.googleapis.com/css?family=Roboto:100,300" rel="stylesheet"> | |
| <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> | |
| <style> | |
| body { | |
| font-family: 'Roboto', sans-serif; |
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
| "folder_exclude_patterns": | |
| [ | |
| ".svn", | |
| ".git", | |
| ".hg", | |
| "CVS", | |
| ".sass-cache", | |
| "node_modules" | |
| ] |
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
| echo "Server name :" | |
| read vhost | |
| echo "Main path (Ex.: /var/www/example) :" | |
| read path | |
| echo "Creating VHost configuration" | |
| echo "<VirtualHost *:80> |
NewerOlder