Skip to content

Instantly share code, notes, and snippets.

View tayiorbeii's full-sized avatar

Taylor Bell tayiorbeii

View GitHub Profile
import "@johnlindquist/kit"
// Name:
let originalFilenames = await drop()
let dlCommands = originalFilenames.map(x => {
return `!whisper "${x.name}" --model medium --language English`
import "@johnlindquist/kit"
const replaceAll = await npm('just-replace-all')
// Name:
let cutsToMake = [
{
"from": "00:00:46",
"to": "00:58:47",
"desc": "2022-09-15 edited"
},
import "@johnlindquist/kit"
const replaceAll = await npm('just-replace-all')
// Name:
let cutsToMake = [
{
"from": "00:11:15.600",
"to": "00:12:02.600",
"desc": "demosubcut"
},
import "@johnlindquist/kit"
const replaceAll = await npm('just-replace-all')
// Name: Copy Selected File Contents
let selectedFile = await getSelectedFile()
let contents = await readFile(selectedFile, 'utf-8')
await copy(contents)
import "@johnlindquist/kit"
const replaceAll = await npm('just-replace-all')
// Name: Copy Selected
// Shortcut: opt c
let selectedFile = await getSelectedFile()
let contents = await readFile(selectedFile, 'utf-8')
await copy(contents)
import "@johnlindquist/kit"
const leadingzero = await npm("leadingzero")
const replaceAll = await npm("just-replace-all")
// Name: split-video-on-scene
let longVideoFile = await getSelectedFile()
cd(path.dirname(longVideoFile))
import "@johnlindquist/kit"
// Name:
let replaceAll = await npm('just-replace-all')
let srtParser2 = await npm('srt-parser-2')
let takeWhile = await npm('lodash.takewhile')
let slice = await npm('lodash.slice')
let parser = new srtParser2()
import "@johnlindquist/kit"
// Name: remove-mp3-from-filename
let replaceAll = await npm('just-replace-all')
let files = await drop()
for (let f of files) {
let newName = replaceAll(f.path, '.mp3.', '.')
import "@johnlindquist/kit"
const leadingzero = await npm("leadingzero")
const replaceAll = await npm("just-replace-all")
// Name: split-video-on-scene
// NOTE: SRT file should not have .mp4 in its name!
// video.mp4 and video.srt Not video.mp4.srt!
let longVideoFile = await getSelectedFile()
import "@johnlindquist/kit"
// Name: trim-and-reencode-latest-obs-video
// Name: Trim latest OBS video
import "@johnlindquist/kit";
import { z } from "zod";