Skip to content

Instantly share code, notes, and snippets.

View johntdyer's full-sized avatar

John Dyer johntdyer

View GitHub Profile
@LilTrublMakr
LilTrublMakr / icons.yaml
Last active November 24, 2022 14:49
Garage Door SVG Animation (Not working)
NOTES:
The switch does not have an on/off state. The states I am mostly concerned about is "Open" and "Closed".
There are also "Opening" and "Closing" but they are unreliable. It is also listed as a 'cover': cover.garage-door
Right now, I believe that it is always displaying the else statement. When simulating the open or
closed state, the card does not display the animation. It just swapps the card colors with the
'door closed' (else) icon.
--------------------
@dvdhout
dvdhout / udm-pro-ssh-commands.md
Last active August 9, 2024 15:07
UDM/UDM-P SSH commands

Reddit source by 9Switch

Some useful UDM/UDM-P SSH commands

Most of the commands are just Linux commands. However some are unique to the UDM/UDM-P.

Cisco/EdgeOS/VyOs Command/Best description UDM/UDM-P SSH Command
show version info
show system hardware and installed software ubnt-device-info summary
@iamhowardtheduck
iamhowardtheduck / plex
Last active June 19, 2024 21:49
Plex Pipeline
PUT _ingest/pipeline/plex
{
"processors": [
{
"set": {
"field": "event.module",
"value": "plex",
"ignore_failure": true
}
},
@sstratoti
sstratoti / actionable-notifications-subflow-for-ios.md
Last active April 15, 2024 00:49
iOS Subflow for HomeAssistant Companion notifications
@m33x
m33x / hass.js
Last active September 17, 2024 12:21
Simple Home Assistant (HASS) iOS Widget via Scriptable App
let widget = await createWidget();
if (!config.runsInWidget) {
await widget.presentSmall();
}
Script.setWidget(widget);
Script.complete();
async function createWidget(items) {
@johntdyer
johntdyer / unifi-cloudkey.md
Created November 25, 2018 17:23
Unifi Cloudkey
title date draft categories tags thumbnail
Using Let's Encrypt Certificates with Unifi
2018-04-25
false
Security
unifi
lets-encrypt
ssl
/images/2018/04/lets-encrypt-logo.png

Let's Encrypt is a great service that automates deployment and renewal of SSL certificates, at a bargain price. For most situations where you have a regular OS, the default Certbot Acme client works well. However for more embedded solutions, like Ubiquiti's Unifi Cloudkey this is not an option as there is no full Linux OS. After researching a few of the alternative options, Acme Shell was the clear winner. It runs using the Bourne shell, and has Unifi support built in.

@cwjohnston
cwjohnston / README.md
Last active March 30, 2018 13:09
Sensu Scheduled Downtime POC

Sensu Scheduled Downtime Event Annotation

As part of helping a customer develop their proof of concept monitoring system with Sensu Enterprise, I worked up a mutator which uses stash data to determine if an event occurred within a pre-defined maintenance window.

The idea here is that event data needs to be annotated to indicate whether an event occurred during a scheduled maintenance window for SLA reporting purposes. With this added downtime context, events logged to an external source (e.g. greylog, elasticsearch) via Sensu Enterprise event bridge should provide enough information to determine whether or not a client's check result matches a scheduled downtime window.

Please note that I have done very little in the way of testing so this plugin is not likely to be very robust. Since this mutator probably needs to be applied to every event, it should probably be implemented as an extension before being put into a production system.

Assumptions

@matthewmueller
matthewmueller / osx-for-hackers.sh
Last active October 16, 2024 08:37
OSX for Hackers (Mavericks/Yosemite)
# OSX for Hackers (Mavericks/Yosemite)
#
# Source: https://gist.github.com/brandonb927/3195465
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Ask for the administrator password upfront
#!/usr/bin/env ruby
require 'rubygems' if RUBY_VERSION < '1.9.0'
require 'sensu-handler'
require 'hipchat'
require 'timeout'
module Sensu::Extension
class Hipchat < Handler # Sub-class the appropriate extension type

Job Posting

Title: Senior Systems Engineer
Company: Tropo Inc.
Reports to: Director of Platform Operations
Job Type: Permanent 40 hours per week plus On-Call shift rotation
Location: Atlanta, GA / Remote