Skip to content

Instantly share code, notes, and snippets.

View proffalken's full-sized avatar

Matthew Macdonald-Wallace proffalken

View GitHub Profile
@proffalken
proffalken / config.alloy
Last active April 12, 2024 08:06
Basic config for Grafana Alloy
// Sample config for Alloy that collects metrics, logs, and traces
// and forwards them to Grafana Cloud using the Grafana Cloud OTEL
// endpoint
//
// For a full configuration reference, see https://grafana.com/docs/alloy
logging {
level = "debug"
}
prometheus.exporter.unix "default" {
@proffalken
proffalken / m5stick-c.yaml
Created December 9, 2023 10:11
m5stick esphome config
esphome:
name: m5stick
friendly_name: m5stick
esp32:
board: m5stick-c
framework:
type: arduino
# Enable logging
---
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
labels:
io.kompose.service: octoprint-server
app: octoprint-server
name: octoprint-server
namespace: default
@proffalken
proffalken / octoprint-deployment.yaml
Last active September 13, 2023 13:35
Octoprint on k8s
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
labels:
io.kompose.service: octoprint-server
name: octoprint-server
namespace: default
spec:
replicas: 1
@proffalken
proffalken / README.md
Last active April 25, 2023 21:38
Mautic Nginx Configuration

Mautic Nginx Configuration

These files allow you to configure Mautic using Nginx.

@proffalken
proffalken / Makefile
Created March 28, 2019 13:16
Platformio Makefile
# Uncomment lines below if you have problems with $PATH
#SHELL := /bin/bash
#PATH := /usr/local/bin:$(PATH)
all:
platformio -f run
upload:
platformio -f run --target upload
@proffalken
proffalken / docker-loki.json
Created December 27, 2021 07:47
Vector, Loki, and Prometheus
// Be sure to follow the instructions at
// https://grafana.com/docs/loki/latest/clients/docker-driver/
// otherwise this will not work!
//
// Also, remember to remove these comments because JSON doesn't support them!
{
"data-root": "/mnt/docker",
"metrics-addr" : "10.231.1.21:9323",
"experimental" : true,
@proffalken
proffalken / collaborative_working.md
Created March 15, 2019 11:00
Helpful Blog Posts

Five things your organisation can do to improve Collaborative Working

Collaborative working can be hard to get right, here's our top 5 tips to encourage a culture of success.

Building multi-discipinary teams is a great way to get the best out of your staff

“Collaborative Working is hard“. We’ve heard this from so many of our clients over the years, and often they really struggle with the conflict between [Generalism vs. Specialism][1], and even how to start working in a collaborative manner.

If you go into hospital for a major operation you wouldn’t expect the ward receptionist to administer the anaesthetic, nor would you expect a nurse to carry out the procedure, or the surgeon to perform post-operative care – so why do we expect so many of our software engineers to be “full stack developers”, or our operations teams to have a complete understanding of everything that happens in the process before our product reaches them?

Start by analysing your prod

@proffalken
proffalken / commands.cfg
Created April 27, 2012 11:53
Shinken Commands Configuration File
# Here are some sample commands for checking classics things like
# systems and websites
# -----------------------------------------------------------------
#
# Localhost checks
#
# -----------------------------------------------------------------
@proffalken
proffalken / import_schedule.py
Created April 11, 2022 08:20
Import the schedule data from Network Rail
#!/usr/bin/env python
import sentry_sdk
import json
import os
import requests
import sys
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker