Skip to content

Instantly share code, notes, and snippets.

-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
@antoniobsn
antoniobsn / cron.pp
Created September 9, 2014 16:43
Criação de cron pelo do Puppet
cron { "cron-configspro":
command => '/opt/vagrant_ruby/bin/puppet apply /vagrant/manifests/web.pp >/dev/null',
user => root,
hour => '*',
minute => '*',
}
@antoniobsn
antoniobsn / web.pp
Last active August 29, 2015 14:05
Sample Puppet
#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"]
}
@antoniobsn
antoniobsn / Vagrantfile
Last active August 29, 2015 14:05
Sample VM vagrant
#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"
@antoniobsn
antoniobsn / Conta.java
Last active August 29, 2015 14:05
Sample Thread Synchronized
package pacote1;
public class Conta implements Runnable{
private int saldo = 30;
public int getSaldo() {
return saldo;
}
public synchronized void saque(int quantia){