Skip to content

Instantly share code, notes, and snippets.

View bergquist's full-sized avatar
💻

Carl Bergquist bergquist

💻
View GitHub Profile
@bergquist
bergquist / grafana.ini
Created September 12, 2016 09:32
Grafana nginx config
[server]
root_url = %(protocol)s://%(domain)s:/grafana
@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/
@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:

# 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 / introrx.md
Created April 19, 2016 06:08 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@bergquist
bergquist / app.js
Last active March 3, 2016 15:45
generic backend example
var express = require('express');
var bodyParser = require('body-parser');
var _ = require('lodash');
var app = express();
app.use(bodyParser.json());
var timeserie = [
{"target": "upper_25", "datapoints": [[3.0, 1450754160], [2.0, 1450754220], [1.0, 1450754280], [0.0, 1450754340], [1.0, 1450754400], [1.0, 1450754460], [1.0, 1450754520], [1.0, 1450754580], [1.0, 1450754640], [1.0, 1450754700], [2.0, 1450754760], [1.0, 1450754820], [165.0, 1450754880], [5.0, 1450754940], [1.0, 1450755000], [1.0, 1450755060], [5.0, 1450755120], [2.0, 1450755180], [2.0, 1450755240], [1.0, 1450755300], [1.0, 1450755360], [7.0, 1450755420], [4.0, 1450755480], [1.0, 1450755540], [7.0, 1450755600], [7.0, 1450755660], [1.0, 1450755720], [2.0, 1450755780], [1.0, 1450755840], [1.0, 1450755900], [2.0, 1450755960], [1.0, 1450756020], [1.0, 1450756080], [2.0, 1450756140], [1.0, 1450756200], [7.0, 1450756260], [2.0, 1450756320], [2.0, 1450756380], [1.0, 1450756440], [8.0, 1450756500], [7.0, 1450756560], [1.0, 1450756620], [2.0, 1450756