Skip to content

Instantly share code, notes, and snippets.

@lillpjot
lillpjot / YubiKey-GPG-SSH-guide.md
Created February 14, 2020 09:45 — forked from ageis/YubiKey-GPG-SSH-guide.md
Technical guide for using YubiKey series 4 for GPG and SSH

YubiKey 4 series GPG and SSH setup guide

Written for fairly adept technical users, preferably of Debian GNU/Linux, not for absolute beginners.

You'll probably be working with a single smartcard, so you'll want only one primary key (1. Sign & Certify) and two associated subkeys (2. Encrypt, 3. Authenticate). I've published a Bash function which automates this slightly special key generation process.

@lillpjot
lillpjot / Hass_info.md
Created September 5, 2018 12:51
Where to store statix files hass

Hosting files

If you want to use Home Assistant to host or serve static files then create a directory called www under the configuration path (/config on Hass.io, .homeassistant elsewhere). The static files in www/ can be accessed by the following URL http://your.domain:8123/local/, for example audio.mp3 would be accessed as http://your.domain:8123/local/audio.mp3.

@lillpjot
lillpjot / examplehass.yaml
Created September 5, 2018 12:49
Example on Hass "template" for lovelace
greeter_weather_information_sunrise:
entity_picture_template: >
{% if is_state("sun.sun", "above_horizon") -%}
/local/icons/animated/greeter_card/sunrise.svg
{% else %}
{% set state = states.sensor.moon.state %}
{% set path = "/local/icons/animated/greeter_card/" %}
{{ path }}{{ state }}.svg
{% endif %}