Skip to content

Instantly share code, notes, and snippets.

Avatar

Emory Dunn emorydunn

View GitHub Profile
@emorydunn
emorydunn / led_strip_1.yaml
Last active Jan 22, 2021
Sonoff L1 ESPHome Component
View led_strip_1.yaml
esphome:
name: led_strip_1
platform: ESP8266
board: esp8285
includes:
- custom_components/sonoff_l1.h
wifi:
@emorydunn
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 (https://github.com/aaronpk/Compass)
// and thus is not "correct" GeoJSON
import Foundation
/// An object to handle converting a GPX file to GeoJSON
struct GPXtoGeoJSON {
@emorydunn
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
emorydunn / acme-cert-dump.py
Last active Sep 26, 2019 — forked from JayH5/acme-cert-dump.py
Dump certificates from Traefik's acme.json
View acme-cert-dump.py
#!/usr/bin/env python3
import argparse
import base64
import json
import os
import shlex
import subprocess
import sys
@emorydunn
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
emorydunn / tinydash.html
Last active Oct 29, 2020
A small single screen dashboard for NetData.
View tinydash.html
<!DOCTYPE html>
<html lang="en">
<head>
<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">
View keybase.md

Keybase proof

I hereby claim:

  • I am emorydunn on github.
  • I am emorydunn (https://keybase.io/emorydunn) on keybase.
  • I have a public key ASAyWL46_a-NUmVMFrpwpSWtjTOd7qycH3qQ9GSqHhZt-Ao

To claim this, I am signing this object: