Skip to content

Instantly share code, notes, and snippets.

View cayossarian's full-sized avatar

Bill Flood cayossarian

  • San Jose, CA
View GitHub Profile
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <stdbool.h>
#include <math.h>
#include <velib/utils/ve_item_utils.h>
#include <velib/vecan/products.h>
#include <velib/utils/ve_logger.h>
@beastycoding
beastycoding / install.sh
Created August 16, 2023 10:58 — forked from ikr4-m/install.sh
Hyper-V Enhanced Session for Debian
#!/bin/sh
# This script based on linux-vm-tools for Ubuntu 22.02.
# Thanks to https://github.com/Hinara/linux-vm-tools/ to script
# This script is for Ubuntu 22.04 Jammy Jellyfish to download and install XRDP+XORGXRDP via
# source.
#
# Major thanks to: http://c-nergy.be/blog/?p=11336 for the tips.
#
@hyun007
hyun007 / span.io-api-documentation.md
Last active September 5, 2024 19:29
span.io api documentation

Span.io API Documentation

The Span API does not at this time require any authentication. This will probably change in the future.

Description: Gets panel summary, firmware version, door state, serial number, network status Request: GET /api/v1/status Response:

{
  "software": {
    "firmwareVersion": "spanos2/r202216/04",
@ikr4-m
ikr4-m / install.sh
Created June 25, 2022 10:04
Hyper-V Enhanced Session for Debian
#!/bin/sh
# This script based on linux-vm-tools for Ubuntu 22.02.
# Thanks to https://github.com/Hinara/linux-vm-tools/ to script
# This script is for Ubuntu 22.04 Jammy Jellyfish to download and install XRDP+XORGXRDP via
# source.
#
# Major thanks to: http://c-nergy.be/blog/?p=11336 for the tips.
#
@gregoryduckworth
gregoryduckworth / restart_notification.yaml
Last active March 9, 2023 08:26
Home Assistant Restart Notification Blueprint
blueprint:
name: Home Assistant Restart Notification
description: Notify a user that Home Assistant has successfully restarted
domain: automation
input:
notification_title:
name: Notification title (Optional)
description: 'Default: "Home Assistant"'
default: Home Assistant
notification_message:
It's been a while since this gist was written. In the meantime the package homeassistant-supervised apt
package was introduced for debian based systems. If you used that way the first thing you should do use
the normal package uninstaller with something like: (sudo) apt remove homeassistant-supervised
If for some reason that doesn't work proceed with the below instructions for a manual cleanup.
1) stop services:
sudo systemctl stop hassio-supervisor.service
sudo systemctl stop hassio-apparmor.service
2) disable services:
[{"id":"884762f5.cd0d","type":"ha-api","z":"33f42d45.e29ad2","name":"areas","debugenabled":false,"protocol":"websocket","method":"get","path":"","data":"{\"type\": \"config/area_registry/list\"}","dataType":"json","location":"areas","locationType":"msg","responseType":"json","x":370,"y":256,"wires":[["611635f4.9fa17c"]]},{"id":"13514152.b154ef","type":"inject","z":"33f42d45.e29ad2","name":"Manual Update","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":176,"y":256,"wires":[["884762f5.cd0d"]]},{"id":"611635f4.9fa17c","type":"ha-api","z":"33f42d45.e29ad2","name":"devices","debugenabled":false,"protocol":"websocket","method":"get","path":"","data":"{\"type\": \"config/device_registry/list\"}","dataType":"json","location":"devices","locationType":"msg","responseType":"json","x":510,"y":256,"wires":[["4448646c.da0b7c"]]},{"id":"4448646c.da0b7c","type":"ha-api","z":"33f42d45.e29ad2","name":"entities","debugenabled":false,"protocol":"websocket","method":"get","pa