Skip to content

Instantly share code, notes, and snippets.

View emorydunn's full-sized avatar

Emory Dunn emorydunn

View GitHub Profile

Sonoff Basic R3 DIY Mode (LEAST STEPS METHOD, no weird apps, no weird exe files)

Using a sonoff wifi switch, in DIY mode (no flashing required), and octoprint to automatically turn on/off a 3d printer!

Basically just step 2 of this (all the rest can really be ignored): https://tasmota.github.io/docs/Sonoff-DIY/

  1. Follow instructions how to enter DIY mode from Sonoff. This is the excerpt from it:
  1. Long press the button for 5 10 seconds to enter pairing mode, then press another 5 10 seconds to ender Compatible Pairing Mode (AP). The LED indicator should blink continuously.
@chockenberry
chockenberry / finder_icons.sh
Created March 16, 2023 20:00
Script to toggle Finder icons
#!/bin/sh
defaults read com.apple.finder CreateDesktop > /dev/null 2>&1
enabled=$?
if [ "$1" = "off" ]; then
if [ $enabled -eq 1 ]; then
osascript -e 'tell application "Finder" to quit'
defaults write com.apple.finder CreateDesktop false
open -a Finder