Skip to content

Instantly share code, notes, and snippets.

View ping-localhost's full-sized avatar

Mitchell ping-localhost

View GitHub Profile
@ping-localhost
ping-localhost / remove-all-from-docker.sh
Last active January 2, 2020 13:11 — forked from beeman/remove-all-from-docker.sh
Remove all from Docker
# Stop all containers
docker stop `docker ps -qa`
# Remove all containers
docker rm `docker ps -qa`
# Remove all images
docker rmi -f `docker images -qa `
# Remove all volumes
@ping-localhost
ping-localhost / configuration.yaml
Last active March 28, 2019 13:31
Home Assistant - Xiaomi Vacuum Card
sensor:
- platform: template
sensors:
vacuum_status:
friendly_name: Status
entity_id: vacuum.xiaomi_vacuum
value_template: 'Status: {{ states.vacuum.xiaomi_vacuum.attributes.status }}'
icon_template: >
{% set val = states.vacuum.xiaomi_vacuum.attributes.status %}
{% if val == 'Charging' %}