New examples!

Ryan DeYong's Programming Portfolio

Home In-browser Examples Bash Scripts Chrome Userscripts The Best Calculators Physical Projects Fine Art Website Source Code


These are some GNU BASH scripts I wrote, they are mainly for fun.

Cool Cowsay!

cowsay -f $(shuf -e $(cowsay -l | tail -n +2) -n 1) $(fortune) | lolcat

TTA Converter

#!/bin/bash # this script will convert .tta files with matching .cue files into folders full of mp3s # usage: ./convert.sh for file in *.tta do # gets the base name of the file filename=$(basename "$file") filename=${filename%.*} # creates a root directory to stick stuff in rdir="$filename.mp3.c" mkdir $rdir cd $rdir # converts the initial tta into flac for easier processing ffmpeg -i "../$filename.tta" "$filename.flac" # copies the cue into the root directory with the flac in preparation for separation cp "../$filename.cue" "$filename.cue" # uses the cue file to split up the flac shnsplit -f "$filename.cue" -t %n-%t -o flac "$filename.flac" # removes the temporary flac file (we don't remove the cue in case we need it later) rm "$filename.flac" # begins converting the separate flac files into mp3s for flac in *.flac do # gets the filename again in this separate instance flacname=$(basename "$flac") flacname=${flacname%.*} ffmpeg -i "$flacname.flac" "$flacname.mp3" rm "$flacname.flac" done done

About me
Contact Information:
Voicemail box #: +14408478142
Email: administrator@ryancdeyong.us

All software on this website uses the MIT License.
ξ This page was generated Fri Mar 14, 2025 12:46