Skip to content

Instantly share code, notes, and snippets.

View cassidyjames's full-sized avatar

Cassidy James cassidyjames

View GitHub Profile
@cassidyjames
cassidyjames / appcenter-remote.sh
Created June 24, 2022 19:44
Add elementary AppCenter Flatpak remote
#!/bin/sh
# Add elementary AppCenter Flatpak remote
# Open your Linux terminal/console app, and run:
flatpak remote-add --user --if-not-exists appcenter https://flatpak.elementary.io/repo.flatpakrepo
@cassidyjames
cassidyjames / temp-chart.yaml
Created November 27, 2023 18:06
Temperature chart for Home Assistant
type: custom:mini-graph-card
name: Living Room
entities:
- entity: sensor.living_room_avg_temperature
- entity: sensor.living_room_thermostat_living_room_temperature
show_fill: false
- entity: sensor.closet_door_temperature
show_fill: false
animate: true
decimals: 0
@cassidyjames
cassidyjames / aqi-strings.jinja2
Last active May 23, 2024 20:01
US EPA PM2.5 Air Quality strings for Home Assistant
{% if states('sensor.indoor_pm2_5') | float <= 9.0 %}
Good
{% elif states('sensor.indoor_pm2_5') | float <= 35.4 %}
Moderate
{% elif states('sensor.indoor_pm2_5') | float <= 55.4 %}
Unhealthy for Sensitive Groups
{% elif states('sensor.indoor_pm2_5') | float <= 125.4 %}
Unhealthy
{% elif states('sensor.indoor_pm2_5') | float <= 225.4 %}
Very Unhealthy
@cassidyjames
cassidyjames / pm25-aqi-card.yml
Created May 24, 2024 18:03
US EPA PM2.5 AQI card with multiple sensors
type: custom:mini-graph-card
name: Kids Room
entities:
- entity: sensor.kids_room_pm2_5
- entity: sensor.kids_room_starkvind_pm2_5
show_fill: false
- entity: sensor.kids_room_vindstyrka_pm2_5
show_fill: false
animate: true
decimals: 0
@cassidyjames
cassidyjames / coin_toss.yml
Last active June 2, 2026 13:40
Coin Toss blueprint for Home Assistant
blueprint:
name: Coin Toss
description: Flip a coin in response to common voice prompts, like “flip a coin” or “heads or tails.” If triggered from a voice satellite, play a little coin toss sound effect as well.
domain: automation
input:
sound_effect:
name: Sound Effect
description: Sound to be played before answering when triggered by a Voice Assist satellite
selector:
media:
@cassidyjames
cassidyjames / roost-ascii-40x26.txt
Created June 3, 2026 18:39
ROOST ASCII art · 40×26 characters
+#############++
+##+ +#+
##+ #+
+#+ ##
++###############+ +#+ ##
+##+ +#+ +#+ ##
++#+ +#+ +#+ ##
++#+ +#+ +#+ ##
++#+ +#+ +#+ ##
++#+ +#+ +#+ #+
@cassidyjames
cassidyjames / tweaks-for-mastodon.css
Last active June 28, 2026 10:54
CSS Tweaks for Mastodon
/* Cassidy’s CSS tweaks for mastodon.blaede.family
Inspired in part by TangerineUI:
https://github.com/nileane/TangerineUI-for-Mastodon/
…but much smaller in scope.
by @cassidy@blaede.family
*/
:root {