Skip to content

Instantly share code, notes, and snippets.

Avatar

Matthew Macdonald-Wallace proffalken

View GitHub Profile
@proffalken
proffalken / cv.md
Last active Sep 22, 2020
Matthew Macdonald-Wallace
View cv.md
@proffalken
proffalken / README.md
Last active Aug 21, 2020
Mautic Nginx Configuration
View README.md

Mautic Nginx Configuration

These files allow you to configure Mautic using Nginx.

View OctoprintDriver.groovy
metadata {
definition (name: "OctoPrint", namespace: "OctoPrint", author: "MC", importUrl: "https://raw.githubusercontent.com/mikec85/hubitatdrivers/master/octoprint/OctoPrint.groovy") {
capability "Initialize"
capability "Switch"
capability "PresenceSensor"
attribute "state", "enum", ["Operational", "Printing", "Pausing","Paused", "Cancelling", "Error", "Offline"]
attribute "completion", "string"
attribute "printTimeLeft", "string"
View whitelist.txt
.google.com
gist.github.com
www.bbc.co.uk
@proffalken
proffalken / Makefile
Created Mar 28, 2019
Platformio Makefile
View 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
View Error Message
Parsing recipes...done.
Parsing of 2161 .bb files complete (0 cached, 2161 parsed). 3128 targets, 152 skipped, 0 masked, 0 errors.
WARNING: No bb files matched BBFILE_PATTERN_meta-telegraf '^/media/yocto/jenkins/jenkins-meta/jenkins-meta/workspace/eway-os_feature_install_telegraf/lora-gateway-os/build/../../mbc-layers/meta-telegraf/'
NOTE: Resolving any missing task queue dependencies
View collaborative_working.md

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 / README.md
Last active Mar 13, 2019
OTA using MQTT
View README.md

OTA Firmware Updates for ESP-based devices using MQTT

Use the above as a template for your code.

The device will register with the MQTT server on startup under the topic devices/state/<device_type>/<device_mac> with a device type and a client id.

Use these values to publish JSON with the content {"update_available": 1} to devices/control/<device_type>/<device_mac> when you want to update the firmware.

The firmware should be stored on a webserver under /devices/<device_type>/firmware.bin - this needs work as it means you can only store/deploy a single version of firmware at any given time.

@proffalken
proffalken / README.md
Created Feb 27, 2019
Monitoring LoRa Gateway Bridge with DataDog
View README.md

Monitoring LoRa Gateway Bridge using DataDog

  • Install the DataDog Agent following the instructions on the DataDog website
  • Update the lora-gateway-bridge configuration file with the lines on this gist
  • Create /etc/datadog-agent/conf.d/prometheus.d/conf.yaml with the content from this gist
  • Restart the lora-gateway-bridge and datadog-agent services
  • Check that the metrics are being collected by running datadog-agent check prometheus
You can’t perform that action at this time.