Skip to content

Instantly share code, notes, and snippets.

View christianvozar's full-sized avatar
⛈️
Ventum noli regere, sed meditare.

Christian R. Vozar christianvozar

⛈️
Ventum noli regere, sed meditare.
View GitHub Profile
@christianvozar
christianvozar / riemann-health.conf
Last active December 17, 2015 15:09
Upstart Script for Riemann (http://riemann.io/) Health deamon.
# Copyright 2013, Harvest Exchange Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
@christianvozar
christianvozar / riemann-dash.conf
Last active December 17, 2015 16:09
Upstart script for Riemann (http://riemann.io/) Dashboard.
# Copyright 2013, Harvest Exchange Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
@christianvozar
christianvozar / Sample Config.toml
Created January 9, 2014 16:29
stat_filter parses and matches only for Fields of value_type STRING
[Procd to Statsd - CPU]
type = "StatFilter"
stat_accum_name = "Procd to Statsd Accumulator"
message_matcher = 'Type == "procd.resources.cpu"'
[Procd to Statsd - CPU.Metric.cpu_user]
type = "Gauge"
name = "%Hostname%.resources.cpu.user"
value = "%CpuUser%"
@christianvozar
christianvozar / fizzbuzz.go
Created June 17, 2014 20:40
Fizz Buzz in Go
// Class Fizz Buzz Solution
// Christian Vozar <christianvozar@gmail.com>
package main
import (
"flag"
"fmt"
"strconv"
)
var MARK_UNREAD = true;
var ADD_UNSNOOZED_LABEL = false;
function getLabelName(i) {
return "Snooze/Snooze " + i + " days";
}
function setup() {
// Create the labels we’ll need for snoozing
GmailApp.createLabel("Snooze");
@christianvozar
christianvozar / Makefile
Last active January 8, 2018 19:23
Example to Verify Application Dependence in Make
# Make example for verifying application dependancies for execution
# Christian R. Vozar <christian@rogueethic.com>
dependencies:
$(call isinstalled,kubectl)
define isinstalled
@hash $(1) >/dev/null 2>/dev/null || { echo >&2 "$(1) required but not found. Aborting."; exit 1; }
endef