Skip to content

Instantly share code, notes, and snippets.


Emory Dunn emorydunn

View GitHub Profile
emorydunn / led_strip_1.yaml
Last active Jan 22, 2021
Sonoff L1 ESPHome Component
View led_strip_1.yaml
name: led_strip_1
platform: ESP8266
board: esp8285
- custom_components/sonoff_l1.h
emorydunn / GPXToGeoJSON.swift
Last active Jan 8, 2020
Swift script to Convert GPX files to GeoJSON files for import into Compass
View GPXToGeoJSON.swift
// A Swift script to Convert GPX files to GeoJSON files for import into Compass
// The script takes a single argument, the GPX file, and saves out a matching GeoJSON file
// The GeoJSON is meant to be imported into Compass (
// and thus is not "correct" GeoJSON
import Foundation
/// An object to handle converting a GPX file to GeoJSON
struct GPXtoGeoJSON {
emorydunn / IncrementCounter.swift
Last active Apr 3, 2019
Add a counter to a URL
View IncrementCounter.swift
// IncrementCounter.swift
// Created by Emory Dunn on 2019-04-01.
import Foundation
extension URL {
emorydunn /
Last active Sep 26, 2019 — forked from JayH5/
Dump certificates from Traefik's acme.json
#!/usr/bin/env python3
import argparse
import base64
import json
import os
import shlex
import subprocess
import sys
emorydunn / MQTTRotary.ino
Created Dec 2, 2018
Use a rotary phone dial connected to an ESP8266 to send MQTT messages.
View MQTTRotary.ino
#include <ESP8266WiFi.h>
#include <PubSubClient.h>
#define wifi_ssid "## SSID ##"
#define wifi_password "## PASSWORD ##"
#define mqtt_server "## SERVER IP ##"
//#define mqtt_user ""
//#define mqtt_password ""
emorydunn / tinydash.html
Last active Oct 29, 2020
A small single screen dashboard for NetData.
View tinydash.html
<!DOCTYPE html>
<html lang="en">
<title>Tiny Dash</title>
<meta name="application-name" content="netdata">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1">

Keybase proof

I hereby claim:

  • I am emorydunn on github.
  • I am emorydunn ( on keybase.
  • I have a public key ASAyWL46_a-NUmVMFrpwpSWtjTOd7qycH3qQ9GSqHhZt-Ao

To claim this, I am signing this object: