Skip to content

Instantly share code, notes, and snippets.

View PurpleBooth's full-sized avatar

Billie Thompson PurpleBooth

View GitHub Profile
@PurpleBooth
PurpleBooth / README-Template.md
Last active March 11, 2026 10:14
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

Contributing

When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.

Please note we have a code of conduct, please follow it in all your interactions with the project.

Pull Request Process

  1. Ensure any install or build dependencies are removed before the end of the layer when doing a
@PurpleBooth
PurpleBooth / constant_lux_light_controller.yaml
Last active December 30, 2025 21:13
Home Assistant Constant Lux Light Controller
blueprint:
name: "Constant Lux Light Controller"
description: >
Maintains a constant lux level by adjusting light brightness.
Features:
- Prioritized light groups (ceiling vs accent)
- Sun-based color temperature for ceiling lights
- Presence detection with delay
- State restoration when returning to room
- Smooth transitions
@PurpleBooth
PurpleBooth / am-i-ready-to-open-source-this.md
Last active December 11, 2025 11:18
Checklist to see if your open source repo is primetime ready!

Am I ready to Open Source This?

The checklist:

  1. A readme following a good template
  2. A contributing.md with a code of conduct.
  3. A license
  4. Travis configuration
  5. A way for people to raise issues
  6. Link to it
aardvark
aardwolf
Aaronite
abaction
abaculus
abaissed
abampere
Abarambo
abasedly
abatable
@PurpleBooth
PurpleBooth / setup-git-delta.sh
Last active October 29, 2025 18:35
Git Setup
#!/usr/bin/env bash
git config --global core.pager delta
git config --global interactive.diffFilter "delta --color-only"
git config --global delta.navigate true
git config --global merge.conflictstyle zdiff3
@PurpleBooth
PurpleBooth / 1password
Last active February 2, 2025 20:51
Use sops to cache the one password vault session token because op is horrible to use
#!/usr/bin/env bash
set -euo pipefail
CACHE_DIR="${XDG_CACHE_HOME:-$HOME/Library/Caches}/wrapper-1password"
CACHE_FILE="$CACHE_DIR/session-token.yaml"
OP_LOCATION="$(command -v op)"
mkdir -p "$CACHE_DIR"

Docker Container Name

A one paragraph description about the container.

Getting Started

These instructions will cover usage information and for the docker container

Prerequisities

@PurpleBooth
PurpleBooth / thingy.go
Created July 20, 2024 09:43
Scrape github for merge durations
package main
import (
"golang.org/x/oauth2"
"github.com/google/go-github/github"
"context"
"fmt"
"time"
"os"
"log"