View periph_mqtt.py
This file contains 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/python | |
# -*- coding: utf-8 -*- | |
mqttuser = "*****" | |
mqttpwd = "*****" | |
mqtthost = "*****" | |
mqttport = 1883 | |
mqttkeepalive = 60 | |
piname = "*****" |
View Dockerfile
This file contains 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
# OwnTone Dockerfile | |
# Use this to create an OwnTone docker image | |
# The Dockerfile will create an initial configuration (.conf) file and a fifo pipe | |
# | |
# Run the image with: | |
# docker run -it --privileged \ | |
# --name=owntone --restart=unless-stopped \ | |
# -p 3689:3689 -p 6600:6600 \ | |
# -v /path/to/config/folder:/config -v /path/to/music:/music \ | |
# -v /var/run/avahi-daemon/socket:/var/run/avahi-daemon/socket \ |
View configuration.yaml
This file contains 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
homeassistant: true | |
permit_join: true | |
mqtt: | |
base_topic: zigbee2mqtt | |
server: mqtt://[IP]:[PORT] | |
user: [USER] | |
password: [PASS] | |
serial: | |
port: /dev/ttyACM0 | |
adapter: deconz |
View music_on_motion.yaml
This file contains 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
# Inspired by PIR_light.yaml by @vanceb | |
# @see https://gist.github.com/vanceb/b7402b9d1f66a6a2fb5c8e6de2a39b26 | |
blueprint: | |
name: Music on motion (OwnTone) | |
description: Turn on (= join the group) a OwnTone-controlled media player on motion detection | |
domain: automation | |
input: | |
owntone_source: |
View sensors.py
This file contains 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/python | |
# -*- coding: utf-8 -*- | |
# Simplified RPi system sensors MQTT announcements | |
# Inspired by the great work done by @Sennevds | |
# | |
# This script is meant to be executed via crontab. | |
# It does NOT maintain a persistent connection and/or employ a loop function to keep sending messages at defined intervals. | |
# Therefor, in order to make use of the LWT function, added the keepAlive flag to the connecion. | |
# |
View background.pug
This file contains 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
.wrapper.card1 | |
.title Quia voluptas voluptatem sit | |
.text Ea eius cum dolor facere sequi. Veritatis architecto fugiat rerum maxime. Cupiditate facere explicabo corrupti. Aliquid voluptas vel sequi fugiat adipisci sit ut | |
.wrapper.card2 | |
.title Sint eveniet repellendus fuga | |
.text Eveniet animi neque ipsum nihil rerum laboriosam. Quod fugiat quis inventore laudantium qui doloremque. Ea et autem sed |
View browser-preprocess.html
This file contains 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
<html> | |
<head> | |
<title></title> | |
<meta charset="UTF-8"> | |
<style language="stylus"> | |
body | |
h1 | |
color red | |
</style> | |
</head> |
View image.styl
This file contains 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
body | |
display flex | |
.image | |
width 30vw | |
height 80vh | |
margin auto | |
position relative | |
overflow hidden | |
&::before | |
&::after |
View testdisk.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View Toggle_.dot_notation.sh
This file contains 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 file in $NAUTILUS_SCRIPT_SELECTED_URIS; do | |
file_name=$(echo $file | sed -e 's/file:\/\///g' -e 's/\%20/\ /g' -e 's/.*\///g') | |
file_folder=$(echo $file | sed -e 's/file:\/\///g' -e 's/\%20/\ /g' -e "s/$file_name//g") | |
case "$file_name" in | |
.*) | |
new_file_name=$(echo $file_name | sed -e 's/\.//') | |
;; | |
*) | |
new_file_name=".$file_name" |
NewerOlder