Skip to content

Instantly share code, notes, and snippets.

View skylord123's full-sized avatar

Skylar Sadlier skylord123

  • Skylar.Tech LLC
  • č̶̢ṙ̶̥̩e̴̮̞̓͝e̵̤͚͌̈́ṕ̵͈͖y̸̨͗̑ ̶̧̍͒y̴̭̰͒̾o̴̯̹͝u̸͖̾̚ ̷͇̊͆c̶͈͚͐à̸̛̙r̸͇͙̅e̷̹̓
View GitHub Profile
@skylord123
skylord123 / grafana-power-usage-dashboard.json
Created October 18, 2019 00:53
grafana-power-usage-dashboard
{
"__inputs": [
{
"name": "DS_GOLIATH_INFLUXDB",
"label": "goliath influxdb",
"description": "",
"type": "datasource",
"pluginId": "influxdb",
"pluginName": "InfluxDB"
}
@skylord123
skylord123 / example.js
Created August 12, 2019 16:55
Home Assistant open card full screen by entity ID
(function(ev, detail, entity=null) {
ev = new Event(ev, {
bubbles: true,
cancelable: false,
composed: true,
});
ev.detail = detail || {};
if(entity) {
entity.dispatchEvent(ev);
} else {
@skylord123
skylord123 / mqtt_helper.py
Last active July 30, 2017 23:46
Helper class for paho-mqtt to quickly integrate into existing sensor code (with reliable connection handling)
# Author: Skylar Sadlier
# Author URL: https://github.com/skylord123
# Script Link: https://gist.github.com/skylord123/a54ce88aa79dfcd268a1cd92b499883d
import paho.mqtt.client as mqtt_client
# - Class Terminal -
# Uses curses to draw data to the terminal window.
class MQTT_Helper():
@skylord123
skylord123 / sithous.js
Last active February 22, 2017 19:24
Associative array helpers
/**
*
* @param a
* @param b
* @param options
* ignoreMissingKeys (false) => if true will only compare keys that exist in both objects.
* caseSensitive (true) => if false strings will be compared without case sensitivity
* boolComparison (false) => if true will also compare using the Boolean values (helps match empty strings '' and NULL for example)
* @returns {boolean}
*/
@skylord123
skylord123 / gist:892b6e30b724b81a8a48
Created November 11, 2015 05:38
Linux machine to chromcast server
Following is taken from: https://plus.google.com/111475821387295047208/posts/KDEfS6S2hyk
-------------------------
How to turn your Linux machine into a Chromecast Server
Stream YouTube, Netflix, Hulu, Etc. from your smartphone or tablet onto your server or laptop. ...without buying Chromecast hardware...
Prerequisite- Install Google Chrome on your Desktop. Install Chromecast application onto your portable device.
@skylord123
skylord123 / completed.py
Created July 17, 2014 16:27
deluged, filebot, and plex integration
#!/usr/bin/python
import sys
import subprocess
import logging
from os import path
from deluge.ui.client import client
from twisted.internet import reactor
# Customizable filebot and script options. Lines starting with # are disbled. Remove # to enable them.