This file contains 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 | |
# 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=$? |
This file contains 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
// 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'); |
This file contains 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
// 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'; |
This file contains 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
// 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', () => |
This file contains 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
// 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({ |
This file contains 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
// 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({ |
This file contains 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
// Name: Markdown Link | |
// Author: Kevin Kipp | |
// Twitter: @kevin_kipp | |
// Github: https://github.com/third774 | |
import '@johnlindquist/kit'; | |
const url = await arg('URL'); | |
const selectedText = await getSelectedText(); |
This file contains 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
// 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"); |
This file contains 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 | |
# Required parameters: | |
# @raycast.schemaVersion 1 | |
# @raycast.title Connect to airpods | |
# @raycast.mode compact | |
# Optional parameters: | |
# @raycast.icon 🤖 |
This file contains 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
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"]') ?? |
NewerOlder