Skip to content

Instantly share code, notes, and snippets.

View bergquist's full-sized avatar
💻

Carl Bergquist bergquist

💻
View GitHub Profile
@bergquist
bergquist / controller
Last active October 16, 2018 11:54
scripts and scripts and scripts
docker run --init --restart unless-stopped --net=host -d -e TZ='Europe/Stockholm' -v ~/unifi:/unifi --name unifi jacobalberty/unifi:stable
{
"annotations": {
"enable": false,
"list": []
},
"editable": true,
"gnetId": null,
"graphTooltip": 0,
"hideControls": false,
"id": 2,
{
"__inputs": [
{
"name": "DS_PROMETHEUS",
"label": "Prometheus",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
# Make sure you grab the latest version
curl -OL https://github.com/google/protobuf/releases/download/v3.4.0/protoc-3.4.0-linux-x86_64.zip
# Unzip
unzip protoc-3.4.0-linux-x86_64.zip -d protoc3
# Move protoc to /usr/local/bin/
sudo mv protoc3/bin/* /usr/local/bin/
# Move protoc3/include to /usr/local/include/
# HELP go_gc_duration_seconds A summary of the GC invocation durations.
# TYPE go_gc_duration_seconds summary
go_gc_duration_seconds{quantile="0"} 1.653e-05
go_gc_duration_seconds{quantile="0.25"} 5.3513e-05
go_gc_duration_seconds{quantile="0.5"} 6.603e-05
go_gc_duration_seconds{quantile="0.75"} 0.000197488
go_gc_duration_seconds{quantile="1"} 0.00967919
go_gc_duration_seconds_sum 0.010650713
go_gc_duration_seconds_count 12
# HELP go_goroutines Number of goroutines that currently exist.
"targets": [
{
"addAppToAlias": false,
"addHostToAlias": false,
"functionList": [
{ "func": "aggregate.min"}
],
"apps": [],
"hosts": [
"staples-lab-1"
@bergquist
bergquist / keybase.md
Last active September 14, 2017 09:26

Keybase proof

I hereby claim:

  • I am bergquist on github.
  • I am bergquist (https://keybase.io/bergquist) on keybase.
  • I have a public key whose fingerprint is BAF3 5CBA 4ECD 8F72 6E9D 2AEB F918 C8F3 C590 49BE

To claim this, I am signing this object:

@bergquist
bergquist / grafana.ini
Created September 12, 2016 09:32
Grafana nginx config
[server]
root_url = %(protocol)s://%(domain)s:/grafana
@bergquist
bergquist / introrx.md
Created April 19, 2016 06:08 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
/* global _ */
/*
* Complex scripted dashboard
* This script generates a dashboard object that Grafana can load. It also takes a number of user
* supplied URL parameters (in the ARGS variable)
*
* Return a dashboard object, or a function
*
* For async scripts, return a function, this function must take a single callback function as argument,