Skip to content

Instantly share code, notes, and snippets.

View jvanzyl's full-sized avatar

Jason van Zyl jvanzyl

  • Guelph, Ontario, Canada
View GitHub Profile
---
properties:
type: object
ClusterConfig:
$ref: '#/definitions/ClusterConfig'
definitions:
ClusterCloudWatch:
additionalProperties: false
properties:
[ERROR] DOCKER> I/O Error [Unable to start container id [326b5affcd0e] : Mounts denied:
The path /var/folders/d3/kkn5dhcd40zgzhwc8ry35b71mf__mn/T/
is not shared from OS X and is not known to Docker.
You can configure shared paths from Docker -> Preferences... -> File Sharing.
See https://docs.docker.com/docker-for-mac/osxfs/#namespaces for more info.
. (Bad Gateway: 502)]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for com.walmartlabs.concord:parent 1.19.2-SNAPSHOT:
[INFO]
[INFO] com.walmartlabs.concord:parent ..................... SUCCESS [ 1.340 s]
@jvanzyl
jvanzyl / gist:16da25976f8ad27293fa
Last active July 3, 2018 17:50
Validate a Maven Core Pull Request
#!/bin/sh
#
# PR validator: This script will checkout Maven, apply a PR, build the Maven distribution and
# run the Maven integration tests against the just-built distribution. If you
# successfully get to the end of this script then your PR is ready to be reviewed.
# Assumptions:
# 1) You have a functioning version of Maven installed (script tested with 3.2.1)
# 2) You have a decent connection. This script checks out everything from scratch and downloads
# everything into a clean local repository. Not terribly efficient but makes sure there is no
package com.oneops;
import java.util.Map;
public class Component {
public String id;
public Map<String,String> configuration;
}
name: awesome-assembly
variables:
key-0: value-0
key-1: value-1
platforms:
platform-0:
pack: pack-platform-0
variables:
  1. Install Graphviz on your machine
  2. Create a script called graph with the following contents:
#!/bin/sh

dot -T pdf | open -a /Applications/Preview.app -f

Create a simple graph using Graphviz notation and place in graph.txt:

@jvanzyl
jvanzyl / pr.md
Created August 2, 2016 02:32 — forked from piscisaureus/pr.md
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

public class Looper {
public Looper() {
WebServer server = new WebServerBuilder()
.port(9000)
.serve("/api/*").withJaxRs()
.build();
server.start();
}
}
mvn clean package -T8
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] JGit - Parent ...................................... SUCCESS [ 1.613 s]
[INFO] JGit - Core ........................................ SUCCESS [ 18.842 s]
[INFO] JGit - Ant Tasks ................................... SUCCESS [ 4.271 s]
[INFO] JGit Archive Formats ............................... SUCCESS [ 4.890 s]
[INFO] JGit - AWT User Interface .......................... SUCCESS [ 5.801 s]
#
# This generates everything needed to create a distributions
#
# https://git.eclipse.org/c/epp/org.eclipse.epp.packages.git/tree/packages/org.eclipse.epp.package.rcp.feature/feature.xml
productId: io.tesla.ide.rcp.product
repos:
-
id: eclipse