Skip to content

Instantly share code, notes, and snippets.

parameters:
# Use OpenShift Origin (vs OpenShift Enterprise)
deployment_type: origin
# set SSH access to VMs
ssh_user: centos
ssh_key_name: deleteme
# Set the image type and size for the VMs
bastion_image: centos72
@jw3
jw3 / template.json
Created November 21, 2016 06:55
Entwine config template
{
"input": {
// How many files specified in the manifest below to add to the build.
// Zero means that all files will be added. If greater than zero,
// running with this configuration file multiple times will continue
// insertion from each previous run.
//
// This may be used to check the progress of the build without
// requiring configuration changes for each run.
"run": 0,
object UUIDProtocol extends DefaultJsonProtocol with SprayJsonSupport {
implicit object UUIDJsonProtocol extends RootJsonFormat[UUID] {
def write(uuid: UUID) = JsString(uuid.toString)
def read(js: JsValue) = js match {
case JsString(str) => UUID.fromString(str)
case _ => throw new IllegalArgumentException("not a uuid")
}
}
}
import scalatags.Text.all._
import collection.mutable
// http://flatuicolors.com/
val red = "#c0392b"
val green = "#27ae60"
val yellow = "#f39c12"
val blue = "#2980b9"
val magenta = "#8e44ad"
val cyan = "#16a085"
val black = "#000"
@jw3
jw3 / jdk_download.sh
Created March 14, 2016 16:43 — forked from P7h/jdk_download.sh
Script to download JDK / JRE / Java binaries from Oracle website from terminal / shell / command line / command prompt
##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### #####
### Shell script to download Oracle JDK / JRE / Java binaries from Oracle website using terminal / command / shell prompt using wget.
### You can download all the binaries one-shot by just giving the BASE_URL.
### Script might be useful if you need Oracle JDK on Amazon EC2 env.
### Script is updated for every JDK release.
### Features:-
# 1. Resumes a broken / interrupted [previous] download, if any.
# 2. Renames the file to a proper name with including platform info.
@jw3
jw3 / build-git.sh
Created February 5, 2016 00:35 — forked from pescobar/build-git.sh
compile git with openssl instead of gnutls
#!/usr/bin/env bash
# Clear out all previous attempts
rm -rf "/tmp/source-git/"
# Get the dependencies for git, then get openssl
sudo apt-get install build-essential fakeroot dpkg-dev -y
sudo apt-get build-dep git -y
sudo apt-get install libcurl4-openssl-dev -y
mkdir -p "/tmp/source-git/"
@jw3
jw3 / airline.scala
Created September 18, 2015 03:08
Airline example in Scala
import io.airlift.airline._
/**
* airline example in scala
* https://github.com/airlift/airline
* @author wassj
*/
object airline {
def main(args: Array[String]) {