Skip to content

Instantly share code, notes, and snippets.

View nglehuy's full-sized avatar

Nguyễn Lê Huy nglehuy

View GitHub Profile
@nglehuy
nglehuy / extract_or_add_subtitles.py
Created May 13, 2025 14:27
Extract subtitles using OpenAI Whisper, add subtitles to video
import math
import os
from faster_whisper import WhisperModel
import ffmpeg
import re
import fire
os.environ["PYTHONUNBUFFERED"] = "1"
@nglehuy
nglehuy / gitkraken-wsl-bash.bat
Created November 8, 2020 16:22 — forked from carlolars/gitkraken-wsl-bash.bat
Use bash from WSL as sh.exe for GitKraken (5.0.4) for Windows
@echo off
REM Make sure that the path to the script is correct!
@bash -l -c "~/bin/gitkraken-wsl-bash.sh %*"