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
# 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 |
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
<?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> |
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
<?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> |
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 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 |
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 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; |
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
PID/THRD SYSCALL(args) = return | |
5310/0xfd0a: close(0x3) = 0 0 | |
5310/0xfd0a: __sysctl(0x7FFF521225C8, 0x2, 0x7FFF521225D8) = 0 0 | |
5310/0xfd0a: thread_selfid(0x7FFF7912D310, 0x7FFF7912D258, 0x10101) = 64778 0 | |
5310/0xfd0a: bsdthread_register(0x7FFF8E459FBC, 0x7FFF8E459FAC, 0x2000) = 0 0 | |
5310/0xfd0a: mprotect(0x10DAEA000, 0x88, 0x1) = 0 0 | |
5310/0xfd0a: mprotect(0x10DAFD000, 0x1000, 0x0) = 0 0 | |
5310/0xfd0a: mprotect(0x10DB13000, 0x1000, 0x0) = 0 0 | |
5310/0xfd0a: mprotect(0x10DB14000, 0x1000, 0x0) = 0 0 | |
5310/0xfd0a: mprotect(0x10DB2A000, 0x1000, 0x0) = 0 0 |
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
## How many messages has Todd receied, by day? | |
select DATE(cm.`receivedDate`), count(*) from Inbox inbox | |
inner join InboxMessage im on inbox.id = im.`inbox_id` | |
inner join ChannelMessage cm on im.`message_id` = cm.id | |
where inbox.`user_id` = 2 | |
group by DATE(cm.`receivedDate`) | |
order by DATE(cm.`receivedDate`) desc; | |
## What channels did Todds messages come from on March 6th? | |
select channel_id, count(*) |
NewerOlder