Skip to content

Instantly share code, notes, and snippets.

@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.
--------------------
@iamhowardtheduck
iamhowardtheduck / plex
Last active May 26, 2023 21:17
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 April 27, 2024 22:35
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 April 21, 2024 03:30
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
@jordansissel
jordansissel / RESULTS.md
Created September 21, 2012 07:41
screenshot + code showing how to query logstash/elasticsearch with a graphite function.

logstash queries graphed with graphite.

Operation: Decouple whisper from graphite.

Method: Create a graphite function that does a date histogram facet query against elasticsearch for a given query string for the time period viewed in the current graph.

Reason: graphite has some awesome math functions. Wouldn't it be cool if we could use those on logstash results?

The screenshot below is using logstash to watch the twitter stream of keywords "iphone" "apple" and "samsung" - then I graph them each, so we get an idea of popularity. As a bonus, I also do a movingAverage() on the iphone curve to show you why this is awesome.