Skip to content

Instantly share code, notes, and snippets.

@mismatch
mismatch / pom.xml
Last active December 20, 2015 01:19
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>rpm-maven-plugin</artifactId>
<version>2.1-alpha-3</version>
<executions>
<execution>
<id>generate-rpm</id>
<goals>
<goal>rpm</goal>
</goals>
@mismatch
mismatch / testrest.service
Created July 21, 2013 09:50
systemd service file for java app
[Unit]
Description=Test REST Service
After=network.target
[Service]
Type=forking
MemoryLimit=512M
ExecStart=/usr/lib/systemd/scripts/testrest
[Install]
@mismatch
mismatch / testrest
Created July 21, 2013 09:48
Simple shell script to run Java app
#!/bin/sh
java -server -jar /usr/local/bin/dropwizard-test-rest.jar server /usr/local/etc/RestServiceConfig.yml &
@mismatch
mismatch / EmailerViaDumbsterTest.java
Created July 12, 2013 18:26
Wiser vs Dumbster. Test 2
public class EmailerViaDumbsterTest extends EmailerTest {
private SimpleSmtpServer dumbster;
private Emailer emailer;
@Before
public void setUp() throws Exception {
emailer = new Emailer(config);
dumbster = SimpleSmtpServer.start(smtpPort);
@mismatch
mismatch / EmailerViaWiserTest.java
Created July 12, 2013 18:24
Wiser vs Dumbster. Test 1
public class EmailerViaWiserTest {
private Wiser wiser;
private Emailer emailer;
@Before
public void setUp() throws Exception {
emailer = new Emailer(config);
wiser = new Wiser(smtpPort);
@mismatch
mismatch / pom.xml
Created July 12, 2013 18:22
Wiser vs Dumbster
<dependency>
<groupId>org.subethamail</groupId>
<artifactId>subethasmtp</artifactId>
<version>3.1.7</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>dumbster</groupId>
<artifactId>dumbster</artifactId>