Skip to content

Instantly share code, notes, and snippets.

View third774's full-sized avatar

Kevin Kipp third774

View GitHub Profile
# git add remote
gar() {
local url=$(pbpaste)
# Validate URL format (basic git remote URL patterns)
if [[ ! "$url" =~ ^(https://|git@|ssh://git@).+\.git$ ]] && [[ ! "$url" =~ ^(https://|git@).+/.+$ ]]; then
echo "Error: Invalid git remote URL format in clipboard"
echo "Expected formats: https://github.com/user/repo.git or [email protected]:user/repo.git"
return 1
fi
#!/bin/bash
# Check if the RUN_TYPECHECKER_PRECOMMIT_HOOK environment variable is set to "true"
if [ "$RUN_TYPECHECKER_PRECOMMIT_HOOK" = "true" ]; then
echo "Running TypeScript type checker..."
# Run the TypeScript compiler in type-checking mode and capture the output
tsc_output=$(npx tsc --noEmit 2>&1)
tsc_exit_code=$?
// Name: Upload Videos to Cloudflare Stream
// Author: Kevin Kipp
// Email: [email protected]
// Twitter: https://twitter.com/kevin_kipp
// Github: https://github.com/third774
import '@johnlindquist/kit';
import { Channel } from '@johnlindquist/kit/core/enum';
import { createReadStream } from 'fs';
const tus = await npm('tus-js-client');
// Name: Perplexity
// Author: Kevin Kipp
// Email: [email protected]
// Twitter: https://twitter.com/kevin_kipp
// Github: https://github.com/third774
import '@johnlindquist/kit';
let focus = 'all';
// Name: Feedbin Unread
// Author: Kevin Kipp
// Email: [email protected]
// Twitter: https://twitter.com/kevin_kipp
// Github: https://github.com/third774
import '@johnlindquist/kit';
const feedbinUsername = await env('FEEDBIN_USERNAME');
const feedbinPassword = await env('FEEDBIN_PASSWORD', () =>
// Name: Fix Spelling and Grammar
// Author: Kevin Kipp
// Email: [email protected]
// Twitter: https://twitter.com/kevin_kipp
// Github: https://github.com/third774
import '@johnlindquist/kit';
import OpenAI from 'openai';
const openai = new OpenAI({
// Name: Fix Spelling and Grammar
// Author: Kevin Kipp
// Email: [email protected]
// Twitter: https://twitter.com/kevin_kipp
// Github: https://github.com/third774
import '@johnlindquist/kit';
import OpenAI from 'openai';
const openai = new OpenAI({
// Name: New Astro Blog Post
import "@johnlindquist/kit";
const title = await arg("What's the title of the post?");
const description = await arg("What's the description of the post?");
const slug = title.toLowerCase().split(" ").join("-");
const blogCollectionPath = await env("ASTRO_BLOG_COLLECTION_PATH");
#!/bin/bash
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Connect to airpods
# @raycast.mode compact
# Optional parameters:
# @raycast.icon 🤖