Skip to content

Instantly share code, notes, and snippets.

johnrengelman / frigga.txt
Last active Aug 20, 2020
Netflix Frigga Naming Schema
View frigga.txt
ASG name = = app-stack-detail(-options)-push
frigga.cluster = app-stack-detail
frigga.push = v<sequence)
- c0<value> = countries
- d0<value = devPhase
- h0<value> = hardware
johnrengelman /
Created Sep 22, 2016
InfluxDB Reporter module for Ratpack
package com.peoplenet.common.ratpack.metrics
import com.codahale.metrics.MetricRegistry
import com.izettle.metrics.influxdb.InfluxDbHttpSender
import com.izettle.metrics.influxdb.InfluxDbSender
import com.izettle.metrics.influxdb.InfluxDbTcpSender
import com.izettle.metrics.influxdb.InfluxDbUdpSender
import com.peoplenet.common.ratpack.config.Application
johnrengelman / document.json
Created Jul 7, 2016
Upgrade Rancher Cluster with Amazon EC2 Run Command
View document.json
"description":"Upgrade Rancher cluster to specified version",
"description":"(Required) The version to upgrade to.",
View Jenkinsfile
node {
// Mark the code checkout 'Checkout'....
stage 'Checkout'
// // Get some code from a GitHub repository
git url: ''
// Get the Terraform tool.
def tfHome = tool name: 'Terraform', type: 'com.cloudbees.jenkins.plugins.customtools.CustomTool'
johnrengelman /
Created May 20, 2016
Gradle 2.14-rc-1 Shadow issue
public class ShadowJar extends CopySpec {
public <T extends Transformer> ShadowSpec transform(Class<T> clazz) throws InstantiationException, IllegalAccessException {
public <T extends Transformer> ShadowSpec transform(Class<T> clazz, Action<T> configure) throws InstantiationException, IllegalAccessException {
View docker-compose.yml
log_driver: ''
io.rancher.sidekicks: consul,consul-data 'true'
io.rancher.container.pull_image: always
io.rancher.container.hostname_override: container_name
tty: true
restart: always
johnrengelman / build.gradle
Created Apr 8, 2015
Self applying Gradle plugin project
View build.gradle
//place this content in your buildSrc/build.gradle file
//Then apply your plugin to its own build in build.gradle
import org.codehaus.groovy.control.CompilerConfiguration
apply plugin: 'groovy'
repositories {
johnrengelman / build.gradle
Created Dec 29, 2014
Injected Gradle Task
View build.gradle
class MyTask extends DefaultTask {
FileResolver fileResolver
public void action() {
View Bar.groovy
package foo
class Bar {
String name