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
| # ~/.bashrc: executed by bash(1) for non-login shells. | |
| # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
| # for examples | |
| # We use preexec and precmd hook functions for Bash | |
| # If you have anything that's using the Debug Trap or PROMPT_COMMAND | |
| # change it to use preexec or precmd | |
| # See also https://github.com/rcaloras/bash-preexec | |
| # If not running interactively, don't do anything | |
| case $- in |
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
| mvn clean package | |
| nohup java -jar SEU-JAR-SNAPSHOT.jar --server.port=8081 & |
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 apt-get install python-software-properties | |
| sudo add-apt-repository ppa:webupd8team/java | |
| sudo apt-get update | |
| sudo apt-get install oracle-java8-installer |
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 apt-get update | |
| sudo apt-get install nginx |
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
| <servlet> | |
| <servlet-name>primeiraServlet</servlet-name> | |
| <servlet-class>br.com.caelum.servlet.OiMundo</servlet-class> | |
| </servlet> | |
| <servlet-mapping> | |
| <servlet-name>primeiraServlet</servlet-name> | |
| <url-pattern>/oi</url-pattern> | |
| </servlet-mapping> |
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
| public class OiMundo extends HttpServlet { | |
| protected void service (HttpServletRequest request, | |
| HttpServletResponse response) | |
| throws ServletException, IOException { | |
| PrintWriter out = response.getWriter(); | |
| // escreve o texto | |
| out.println("<html>"); | |
| out.println("<body>"); | |
| out.println("Primeira servlet"); |
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
| package br.com.sed.seris.scenarios; | |
| import static org.junit.Assert.assertEquals; | |
| import org.junit.Before; | |
| import org.junit.Test; | |
| import br.com.sed.seris.domain.ContaminationScenario; | |
| import br.com.sed.seris.domain.ContaminationSource; | |
| import br.com.sed.seris.domain.ExpositionRoute; |
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
| describe List do | |
| before(:each) do | |
| @list = List.new | |
| end | |
| it "should be valid" do | |
| @list.should be_valid | |
| end | |
| end |
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
| VAGRANTFILE_API_VERSION = '2' | |
| Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
| config.vm.box = 'precise32' | |
| config.vm.network :forwarded_port, guest: 80, host: 8080 | |
| config.ssh.insert_key = false | |
| end | |
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
| Error: [$injector:modulerr] Failed to instantiate module PushNotification due to: | |
| Error: [$injector:nomod] Module 'PushNotification' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument. | |
| http://errors.angularjs.org/1.4.3/$injector/nomod?p0=PushNotification |