Skip to content

Instantly share code, notes, and snippets.

Avatar

Marty Pitt martypitt

  • London
View GitHub Profile
@martypitt
martypitt / cargo.conf
Created May 20, 2013
Conf file for cargo
View cargo.conf
# Cargo - Tomcat deployment manager
description "Cargo - Tomcat deploymnet manager"
start on filesystem or runlevel [2345]
stop on runlevel [!2345]
env HOME_DIR=/home/ubuntu/.cargo
exec /usr/bin/java -jar /home/ubuntu/cargo-daemon-webapp-1.4.0.war -Ddaemon.home=${HOME_DIR} -Dcargo.home=${HOME_DIR} >> /var/log/cargo.log
View pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.mangofactory.joose</groupId>
<artifactId>deployment.test</artifactId>
<version>1.0</version>
<packaging>war</packaging>
<name>Maven Webapp</name>
@martypitt
martypitt / gist:5611982
Created May 20, 2013
Remote deploy with Cargo Daemon
View gist:5611982
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.mangofactory.joose</groupId>
<artifactId>deployment.test</artifactId>
<version>1.0</version>
<packaging>war</packaging>
<name>Maven Webapp</name>
View AbstractTradingMarket.java
package com.mangofactory;
import javax.persistence.Entity;
import javax.persistence.MappedSuperclass;
import javax.persistence.OneToOne;
@Entity
public abstract class AbstractTradingMarket<T extends Tradable> implements Market<T>{
@OneToOne
View AutoFlushingPumpStreamHandler
package com.mangofactory.typescript.tss.io;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import org.apache.commons.exec.ExecuteStreamHandler;
import org.apache.commons.exec.InputStreamPumper;
import org.apache.commons.exec.PumpStreamHandler;
import org.apache.commons.exec.StreamPumper;
You can’t perform that action at this time.