This file contains 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
-startup | |
plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar | |
--launcher.library | |
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20140116-2212 | |
-product | |
org.eclipse.epp.package.jee.product | |
--launcher.defaultAction | |
openFile | |
-showsplash | |
org.eclipse.platform |
This file contains 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
cron { "cron-configspro": | |
command => '/opt/vagrant_ruby/bin/puppet apply /vagrant/manifests/web.pp >/dev/null', | |
user => root, | |
hour => '*', | |
minute => '*', | |
} |
This file contains 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 puppet apply /vagrant/manifests/web.pp | |
exec { "apt-update": | |
command => "/usr/bin/apt-get update" | |
} | |
package { ["openjdk-7-jre", "tomcat7", "mysql-server", "vim", "monit"]: | |
ensure => "installed", | |
require => Exec["apt-update"] | |
} |
This file contains 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
#vagrant up | |
#vagrant reload | |
#vagrant destroy | |
#vagrant ssh | |
Vagrant.configure("2") do |config| | |
config.vm.box = "precise64.box" | |
config.vm.box_url = "http://files.vagrantup.com/precise64.box" | |
config.vm.define :web do |web_config| | |
web_config.vm.network "private_network", ip: "192.168.50.10" |
This file contains 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 pacote1; | |
public class Conta implements Runnable{ | |
private int saldo = 30; | |
public int getSaldo() { | |
return saldo; | |
} | |
public synchronized void saque(int quantia){ |