Skip to content

Instantly share code, notes, and snippets.

@kdorff
kdorff / moisture-1.yml
Created May 18, 2022 02:32
ESPHome code for moisture sensors
# Reads analog data using an ads1115. Three moisture sensors and a battery sensor.
# Goes to sleep for an hour at a time.
# Uses a helper input_boolean to keep it from going to sleep, in case you want to update it.
esphome:
name: moisture-1
platform: ESP32
board: esp32dev
on_boot:
then:
@ignamiranda
ignamiranda / Reddit Private Post Redirector.user.js
Last active August 2, 2023 11:55
Redirects to Wayback Machine archive of private Reddit posts and subreddits with user confirmation
// ==UserScript==
// @name Reddit Private Post Redirector
// @namespace ignamiranda
// @version 1.1
// @description Redirects the "Browse Reddit" button to the Wayback Machine archive of a private Reddit post or subreddit
// @author Ignacio Miranda
// @match https://www.reddit.com/*
// @grant GM_addStyle
// ==/UserScript==