Skip to content

Instantly share code, notes, and snippets.

View benneti's full-sized avatar

Benedikt Tissot benneti

View GitHub Profile
@handcoding
handcoding / Ashley’s Light Fader.yaml
Last active November 13, 2024 07:34
This script for Home Assistant will fade a lamp over time with your choice of easing, including varieties of ease-in, ease-out, and ease-in-out.
alias: Ashley’s Light Fader
description: >
Fades a lamp over time. If you have any questions or comments about this
script, feel free to tweet Ashley Bischoff at @FriendlyAshley. Released under
the Apache 2.0 license. (v2.0)
fields:
light:
name: 💡 Light
description: entity_id of the lamp.
selector:
@ivan
ivan / gist:c4d6ba9a9773c13e63e2563ce8c0f8e2
Created June 21, 2019 18:22
DNS resolver settings for NixOS
networking = {
# Don't try to find our domain name or DNS servers because then
# resolvconf will insert them into /etc/resolv.conf
dhcpcd.extraConfig =
''
nooption domain_name_servers, domain_name, domain_search, host_name
nooption ntp_servers
'';
nameservers = [
"1.1.1.1"