Skip to content

Instantly share code, notes, and snippets.

View blakewrege's full-sized avatar

blake blakewrege

View GitHub Profile
@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
@gkumarau
gkumarau / monitoring_sample_config.jsonnet
Created October 1, 2018 01:36
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
@blakewrege
blakewrege / .bashrc
Last active October 1, 2015 01:23
bash aliases
alias ,edit-alias='nano .bashrc'
alias ,processes='ps -u gigglesbw4'
alias ,webcam2="scp cclub@141.218.117.219:~/misc/image.jpg /home/members/gigglesbw4/www"
alias ,webcam="scp cclub@141.218.117.219:/tmp/cclub/webcam.jpg /home/members/gigglesbw4/www"
alias shrek='ssh shrek.dhcp.io -l cclub'
alias millenniumfalcon='ssh shrek.dhcp.io -p 9000 -l cclub'
alias uglyduck='ssh shrek.dhcp.io -p 9010 -l administrator'
alias ralph='ssh shrek.dhcp.io -p 9030 -l cclub'
#!/bin/bash
/usr/bin/scp $1 gigglesbw4@yakko.cs.wmich.edu:/home/shared/www/
@SteveBenner
SteveBenner / unbrew.rb
Last active January 3, 2024 01:44
Homebrew uninstall script
#!/usr/bin/env ruby
#
# CLI tool for locating and removing a Homebrew installation
# http://brew.sh/
#
# Copyright (C) 2014 Stephen C. Benner
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or