Skip to content

Instantly share code, notes, and snippets.

View sammcj's full-sized avatar
🦃

Sam sammcj

🦃
View GitHub Profile
@allenporter
allenporter / notify_agent_agenda.yaml
Last active July 9, 2025 22:38
Home Assistant Blueprint: Conversation agent Agenda Notification
---
blueprint:
name: Conversation agent Agenda Notification
description:
Conversation agent generates a notification based on the upcoming calendar
agenda, location, and weather information.
domain: automation
input:
notify_time:
name: Notification time

[This portion of call begins at 25:47]

Me: I could make it really easy on you, if you think Apollo is costing you $20 million per year, cut me a check for $10 million and we can both skip off into the sunset. Six months of use. We're good. That's mostly a joke.

Reddit: Six months of use? What do you mean? I know you said that was mostly a joke, but I want to take everything you're saying seriously just to make sure I'm not - what are you referring to?

Me: Okay, if Apollo's opportunity cost currently is $20 million dollars. At the 7 billion requests and API volume. If that's your yearly opportunity cost for Apollo, cut that in half, say for 6 months. Bob's your uncle.

Reddit: You cut out right at the end. I'm not asking you to repeat yourself for a third time, but you legit cut out right at the end. "If your opportunity cost is $10 million" and then I lost you.

esphome:
name: "sensibo-sky"
esp8266:
board: esp01_1m
# Enable logging
logger:
# Enable Home Assistant API
@RickyCook
RickyCook / run_in_linux.sh
Created August 16, 2022 06:11
Wrap a command in a Docker container to create a simple "in Linux" utility
#!/usr/bin/env bash -e
### CONFIG
CONTAINER_NAME=something_unique_here
CONTAINER_IMAGE=python:3.9 # must have bash, or change the infinite sleep on :17
COMMAND_PREFIX=./pants
### STOP EDITING
@krushildhamelia
krushildhamelia / TopazLabs (Topaz Gigapixel AI, Topaz DeNoise AI, ...) AI Model Files List Of URLs.txt
Last active June 20, 2025 05:21
TopazLabs (Topaz Gigapixel AI, Topaz DeNoise AI, ...) AI Model Files List Of URLs. download and place under "%AppData%\Topaz Labs LLC\Topaz Gigapixel AI\tgrc\" OR "%PROGRAMDATA%\Topaz Labs LLC\Topaz Gigapixel AI\tgrc" to avoid downloading in program time. use aria2c to download the whole list with '--input-file=your_file.txt'.
http://models.topazlabs.com/v1/gnn-v1-fp16-256x256-1x-ov.tz
http://models.topazlabs.com/v1/gnn-v1-fp16-256x256-2x-ov.tz
http://models.topazlabs.com/v1/gnn-v1-fp16-256x256-4x-ov.tz
http://models.topazlabs.com/v1/gnn-v1-fp16-384x384-1x-ov.tz
http://models.topazlabs.com/v1/gnn-v1-fp16-384x384-2x-ov.tz
http://models.topazlabs.com/v1/gnn-v1-fp16-384x384-4x-ov.tz
http://models.topazlabs.com/v1/gnn-v1-fp32-256x256-1x-ov.tz
http://models.topazlabs.com/v1/gnn-v1-fp32-256x256-2x-ov.tz
http://models.topazlabs.com/v1/gnn-v1-fp32-256x256-4x-ov.tz
http://models.topazlabs.com/v1/gnn-v1-fp32-384x384-1x-ov.tz
@laundmo
laundmo / compose-check.py
Last active December 23, 2022 07:45
Check which docker-compose services were changed since last "up" and which containers need to be restarted
#!/usr/bin/env python3
# This code is available under the MIT license: https://opensource.org/licenses/MIT
from pathlib import Path
import subprocess
import json
from dataclasses import dataclass
from typing import List, Optional
@sammcj
sammcj / gigs.md
Last active May 24, 2025 08:32
Gigs List

Bands

(The ones I can remember)

  • Sun Kil Moon
  • TOOL
  • QOTSA
  • NIN
  • Hazmat Modine
  • Buena Vista Social Club
@tuxuser
tuxuser / adalight_neopixel.ino
Last active August 25, 2023 02:20
Adalight Neopixel implementation (SK6812 RGBW works)
#include <Adafruit_NeoPixel.h>
#ifdef __AVR__
#include <avr/power.h> // Required for 16 MHz Adafruit Trinket
#endif
/**************************************
S E T U P
set following values to your needs
**************************************/

Moved to repo: /quenhus/uBlock-Origin-dev-filter

In order to keep filters up to date, please use this repo.