Skip to content

Instantly share code, notes, and snippets.

View netodevel's full-sized avatar
:octocat:
Learning

José Vieira Neto netodevel

:octocat:
Learning
  • São Paulo, Brasil
View GitHub Profile
@netodevel
netodevel / .bashrc
Created September 18, 2016 01:37
.basrch
# ~/.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
mvn clean package
nohup java -jar SEU-JAR-SNAPSHOT.jar --server.port=8081 &
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
sudo apt-get update
sudo apt-get install nginx
<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>
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");
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;
describe List do
before(:each) do
@list = List.new
end
it "should be valid" do
@list.should be_valid
end
end
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
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