Skip to content

Instantly share code, notes, and snippets.

View xbmcnut's full-sized avatar

xbmcnut

View GitHub Profile
@kibotu
kibotu / GUIDE.md
Last active November 3, 2022 14:04
magic mirror steps

Magic Mirror

Introduction

I'm assembling two magic mirrors for me and my girlfriend. Based on this video tutorial: https://www.youtube.com/watch?v=fkVBAcvbrjU.

However with a slight twist. I'm also installing a webcam and microphone so we can use both mirrors for video conferences.

And finally I'm going to add voice control support using google assistant.

@tshort
tshort / config.js
Created July 16, 2017 18:13
MagicMirror setup
var config = {
port: 8080,
ipWhitelist: [], // Set [] to allow all IP addresses.
language: "en",
timeFormat: 12,
units: "imperial",
modules: [
{
module: 'MMM-ProfileSwitcher',
@GManzato
GManzato / pm2.sh
Created September 3, 2017 09:59
Run PM2 on a Synology , file need to be create in `/usr/local/etc/rc.d`
#!/bin/sh
: ${pm2_user="root"}
command="/usr/local/lib/node_modules/pm2/bin/pm2"
pidfile="/home/${pm2_user}/.pm2/${name}.pid"
super() {
registers:
- name: L1 Voltage
unit_of_measurement: V
register: 0
data_type: float
precision: 2
count: 2
- name: L2 Voltage
unit_of_measurement: V
register: 2
version: '3.1'
services:
unifi:
container_name: unifi
restart: unless-stopped
image: linuxserver/unifi
volumes:
- /srv/docker/unifi:/config
environment:
- PGID=0
@dale3h
dale3h / ui-lovelace.yaml
Created July 23, 2018 22:32
[Lovelace] Create a header by using `panel: true` with nested stack cards
title: Home
views:
- title: Header
icon: mdi:car
panel: true
cards:
- type: vertical-stack
cards:
- type: glance
entities:
@ispiropoulos
ispiropoulos / shelly.py
Created August 28, 2018 09:16
Shelly Switch Home Assistant Component
"""
Support for The Shelly Wifi switch.
Save this file inside ".homeassistant/custom_components/switch" (create the folders if not present) and restart HASS.
usage example:
switch:
- platform: shelly
switches:
@techwithjake
techwithjake / clear-mqtt.yaml
Last active September 4, 2022 16:34
clear-mqtt-from-HA
automation:
- alias: clear_mqtt_topic
initial_state: 'on'
trigger:
- platform: state
entity_id:
- input_text.clear_mqtt_topic
condition:
- condition: template
value_template: "{{ 'homeassistant/sensor/' in states.input_text.clear_mqtt_topic.state }}"
@whiskerz007
whiskerz007 / gist:53c6aa5d624154bacbbc54880e1e3b2a
Last active January 3, 2024 00:08
How to setup a community version of Proxmox VE 5.x-6.x
# Disable Commercial Repo
sed -i "s/^deb/\#deb/" /etc/apt/sources.list.d/pve-enterprise.list
apt-get update
# Add PVE Community Repo
echo "deb http://download.proxmox.com/debian/pve $(grep "VERSION=" /etc/os-release | sed -n 's/.*(\(.*\)).*/\1/p') pve-no-subscription" > /etc/apt/sources.list.d/pve-no-enterprise.list
apt-get update
# Remove nag
echo "DPkg::Post-Invoke { \"dpkg -V proxmox-widget-toolkit | grep -q '/proxmoxlib\.js$'; if [ \$? -eq 1 ]; then { echo 'Removing subscription nag from UI...'; sed -i '/data.status/{s/\!//;s/Active/NoMoreNagging/}' /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js; }; fi\"; };" > /etc/apt/apt.conf.d/no-nag-script
@KiLLeRRaT
KiLLeRRaT / WiFi-Dimmer-Script-v0.3 - Dimmer with toggle switch.txt
Last active December 3, 2019 12:51
WiFi-Dimmer-Script-v0.3 - Dimmer with toggle switch.txt
>D
sw=0
swprev=0
tmp=0
cnt=0
tmr=0
hold=0
powert=0
slider=0
dim=""