Skip to content

Instantly share code, notes, and snippets.

View WomB0ComB0's full-sized avatar
⚔️
Veni, vidi, vici

Mike Odnis WomB0ComB0

⚔️
Veni, vidi, vici
View GitHub Profile
@WomB0ComB0
WomB0ComB0 / gha
Created September 15, 2025 00:55
gha - Enhanced with AI-generated documentation
#!/bin/bash
# This script wraps 'gh auth switch' and updates git user.name and user.email.
# Function to set git user config
set_git_config() {
local name="$1"
local email="$2"
echo "Setting git config: name='$name', email='$email'"
git config --global user.name "$name"
@WomB0ComB0
WomB0ComB0 / gitssh
Created September 6, 2025 15:46
gitssh - Enhanced with AI-generated documentation
#!/bin/bash
# Git Platform SSH Setup Script
# This script sets up SSH keys and known hosts for GitHub, GitLab, and BitBucket
set -e # Exit on any error
# Colors for output
RED='\033[0;31m'
GREEN='\033[0;32m'
@WomB0ComB0
WomB0ComB0 / speculation-intersection.tsx
Created September 6, 2025 14:57
speculation-intersection - Enhanced with AI-generated documentation
import { useCallback, useEffect, useRef } from "react";
import { flushSync } from "react-dom";
import { app } from "~/constants";
import { Stringify } from "~/utils/helpers";
import { generateSchema } from "~/utils/schema";
/**
* Configuration type for preload/prefetch behavior
* @typedef {Object} PreloadConfig
* @property {string[]} prerenderPaths - Paths to prerender eagerly for instant navigation
@WomB0ComB0
WomB0ComB0 / accordion.tsx
Last active September 6, 2025 08:55
accordion - Enhanced with AI-generated documentation
import { type VariantProps, cva } from "class-variance-authority";
import clsx from "clsx";
import {
type ComponentProps,
type ElementType,
type KeyboardEvent,
type ReactNode,
createContext,
useCallback,
useContext,
@WomB0ComB0
WomB0ComB0 / twitch-alert.ts
Created September 4, 2025 17:03
twitch-alert - Enhanced with AI-generated documentation
import axios from 'axios';
import { TwitterApi } from 'twitter-api-v2';
import { BskyAgent } from '@atproto/api';
import * as fs from 'node:fs';
import * as path from 'node:path';
interface Config {
twitch: {
clientId: string;
clientSecret: string;
@WomB0ComB0
WomB0ComB0 / copyright.ts
Last active September 5, 2025 14:34
copyright.ts and related files - with AI-generated descriptions
@WomB0ComB0
WomB0ComB0 / file-case.ts
Last active August 23, 2025 12:47
file-case.ts and related files - with AI-generated descriptions
#!/usr/bin/env node
// -*- typescript -*-
/**
* Copyright 2025 Mike Odnis
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
@WomB0ComB0
WomB0ComB0 / process-signal.ts
Created August 19, 2025 20:41
process-signal.ts and related files - with AI-generated descriptions
/**
* Copyright 2025 Mike Odnis
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@WomB0ComB0
WomB0ComB0 / performance.ts
Created August 19, 2025 20:41
performance.ts and related files - with AI-generated descriptions
/**
* Copyright 2025 Mike Odnis
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@WomB0ComB0
WomB0ComB0 / ts-design-patterns.ts
Created August 3, 2025 17:52
ts-design-patterns.ts and related files - with AI-generated descriptions
/**
* Copyright 2025 Mike Odnis
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software