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
import requests | |
from mutagen.mp3 import MP3 | |
from io import BytesIO | |
# Your API key (replace <mykey> with your actual API key) | |
api_key = <mykey> | |
# Replace <voiceid> with your actual voice id value | |
voice_id=123456 | |
url = f"https://api.elevenlabs.io/v1/text-to-speech/f{voice_id}" |
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
find . -type f -name "*.mp4" -exec printf "%s," {} \; -exec ffprobe -v quiet -of csv=p=0 -show_entries format=duration {} \; |
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 | |
# usage: ./remove-s3-objects-by-date.sh bucket_name min_date | |
# min_date parameter must be in YYYY-MM-DD format | |
if [ "$1" = "" ]; then | |
echo "Missing bucket name. Usage:./remove-s3-objects-by-date.sh bucket_name min_date" | |
exit 1 | |
fi | |
if [ "$2" = "" ]; then |