Skip to content

Instantly share code, notes, and snippets.

View Frankenmint's full-sized avatar

Frankenmint Frankenmint

View GitHub Profile
#!/bin/bash
# ARE YOU SICK OF THE INTERNET BEING STUPID WITH GIVING YOU WEBP FILES?
# Like you made EVERYTHING to work with pngs and (ugh) jpegs. Cool, I get it save
# money, use compression standard wepb. FUCK YOU... update the tooling on the other side of the coin then!!!
# OK so download this and save it as a shell file (then give it executable permissions)
# so.. sudo chmod +x webPng.sh (or whatever you named it). Now, run it in the terminal in the same
# folder where you downloaded those pesky webP files and PRESTO it will convert them into PNG files, YAAY :)
# I maed this with the help of chatgpt, fyi
@Frankenmint
Frankenmint / mp3ToVideo.sh
Created May 27, 2024 06:59
Do you make music (without lyrics) and want a simple method for making visualizer videos? Use this to make 4k spectrograph videos from your MP3 files!
#!/bin/bash
# Check if the required argument is provided
if [ "$#" -ne 1 ]; then
echo "Usage: $0 <input_directory>"
exit 1
fi
# Input directory containing MP3 files
INPUT_DIR="$1"
import os
import requests
API_KEY = ""
BASE_URL = "https://api.giphy.com/v1/gifs/search"
def fetch_gifs(keyword, limit=20):
params = {
"api_key": API_KEY,
"q": keyword,