Skip to content

Instantly share code, notes, and snippets.

@noahcrowley
noahcrowley / discourse_metrics.py
Created September 18, 2019 16:39
Get Discourse Metrics w/Python
#!/usr/bin/env python3
import os
import requests
api_data = {
'api_username': 'system',
'api_key': os.environ['DISCOURSE_API_KEY']
}
openapi: 3.0.0
info:
title: Influx API Service
version: 0.1.0
servers:
- url: /v1
paths:
/ping:
servers:
- url: /
@noahcrowley
noahcrowley / repl.go
Last active September 5, 2018 01:02
OpenCensus Quickstart with Prometheus Exporter
package main
import (
"bufio"
"bytes"
"context"
"fmt"
"io"
"log"
"net/http"
@noahcrowley
noahcrowley / docker-compose.yml
Created June 28, 2018 16:26
TICK Stack Docker Compose for Raspbian
version: '3'
services:
influxdb:
# Full tag list: https://hub.docker.com/r/library/influxdb/tags/
image: influxdb:latest
volumes:
# Mount for influxdb data directory
- ./influxdb/data:/var/lib/influxdb
# Mount for influxdb configuration
- ./influxdb/config/:/etc/influxdb/
@noahcrowley
noahcrowley / hack.sh
Created April 1, 2012 08:57 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#