Skip to content

Instantly share code, notes, and snippets.

# Carro Home Daisy Smart Fan with replaced ESP-12 wifi chip #1006938428 #318843266
# Store link: https://tinyurl.com/yp44ux4w
# Story here: http://1projectaweek.com/blog/2022/2/8/converting-a-carro-home-dc-fan-to-esp-home
substitutions:
device_name: penfan
device_description: Penelope's Ceiling Fan
friendly_name: Penelope Fan
esphome:
@ChipCE
ChipCE / readme.md
Last active June 3, 2024 13:44
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)
@Paraphraser
Paraphraser / Docker+OctoPrint - When your 3D printer turns on and off.md
Last active April 16, 2024 06:28
IOTstack+OctoPrint: When your 3D printer turns on and off

octoprint-docker: when your 3D printer turns on and off

Task goals

  • Keep the OctoPrint Docker container service running even when your printer is switched off:

    • GCODE files can still be uploaded
    • Plugins can still be updated
@zloeber
zloeber / gist:e280030aa819be22653809bb1d353c0d
Created January 2, 2020 19:10
helmfile: Cert-manager example
helmDefaults:
tillerless: true
tillerNamespace: platform
atomic: false
verify: false
wait: true
timeout: 1200
recreatePods: true
force: true
@nogajun
nogajun / JYS-NS138.md
Last active March 10, 2024 17:14
JYS-NS138 Controler Instruction Sheet

Operating Instructions:

1.Mode and connection instructions

The Mode Switch:

Press Y + Home 2 seconds to enter the Bluetooth search mode, led1-led4 running horse flashes, and the LED channel corresponding to the successful connection remains on (Switching the assignment of the host organization); Synchronous state, or being paired with host connection: led1-led4 flashing horse;

Note: when the handle enters synchronization mode, it will automatically go to sleep if no synchronization is reached within 2.5 minutes.

@csamsel
csamsel / h240.txt
Last active May 22, 2023 03:33
Switch HPE HBA H240 from raid mode to hba mode.
# So you want switch your HPE H240 controller to HBA mode for use with ESXi or UnRaid?
# online you'll find the follow command for HP controllers, like the P420i.
ssacli controller slot=0 modify hbamode=on
# For me, it was:
ssacli controller slot=255 modify raidmode=off
# while you are at it, you can also switch the power mode:
ssacli controller slot=255 modify powermode=minpower
@ammmze
ammmze / ConverterDateAndJavaTime.java
Last active June 7, 2024 09:27
opencsv HeaderColumnNameAndOrderMappingStrategy
package com.example.csv;
import com.opencsv.bean.ConverterDate;
import com.opencsv.exceptions.CsvDataTypeMismatchException;
import java.lang.reflect.InvocationTargetException;
import java.time.LocalDate;
import java.time.LocalTime;
import java.time.format.DateTimeFormatter;
import java.time.temporal.Temporal;
import java.util.Locale;
@milesbxf
milesbxf / monzo-alertmanager-config.yaml
Last active July 17, 2024 12:51
Monzo's Alertmanager Slack templates
###################################################
##
## Alertmanager YAML configuration for routing.
##
## Will route alerts with a code_owner label to the slack-code-owners receiver
## configured above, but will continue processing them to send to both a
## central Slack channel (slack-monitoring) and PagerDuty receivers
## (pd-warning and pd-critical)
##
@bemre
bemre / tail_android_app_logs.sh
Created July 24, 2015 13:17
Tail android application's log
adb logcat | grep `adb shell ps | grep com.example.package | cut -c10-15`
@tit
tit / getelementbyxpath.js
Last active December 27, 2021 10:45
Javascript => getElementByXPath
document.getElementByXPath = function(sValue) { var a = this.evaluate(sValue, this, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null); if (a.snapshotLength > 0) { return a.snapshotItem(0); } };
document.getElementsByXPath = function(sValue){ var aResult = new Array();var a = this.evaluate(sValue, this, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);for ( var i = 0 ; i < a.snapshotLength ; i++ ){aResult.push(a.snapshotItem(i));}return aResult;};
document.removeElementsByXPath = function(sValue) { var a = this.evaluate(sValue, this, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null); for ( var i = 0 ; i < a.snapshotLength ; i++ ) { a.snapshotItem(i).parentNode.removeChild(a.snapshotItem(i)); } };