Skip to content

Instantly share code, notes, and snippets.

@Rycochet
Rycochet / useSharedState.ts
Created January 20, 2025 22:42
Allows for a key based globally shared state within React
// MIT License, please reference me if you use! https://github.com/Rycochet
import { useCallback, useEffect, useRef, useState, type Dispatch, type SetStateAction } from "react";
/**
* Used as a key for a shared state. This allows direct string, as well as enum,
* or even objects.
*/
export type SharedKey = string | number | WeakKey;
#!/usr/bin/env python3
#
# Description: List all Unmatched and Incorrectly matched files.
# Author: https://github.com/Rycochet
# Requires: plexapi, python_dotenv
#
# Config via a .env file, PLEX_TOKEN, PLEX_URL (optional), PLEX_PATH<n> + PLEX_PATH<n>_REPLACE
import glob
import os
@Rycochet
Rycochet / docker_ip.sh
Last active December 5, 2025 15:37
List all docker containers and their IP addresses
#! /bin/bash
docker inspect -f '{{.Name}} - {{range.NetworkSettings.Networks}}{{.IPAddress}}, {{end}}' $(docker ps -aq) | sort