Skip to content

Instantly share code, notes, and snippets.

Avatar

Dave Protasowski dprotaso

View GitHub Profile
@dprotaso
dprotaso / print_deps_for_target.sh
Last active Feb 27, 2019
Print the external dependencies for an envoy target
View print_deps_for_target.sh
#!/bin/bash
set -o errexit
set -o pipefail
if [[ -z "$(which jq)" ]]; then
echo "jq is required"
exit 1
fi
@dprotaso
dprotaso / render-bosh-template.sh
Last active Aug 11, 2018
Render a BOSH template
View render-bosh-template.sh
#!/usr/bin/env ruby
require 'active_support/core_ext/hash'
require 'erb'
require 'yaml'
require 'ostruct'
require 'bosh/template/evaluation_context'
require 'json'
include Bosh::Template::PropertyHelper
View run-job.rb
require 'active_support/core_ext/hash'
require 'erb'
require 'yaml'
require 'ostruct'
require 'bosh/template/evaluation_context'
require 'json'
include Bosh::Template::PropertyHelper
if ARGV.empty?