Skip to content

Instantly share code, notes, and snippets.

@thanegill
thanegill / check_oxidized_failing_nodes
Created December 26, 2024 20:38
LibreNMS/Nagios Oxidized check with http auth
#!/usr/bin/env ruby
## contrib via https://github.com/ytti/oxidized/issues/67
require 'open-uri'
require 'json'
critical = false
pending = false
critical_nodes = []
blueprint:
name: Lutron Pico Paddle Actions
description: |
Different Actions on Short, Long, and Double Click button presses.
There is no Double Click for up/down as those are slower to respond and produce bad experience.
Make sure you have enabled at least one Pico Event Entity for each device, they are default to not enabled as of 2023.3, otherwise they won't show up as an available device in the drop down list.
domain: automation
input:

Keybase proof

I hereby claim:

  • I am thanegill on github.
  • I am thanegill (https://keybase.io/thanegill) on keybase.
  • I have a public key ASDfMBXNvyPICXwkAmMVANM-jw3SXZVAE6uvIlJkkjem1Qo

To claim this, I am signing this object:

//: Playground - noun: a place where people can play
// Got most of it from:
// https://developer.apple.com/sample-code/wwdc/2015/downloads/Crustacean.zip
// This is in the Protocol-Oriented Programming in Swift talk
// Pay special attention to the Heterogeneous Equality section, on page 2.
//
// Most comments directly copy/pasted from Crustacean Playground
protocol Account {
@thanegill
thanegill / font-face mixin
Last active October 21, 2019 18:35 — forked from paul-english/gist:1340239
SCSS: font-face mixin
@mixin font-face($font-family, $url) {
@font-face {
font-family: '#{$font-family}';
src: url('#{$url}.eot');
src: url('#{$url}.eot?#iefix') format('embedded-opentype'),
url('#{$url}.woff') format('woff'),
url('#{$url}.ttf') format('truetype'),
url('#{$url}.svg') format('svg');
font-weight: normal;
font-style: normal;