This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { type VariantProps, cva } from "class-variance-authority"; | |
import clsx from "clsx"; | |
import { | |
type ComponentProps, | |
type ElementType, | |
type KeyboardEvent, | |
type ReactNode, | |
createContext, | |
useCallback, | |
useContext, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
/** | |
* Copyright 2025 Mike Odnis | |
* | |
* This script is a comprehensive tool to manage license headers in a source repository. | |
* It has been optimized for performance by processing files in parallel and minimizing disk I/O. | |
* | |
* Features: | |
* - Applies license headers to a wide variety of file types. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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 |