Skip to content

Instantly share code, notes, and snippets.

View fieldOfView's full-sized avatar

Aldo Hoeben fieldOfView

View GitHub Profile
@fieldOfView
fieldOfView / theme.json
Created October 24, 2019 15:32
A stub theme for Cura that has larger text
{
"metadata": {
"name": "Ultimaker Larger",
"inherits": "cura-light"
},
"fonts": {
"default": {
"size": 1.1,
"weight": 40,
@fieldOfView
fieldOfView / theme.json
Created May 17, 2020 16:42
A stub theme for Cura that has non-transparent helpers in layer view
{
"metadata": {
"name": "Ultimaker Dark non-transparent helpers",
"inherits": "cura-dark"
},
"colors": {
"layerview_support": [0, 255, 255, 255],
"layerview_support_infill": [0, 255, 255, 255],
"layerview_support_interface": [63, 127, 255, 255]
@fieldOfView
fieldOfView / overhang.shader
Last active August 28, 2020 08:15
Patched version of overhang.shader that highlights the parts of models that touch the builtplate
[shaders]
vertex =
uniform highp mat4 u_modelMatrix;
uniform highp mat4 u_viewMatrix;
uniform highp mat4 u_projectionMatrix;
uniform highp mat4 u_normalMatrix;
attribute highp vec4 a_vertex;
attribute highp vec4 a_normal;
@fieldOfView
fieldOfView / theme.json
Last active November 11, 2022 22:25
A stub theme for Cura that has custom colors in layer view
{
"metadata": {
"name": "Ultimaker Dark custom layerview colors",
"inherits": "cura-dark"
},
"colors": {
"layerview_ghost": [31, 31, 31, 95],
"layerview_none": [255, 255, 255, 255],
"layerview_inset_0": [29, 200, 200, 255],
@fieldOfView
fieldOfView / theme.json
Created May 20, 2022 11:17
A less-contrasty dark theme for Cura 5.0
{
"metadata": {
"name": "Ultimaker Darkish",
"inherits": "cura-dark"
},
"base_colors":
{
"background_1": [39, 44, 48, 255],
"background_2": [47, 53, 58, 255],
@fieldOfView
fieldOfView / Neopixelbus_Curtain_ESP32.ino
Created April 18, 2025 07:45
An Arduino sketch that uses Neopixelbus with adjusted timing to control a 20x20 WS2812b LED curtain from Aliexpress
#include <NeoPixelBus.h>
const static uint16_t PixelCount = 400;
const static uint8_t PixelPin = 13;
class NeoBitsSpeedWs2812xCurtain : public NeoBitsSpeedBase
{
public:
const static uint16_t BitSendTimeNs = 1425;
const static uint16_t ResetTimeUs = 300;
@fieldOfView
fieldOfView / midi2tasmota.py
Created June 13, 2025 13:08
MIDI to Tasmota PWM frequency script
import argparse
import time
import mido
import requests
class MidiToTasmota:
def __init__(self, midi_filename: str, ip_address: str, http_username: str|None=None, http_password: str|None=None):
self.midi_filename = midi_filename
@fieldOfView
fieldOfView / pull_homeassistant_image.sh
Created May 12, 2026 11:37
A bash script to pull and recompress the home-assistant docker image for use with older docker installs (eg on Synology DSM 6)
#!/usr/bin/env bash
set -euo pipefail
TMP="$(mktemp -d)"
trap 'rm -rf "$TMP"' EXIT
docker run --rm \
-v "$TMP:/images" \
--entrypoint sh \
quay.io/skopeo/stable \