Skip to content

Instantly share code, notes, and snippets.

View sscotth's full-sized avatar
🏠
𝄆 🍽 🛌 👨‍💻 𝄇

Scott Humphries sscotth

🏠
𝄆 🍽 🛌 👨‍💻 𝄇
View GitHub Profile
@sscotth
sscotth / 00-overview.md
Last active November 16, 2026 07:53
T3 Code + Effect-TS deep dive (Nov 2026): patterns in pingdotgg/t3code at Effect 4.1.x, and what changed since 4.0.0-beta.102

T3 Code and Effect-TS: second deep dive (November 2026)

Snapshot: commit f8c8f30e49 (2026-11-15). Effect 4.1.3, @effect/* 4.1.2, @effect/tsgo 0.67.1. First study: August 2026, Effect 4.0.0-beta.102.

This file is the synthesis. The eleven numbered reports hold the evidence: excerpts, path:line references, the grep used for each count, and a NEW / CHANGED / UNCHANGED mark on each finding.

File Subject Lines
#!/bin/bash
BEARER_TOKEN="xxxxxx"
API_BASE_URL="https://api.smartthings.com/v1/devices"
# --- Configuration (EDIT THIS ARRAY ONLY) ---
DEVICE_IDS=(
"xxxxx"
"xxxxx"
"xxxxx"
@sscotth
sscotth / README.md
Created March 20, 2025 03:24
Shadcn Indeterminate Checkbox
image
@sscotth
sscotth / 1.js
Created January 24, 2025 16:12
LocalStorage size (bytes)
new Blob(Object.entries(localStorage).flat()).size
E MMM d h:mm:s a z
@sscotth
sscotth / noVNCCopyPasteProxmox.user.js
Last active October 7, 2023 07:01 — forked from amunchet/noVNCCopyPasteProxmox.user.js
Copy/Paste for noVNC Proxmox
// ==UserScript==
// @name noVNC Paste for Proxmox
// @namespace http://tampermonkey.net/
// @version 0.3
// @description Pastes text into a noVNC window (for use with Proxmox specifically)
// @author Chester Enright
// @match https://*
// @include /^.*novnc.*/
// @require http://code.jquery.com/jquery-3.3.1.min.js
// @grant none
@sscotth
sscotth / logoutAllUsers.sh
Last active August 5, 2022 20:06
AWS Cognito logout all users of user pool
#!/bin/sh
# REQUIRES 'jq' TO BE INSTALLED (`brew install jq`)
# Combines two aws-cli cognito commands, `list-users` and `admin-user-global-sign-out`.
# * aws cognito-idp list-users --region ${REGION} --user-pool-id ${USER_POOL_ID}
# * aws cognito-idp admin-user-global-sign-out --region ${REGION} --user-pool-id ${USER_POOL_ID} --username ${USERNAME}
# However, the `list-users` command may be paginated.
# Used a pagination loop based on `https://stackoverflow.com/a/68809399`.
// <Routes>
// <Route path="/" element={<RequireAuth><Dashboard /></RequireAuth>}>
// <Route path="about" element={<AboutPage />} />
// </Routes>
import { Auth } from 'aws-amplify'
import { Navigate } from 'react-router-dom'
const RequireAuth = ({ children }) => {
const [loading, setLoading] = React.useState(true)
kvmd:
gpio:
drivers:
tes:
type: tesmart
host: 10.10.1.10
port: 5000
scheme:
server0_led:
driver: tes
on run {input, parameters}
set dir_name to do shell script "date -u '+%Y%m%dT%H%M%SZ'"
do shell script "mkdir -p ~/Desktop/Screenshots/" & dir_name
tell application "VMware Fusion"
activate
# Large
# do shell script "screencapture -R1810,180,2130,3600 ~/Desktop/Screenshots/$(date -u '+%Y%m%dT%H%M%SZ').png"