Skip to content

Instantly share code, notes, and snippets.

@Stubbs
Stubbs / printer.cfg
Created October 29, 2025 20:32
Config file for Klipper & Creality Ender 5 Pro
# This file contains common pin mappings for the 2019 Creality
# Ender 5. To use this config, the firmware should be compiled for the
# AVR atmega1284p. This also works for the v1.1.5 silent boards.
# Note, a number of Melzi boards are shipped with a bootloader that
# requires the following command to flash the board:
# avrdude -p atmega1284p -c arduino -b 57600 -P /dev/ttyUSB0 -U out/klipper.elf.hex
# For v1.1.5 silent boards, the following command is used:
# avrdude -p atmega1284p -c arduino -P /dev/ttyUSB0 -b 115200 -U flash:w:out/klipper.elf.hex
# If the above command does not work and "make flash" does not work
⠸ Loading Strapi[ERROR]  There seems to be an unexpected error, try again with --debug for more information 

┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│                                                                                                                                                        │
│   TypeError: Cannot read properties of undefined (reading 'map')                                                                                       │
│       at extendMiddlewareConfiguration (/Users/stuart/Projects/brfcs/v2/brockhall/node_modules/@strapi/content-manager/dist/server/index.js:1029:47)   │
│       at Object.register (/Users/stuart/Projects/brfcs/v2/brockhall/node_modules/@strapi/content-manager/dist/server/index.js:1060:17)                 │
│       at Object.register (/Users/stuart/Projects/brfcs/v2/brockhall/node_modules/@strapi/content-manager/dist/server/index.js:1119:20
actionid: py37
msg: getenv
cmdargs: ['/usr/bin/env', 'LANG=C.UTF-8', 'pip', 'install', '-r/Users/stuart/Projects/HomeAssistant/home-assistant/requirements_test_all.txt', '-c/Users/stuart/Projects/HomeAssistant/home-assistant/homeassistant/package_constraints.txt']
Collecting asynctest==0.12.2 (from -r /Users/stuart/Projects/HomeAssistant/home-assistant/requirements_test_all.txt (line 5))
Using cached https://files.pythonhosted.org/packages/ee/29/9a9289a11b56ceb28dc18fc5b1af9b4223a387269252bb0f349c9da2ed10/asynctest-0.12.2-py3-none-any.whl
Collecting coveralls==1.2.0 (from -r /Users/stuart/Projects/HomeAssistant/home-assistant/requirements_test_all.txt (line 6))
Using cached https://files.pythonhosted.org/packages/7e/26/7a820800615866b624cb5612f7f661405f713b2292cd94ace8b648705747/coveralls-1.2.0-py2.py3-none-any.whl
Collecting flake8-docstrings==1.3.0 (from -r /Users/stuart/Projects/HomeAssistant/home-assistant/requirements_test_all.txt (line 7))
Using cached https://files.pythonhosted.org/packages/4e/a
NAME=/mnt/hendry/media/Videos/cctv/cctv
if [[ -e $NAME.h264 ]] ; then
i=0
while [[ -e $NAME-$i.h264 ]] ; do
let i++
done
NAME=$NAME-$i
fi
/usr/bin/raspivid -n -t 30000 -o $NAME.h264
@Stubbs
Stubbs / Debounce Node
Created December 22, 2016 14:22
Debounce node for Node Red.
// A little function to debounce messages
// that tend to flip flop a lot
// Uses the message topic as the key.
var debounceTracker = global.get("debounceTracker");
if (!debounceTracker) {
debounceTracker = {};
}
@Stubbs
Stubbs / keybase.md
Last active February 5, 2016 20:18

Keybase proof

I hereby claim:

  • I am stubbs on github.
  • I am stubbs (https://keybase.io/stubbs) on keybase.
  • I have a public key whose fingerprint is 5E48 F78E 2904 478C F209 4A37 C446 73C2 684C F089

To claim this, I am signing this object:

Verifying that +stuartgrimshaw is my blockchain ID. https://onename.com/stuartgrimshaw
#!/bin/sh
# Download to your project's .git/hooks/prepare-commit-msg and make it executable.
if [ -z "$BRANCHES_TO_SKIP" ]; then
BRANCHES_TO_SKIP=(master)
fi
BRANCH_NAME=$(git symbolic-ref --short HEAD)
BRANCH_NAME="${BRANCH_NAME##*/}"
Verifying that +stubbs is my blockchain ID. https://onename.com/stubbs
'use strict';
module.exports = function (grunt) {
grunt.initConfig({
clean: ['build'],
concurrent: {
dev: ['nodemon:app', 'webpack:dev'],
options: {
logConcurrentOutput: true
}