Skip to content

Instantly share code, notes, and snippets.

View jcallaghan's full-sized avatar

James Callaghan jcallaghan

View GitHub Profile
bryanbr23 /
Last active April 9, 2024 18:39
Automated Herb Plant Watering System

Automated Herb Plant Watering System


Ok, I admit it: I generally excel at killing plants largely due to neglect. Sure, I could claim work, cooking, hobbies, etc. If I’m honest, I generally forget to water them. So, I wanted to implement an automated watering system linked to home automation. I wanted to do it on the cheap. This was also a test, so if needed a throw-away experiment. Turns out it works for few (3) herb-plants that I needed to keep alive.


  • D1_Mini (Wemo, ESP8266).
  • Kit link.
  • 5v Relay
basesnow / automations.yaml
Created August 7, 2020 19:15
Garage Door / HVAC notifications
## Garage Door Notification
- id: '1588906118469'
alias: 'Notification: Colin''s Stuff: Garage door left open'
description: ''
- entity_id: cover.garage_door
for: 00:10:00
platform: state
to: open
- entity_id: cover.garage_door
Brunty / configuration.yaml
Last active July 30, 2020 13:34
Message announcement in HA
friendly_name: "Living Room Media Volume"
initial_value: 0
friendly_name: "Matt Office Media Volume"
initial_value: 0
jcallaghan / Recipe.html
Last active October 24, 2019 14:51
WordPress recipe boilerplate with schema tags. #Website
<div itemtype="">
<!-- wp:heading -->
<h2 class="cooking-heading" itemprop="name" itemtype="">???</h2>
<!-- /wp:heading -->
<!-- wp:paragraph -->
<span class="cooking-description" itemprop="description">???</span>
<!-- /wp:paragraph -->
whiskerz007 / gist:53c6aa5d624154bacbbc54880e1e3b2a
Last active January 3, 2024 00:08
How to setup a community version of Proxmox VE 5.x-6.x
# Disable Commercial Repo
sed -i "s/^deb/\#deb/" /etc/apt/sources.list.d/pve-enterprise.list
apt-get update
# Add PVE Community Repo
echo "deb $(grep "VERSION=" /etc/os-release | sed -n 's/.*(\(.*\)).*/\1/p') pve-no-subscription" > /etc/apt/sources.list.d/pve-no-enterprise.list
apt-get update
# Remove nag
echo "DPkg::Post-Invoke { \"dpkg -V proxmox-widget-toolkit | grep -q '/proxmoxlib\.js$'; if [ \$? -eq 1 ]; then { echo 'Removing subscription nag from UI...'; sed -i '/data.status/{s/\!//;s/Active/NoMoreNagging/}' /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js; }; fi\"; };" > /etc/apt/apt.conf.d/no-nag-script
douglas /
Created October 14, 2011 15:04
Update all git repositories under a base directory
# store the current dir
# Let the person running the script know what's going on.
echo "\n\033[1mPulling in latest changes for all repositories...\033[0m\n"
# Find all git repositories and update it to the master latest revision
for i in $(find . -name ".git" | cut -c 3-); do