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: |
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
#!/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
#!/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
#!/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
{ | |
"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
{% 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
#!/bin/sh | |
# Get out of town if something errors | |
# set -e | |
# Get info on the monitors | |
HDMI1_STATUS=$(</sys/class/drm/card0/card0-HDMI-A-1/status ) | |
HDMI2_STATUS=$(</sys/class/drm/card0/card0-HDMI-A-2/status ) | |
DP1_STATUS=$(</sys/class/drm/card0/card0-DP-1/status ) | |
DP2_STATUS=$(</sys/class/drm/card0/card0-DP-2/status ) |
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
from discord.ext import commands | |
import discord | |
import shlex | |
log = logging.getLogger(__name__) | |
class Embed_Commands: | |
def __init__(self, bot): | |
self.bot = bot |
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
from discord.ext import commands | |
import discord | |
import youtube_dl | |
import asyncio | |
import logging | |
log = logging.getLogger(__name__) | |
# Suppress noise about console usage from errors | |
youtube_dl.utils.bug_reports_message = lambda: '' |
NewerOlder