Skip to content

Instantly share code, notes, and snippets.

View gamingrobot's full-sized avatar
🤖
Doing Stuff

Morgan Creekmore gamingrobot

🤖
Doing Stuff
View GitHub Profile
@gamingrobot
gamingrobot / _modules.zerotier.py
Last active September 9, 2022 03:56
very basic saltstack module and state for doing things with zerotier-cli and zerotier central api
# -*- coding: utf-8 -*-
'''
Zerotier
'''
# Import python libs
from __future__ import absolute_import, generators, print_function, with_statement, unicode_literals
import logging
import json
@gamingrobot
gamingrobot / github_dashboard_ublock_filter.txt
Created July 22, 2021 20:56
Removes releases from github dashboard/news feed
! 2021-07-23 https://github.com
github.com###dashboard > div.news .release
@gamingrobot
gamingrobot / arris_modem_multiscrape.yaml
Last active May 19, 2024 23:43
Mutiscrape config for Home Assistant for Arris modem status page
muliscrape:
- name: Modem scraper
resource: http://192.168.100.1/cgi-bin/status_cgi
scan_interval: 300
sensor:
- unique_id: cable_modem_downstream_1_power
name: "Cable Modem Downstream 1 Power"
unit_of_measurement: 'dBmV'
select: ".main_body > table:nth-child(4) > tbody:nth-child(1) > tr:nth-child(2) > td:nth-child(4)"
value_template: '{{ (value.split(" ")[0]) }}'