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 | |
# Inputs | |
VIDEO=video.mp4 | |
ENG_AUDIO=video.mp4 # assume embedded original audio is English | |
TR_AUDIO=tr.wav | |
ES_AUDIO=es.wav | |
# Step 1: Convert WAV to AAC | |
ffmpeg -y -i "$TR_AUDIO" -c:a aac -b:a 128k tr.aac |
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
npx npm-check-updates -u | |
npm install (updates package.json) | |
npm outdated | |
npm update (updates package-lock.json) |
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
type X = UnionType | (string & {}) |
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
export function debounce(fn: Function, ms: number) { | |
// @ts-expect-error | |
let timeout: NodeJS.Timeout; | |
return function () { | |
clearTimeout(timeout); | |
// @ts-expect-error | |
timeout = setTimeout(() => fn.apply(this, arguments), ms); | |
}; | |
} |