Skip to content

Instantly share code, notes, and snippets.


Marty Pitt martypitt

  • London
View GitHub Profile
martypitt / pom.xml
Last active Oct 30, 2018
Trade Compliance with Vyne
View pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns=""
martypitt / bootstrap.yml
Created Jan 1, 2018
Bootstrap a freshly minted ubuntu 16.04 - 17.10 box for ansible
View bootstrap.yml
- hosts: all
become: yes
become_user: root
gather_facts: no
- name: 'install missing modules'
raw: sudo apt-get -y install python-simplejson aptitude
View StompClient.ts
import {Injectable} from "@angular/core";
import {environment} from "app/../environments/environment";
import {Observable, ReplaySubject, Subject} from "rxjs";
const SockJS = require('sockjs-client');
const Stomp = require('stompjs');
// TODO : Find sockJs / StompJs typings
interface StompClient {
connect(params: any, connectHandler: (frame: Frame) => void, errorHandler: (error: any) => void)
subscribe(topic: string, handler: (value: Frame) => void)
View gist:8529182
"id": "83917940159_10153810543845160",
"from": {
"category": "Community",
"category_list": [
"id": "2612",
"name": "Community"
View example.ts
/// <reference path="typescript.api.d.ts" />
import tsapi = require("typescript.api");
export class Example {
View gist:6363263
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 15.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "">
<svg version="1.1" id="Layer_1" xmlns="" xmlns:xlink="" x="0px" y="0px"
width="800px" height="311.002px" viewBox="0 144.5 800 311.002" enable-background="new 0 144.5 800 311.002"
<path d="M311.11,144.5c34.571,0,69.133,0,103.707,0C587.188,182.275,743.864,144.458,800,292.593c0,4.948,0,9.864,0,14.812
View gist:6184111
package com.mangofactory.example;
import java.util.Map;
import lombok.SneakyThrows;
import org.codehaus.jackson.type.JavaType;
martypitt / gist:6183822
Last active Dec 20, 2015
These tests fail, demonstrating either a bug somewhere in the Jackson / Spring-Data-Redis stack, or a configuration problem within my code. It requires Lombok to run
View gist:6183822
package com.mangofactory.example
import static org.hamcrest.CoreMatchers.notNullValue;
import static org.hamcrest.CoreMatchers.nullValue;
import static org.hamcrest.Matchers.contains;
import static org.hamcrest.Matchers.hasSize;
import static org.junit.Assert.assertThat;
import java.util.Collections;
import java.util.List;
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
martypitt / gist:5611982
Created May 20, 2013
Remote deploy with Cargo Daemon
View gist:5611982
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="" xmlns:xsi=""
<name>Maven Webapp</name>
You can’t perform that action at this time.