This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% for item in ssh[(ansible_distribution | lower)][(ansible_distribution_major_version | int)] %} | |
- {{ item }} | |
{% endfor %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"info": { | |
"_postman_id": "be8810c1-7715-461c-bc34-1a6bc6360387", | |
"name": "Sonoff_mini", | |
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" | |
}, | |
"item": [ | |
{ | |
"name": "sonoff_on", | |
"request": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# MQTT settings | |
BROKER="" | |
TOPIC="" | |
USER="" | |
PASS="" | |
# Ensure mosquitto-clients is installed | |
dpkg -s mosquitto-clients >/dev/null 2>&1 || apt update && apt install -y mosquitto-clients |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import time | |
import json | |
import paho.mqtt.client as mqtt | |
import socket | |
MQTT_BROKER = "192.168.1.5" | |
MQTT_TOPIC = "hiveos" | |
TAIL_FILE = "/var/log/hive-agent.log" | |
MQTT_USER = "" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import argparse | |
CURR = "/sys/class/backlight/intel_backlight/brightness" | |
MAX = "/sys/class/backlight/intel_backlight/max_brightness" | |
def current_brightness(): | |
with open(CURR, 'r') as f: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--------------------------- | |
-- Default awesome theme -- | |
--------------------------- | |
local theme_assets = require("beautiful.theme_assets") | |
local xresources = require("beautiful.xresources") | |
local dpi = xresources.apply_dpi | |
local gfs = require("gears.filesystem") | |
local themes_path = gfs.get_themes_dir() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
database: | |
path: /frigate.db | |
mqtt: | |
host: [redacted] | |
topic_prefix: frigate | |
client_id: frigate | |
user: [redacted] | |
password: [redacted] | |
detectors: | |
cpu1: |
OlderNewer