Skip to content

Instantly share code, notes, and snippets.

@jhaury
jhaury / screwstilt.cfg
Created April 18, 2024 03:46
Screws tilt for klipper for a neptune 4 max
[screws_tilt_adjust]
#Positions below show x and y positions of each screw adjusted for position of the probe as per this documentation
screw1: 239, 189.55 #old value for x was 234.25
screw1_name: center point
screw2: 62.25, 13.55
screw2_name: front left screw
screw3: 416.25, 13.55
screw3_name: front right screw
@jhaury
jhaury / docker-compose.yml
Created August 14, 2023 02:01
docker-compose for sonarr, radarr, sabnzbd
version: "3.6"
services:
sabnzbd:
image: "linuxserver/sabnzbd"
container_name: "sabnzbd"
volumes:
- ${USERDIR}/docker/sabnzbd:/config
- /data/usenet/complete:/complete
# oled screen off a esp8266 will display via mqtt temp and humidity
#
#
#include Wire.h
#include Arduino.h
#include U8g2lib.h
#include ESP8266WiFi.h
#include PubSubClient.h
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#include <ESP8266WiFi.h>
#include <PubSubClient.h>
// not available on ESP-01, but needed in the code
#define OLED_RESET 4
Adafruit_SSD1306 display(OLED_RESET);
[{"id":"4868a284.66517c","type":"http response","z":"feaafa48.a34f88","name":"Send TwiML","x":870,"y":200,"wires":[]},{"id":"1444c0f8.9e1bff","type":"http in","z":"feaafa48.a34f88","name":"Incomming Twilio Call","url":"/twiliovoice","method":"post","upload":false,"swaggerDoc":"","x":316,"y":202,"wires":[["8cebf57a.769bc8","a77ee63.fbb7618"]]},{"id":"8cebf57a.769bc8","type":"function","z":"feaafa48.a34f88","name":"Process Call","func":"var twiml_response = \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"yes\\\"?> \\\n <Response> \\\n <Gather action=\\\"https://yourserver.com/twilioivr\\\" numDigits=\\\"1\\\"> \\\n <Say voice=\\\"woman\\\">Welcome to Node-Red. For power usage press 1. To ring the bell press 2. For anything else press 3</Say> \\\n </Gather> \\\n <Say voice=\\\"woman\\\">Sorry, I didn't get your response.</Say> \\\n </Response>\";\nmsg.payload = twiml_response;\nreturn msg;","outputs":1,"noerr":0,"x":630,"y":200,"wires":[["4868a284.66517c","daf3c74e.9
<VirtualHost *:80>
ServerAdmin admin@mydomain.com
ProxyRequests off
DocumentRoot /path/to/my/servers/www/mydomain.com
SSLProxyEngine on
ProxyPreserveHost on
ServerName mydomain.com
ErrorLog ${APACHE_LOG_DIR}/nodered-mydomain-error.log