Skip to content

Instantly share code, notes, and snippets.

View cassidyjames's full-sized avatar

Cassidy James cassidyjames

View GitHub Profile
@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 {
@cassidyjames
cassidyjames / roost-ascii-40x26.txt
Created June 3, 2026 18:39
ROOST ASCII art · 40×26 characters
+#############++
+##+ +#+
##+ #+
+#+ ##
++###############+ +#+ ##
+##+ +#+ +#+ ##
++#+ +#+ +#+ ##
++#+ +#+ +#+ ##
++#+ +#+ +#+ ##
++#+ +#+ +#+ #+
@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 / 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 / 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 / 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 / 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 / framework-xrandr.txt
Created August 6, 2021 03:36
Notes for using xrandr on elementary OS for the Framework Laptop
## To add a sensible 1× resolution of 1500×1000:
gtf 1500 1000 60
# 1504x1000 @ 60.00 Hz (GTF) hsync: 62.10 kHz; pclk: 125.19 MHz
# Modeline "1504x1000_60.00" 125.19 1504 1600 1760 2016 1000 1001 1004 1035 -HSync +Vsync
xrandr --newmode "1504x1000_60.00" 125.19 1504 1600 1760 2016 1000 1001 1004 1035 -HSync +Vsync
xrandr --addmode eDP-1 "1504x1000_60.00"
@cassidyjames
cassidyjames / gist:5413a3ec621b6e484535bbe47dfed974
Created March 24, 2021 16:49
elementary Slack Sidebar (Dark)
#313131,#FAFAFA,#252525,#FFFFFF,#3B3B3B,#FFFFFF,#9BDB4D,#ED5353,#313131,#FFFFFF
@cassidyjames
cassidyjames / gist:90e29e9f89c769f781a259da687d48b2
Created March 24, 2021 16:42
elementary Slack Sidebar (Light)
#F1F1F1,#FAFAFA,#DFDFDF,#333333,#FBFBFB,#333333,#68B723,#C6262E,#EDEDED,#333333