Skip to content

Instantly share code, notes, and snippets.

View FabianGabor's full-sized avatar

Fábián Gábor FabianGabor

View GitHub Profile
@FabianGabor
FabianGabor / sensor-light.yaml
Last active November 17, 2023 06:40 — forked from Blackshome/sensor-light.yaml
Home Assistant Sensor Light that can be used in Blueprints
blueprint:
name: Sensor Light
description: >
# Sensor Light
**Version: 5.0**
The most common automation used for a sensor light.
@FabianGabor
FabianGabor / nginx-subdomain-redirect-to-dir.nginx
Last active February 25, 2021 00:10 — forked from gsanders5/example.nginx
Automatic nginx virtual subdomains with sub-folders or sub-directories
# Automatic nginx virtual subdomains with sub-folders or sub-directories
#
# Since the original source where I found this code is now offline, I have decided to mirror it here.
# All credit goes to: http://web.archive.org/web/20150307193208/http://www.messaliberty.com/2010/10/automatic-nginx-virtual-subdomains-with-sub-folders-or-sub-directories
#
# Description: In my web root directory I wanted create a folder called photos, and another called
# music using a sftp program. Without manually going back to the config file or to the shell I like to
# be able to access them at photos.nginxdomain.com and music.nginxdomain.com. That is what this config does.
# Redirect visitors from http://nginxdomain.com/ to http://www.nginxdomain.com/