Skip to content

Instantly share code, notes, and snippets.

View third774's full-sized avatar

Kevin Kipp third774

View GitHub Profile
#!/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 🤖
const exceptions = ["www.example.com"];
if (!exceptions.includes(new URL(window.location).hostname)) {
console.log("Adding slash keybinding");
document.addEventListener("keydown", function (event) {
const searchInput =
// https://caniuse.com/css-case-insensitive
document.querySelector('input[type="search" i]') ??
document.querySelector('form[role="search" i] text[type="text"]') ??