Skip to content

Instantly share code, notes, and snippets.

View blakewrege's full-sized avatar

blake blakewrege

View GitHub Profile
@blakewrege
blakewrege / 0_reuse_code.js
Created October 12, 2015 18:30
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@blakewrege
blakewrege / monitoring_sample_config.jsonnet
Created July 27, 2023 00:38 — forked from gkumarau/monitoring_sample_config.jsonnet
This file demonstrates the use of variables and loops for object and arrays in the JSON configuration using Jsonnet.
local environments = [ 'prod', 'test', 'dev' ];
local services = [ 'service1', 'service2', 'service3', 'service4' ];
{
environments: [
{
name: env,
services: [
'https://%s.%s.example.com' % [service, env]
for service in services