Skip to content

Instantly share code, notes, and snippets.

View boop5's full-sized avatar
🏠
Working from home

LSC boop5

🏠
Working from home
View GitHub Profile
@bfritscher
bfritscher / sendToHA.js
Created September 14, 2022 13:08
node.js script to upload external data to home assistant via the websocket api
const W3CWebSocket = require("websocket").w3cwebsocket; // npm install websocket
const host = "127.0.0.1";
const port = 8123;
const protocol = "ws"; // ws or wss if ssl
// long lived access token from profile > Create Token
const access_token ="";
const entityName = "Energy Consumption";
const entityId = "energy_consumption_kwh";
@ChipCE
ChipCE / readme.md
Last active March 28, 2025 18:09
Klipper bed mesh on print area only macro install guide

READ THIS FIRST

Adaptive bed mesh is merged into klipper master branch. You can use this feature without this custom macro. Official klipper adaptive bed mesh

Klipper mesh on print area only install guide

What this macro do

  • This macro will dynamically changing the bed mesh area based on the size of the parts will be printed. The fw will only probe on the area that the part will be printed (plus mesh_area_offset value)
@lg
lg / adding-tailscale-to-edgerouter.md
Last active May 9, 2025 21:45
Add tailscale to an EdgeRouter and surviving system upgrade

Adding tailscale to an EdgeRouter (and surviving system upgrades)

I suggest you run sudo bash on all of these so you're the root user.

Installing

  1. Download tailscale and put the files in /config/. Find the latest stable or unstable version for your EdgeRouter's processor (ex. ER4 is mips and ERX is mipself)
sudo bash    # if you havent already
@krobertson
krobertson / parts.md
Last active March 8, 2023 05:43
Voron 2.4 Printed Parts List

Voron 2.4 Printed Parts List

Parts for: Electronics_Compartment/DIN_Brackets

  [ ] [ ]     duet_duex_bracket_x2.stl
  [ ]         lrs_psu_bracket_clip.stl
  [ ] [ ] [ ] pcb_din_clip_x3.stl
  [ ] [ ]     ramps_bracket_x2.stl
@fernandoaleman
fernandoaleman / Linux Static IP
Created March 23, 2012 16:20
How To Configure Static IP On CentOS 6
## Configure eth0
#
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
NM_CONTROLLED="yes"
ONBOOT=yes
HWADDR=A4:BA:DB:37:F1:04
TYPE=Ethernet
BOOTPROTO=static