Skip to content

Instantly share code, notes, and snippets.

View dowster's full-sized avatar

Brady Dow dowster

View GitHub Profile

Internally, code artifacts are hosted on Artifactory, a JFrog product. CICD pipelines need to access these artifacts to build specific projects. To avoid static credentials in these CICD pipelines, we have a service that returns temporary access tokens on demand.

Generate code that meets the provided requirements, stubbing out calls with place-holder values where necessary.

@dowster
dowster / subtitler.sh
Last active October 10, 2023 16:23
Generates subtitles with whisper.cpp and then adds them into the video file (only tested with .mp4)
#! zsh
# Requires `ffmpeg` and `whisper.cpp` to be installed
# The path for `whisper.cpp` must be configured below.
LOCAL_FILE=$1
EXTRA_WHISPER_ARGS=$2
TMPDIR=$(mktemp -d)
@dowster
dowster / scribe.sh
Last active October 11, 2023 05:58
Script to download a youtube video, extract the audio as a wav stream, and transcribe it with whisper.cpp.
#! zsh
# Requires `yt-dlp`, `ffmpeg`, and `whisper.cpp` to be installed
# The path for `whisper.cpp` must be configured below.
YOUTUBE_URL=$1
EXTRA_WHISPER_ARGS=$2
GGML_WHISPER_CPP_PATH=/Users/dowster/sandbox/whisper.cpp/main
GGML_MODEL=/Users/dowster/sandbox/whisper.cpp/models/ggml-base.en.bin
@dowster
dowster / clearing_redis_databases.md
Last active July 27, 2023 21:20
Clearing Redis Databases

To start the redis container

kubectl run --rm -it redis-admin --image=redis --restart=Never -- bash

To start the redis container and bind in the entity cache secret you can run this command. It assumes that you have a local alias kp which will execute kubectl commands targeting prod