Here is a list of the bespoke commands I use to make my life easier. These are bash script files I have in my home bin folder that make things easier for me.
Warning: These are for Fedora.
bin2iso - Converts bin and cue files to iso and moves them to relevant folder based on input
makeiso - Make an iso from a cd/dvdrom
mic - Extracts track 1 from a video file
mntiso - Mounts an iso file
mp3-extract - Extracts audio from video into mp3
number - Picks a random number from a text file with numbers in it
random-name - Picks a random name from a text file with names in it
unmntiso - Unmounts iso
upgrade - upgrades system via dnf and flatpak
whisper - Transcribes voice from mp3 file into text.
dc-chd - Rips dreamcast cd-r to emulator compatible chd files
IMPORTANT INFORMATION — READ FIRST
# ----------------------------------------------------------
# I do not use the standard Linux script execution method.
# I store my scripts in: ~/bin
# This folder is already in my PATH which means:
# I can run scripts from ANY directory
# I do NOT use ./ before the script name
# I do NOT use .sh file extensions
#
# Example:
# Just type: upgrade
#
# I set my scripts to be executable using:
# chmod +x upgrade
#
# USE AT YOUR OWN RISK
# These scripts make system changes. You are responsible
# for any impact they may have on your system or data.
# I accept NO responsibility for any damage, loss, or issues.
# -----------------------------------------------------------
upgrade
#!/bin/bash
# ---------------------------------------------------
# System Update Script
#
# How to use:
# upgrade
#
# What this script does:
# - Updates system packages installed through DNF
# - Updates Flatpak applications
#
# Explanation of commands:
# sudo dnf upgrade = Updates Fedora system packages (may ask for password)
# flatpak update -y = Updates all Flatpak apps and automatically says "yes"
# ---------------------------------------------------
sudo dnf upgrade
flatpak update -y
mp3-extract
#!/bin/bash
# ---------------------------------------------------
# MP3 Converter Script
#
# How to use:
# mp3-extract <inputfile>
#
# What this script does:
# - Takes the file you specify
# - Removes any video
# - Converts the audio to MP3 format
# - Sets audio quality to 192 kbps
# - Saves the result as a .mp3 file
#
# Explanation of parts:
# $1 = The input file you provide
# ${input%.*}.mp3 = Takes the input name and replaces its extension with .mp3
#
# FFmpeg switches:
# -i <file> = Input file
# -vn = Ignore/remove video
# -acodec libmp3lame = Use MP3 encoder
# -ab 192k = Set audio bitrate to 192 kbps
# ---------------------------------------------------
input="$1"
output="${input%.*}.mp3"
ffmpeg -i "$input" -vn -acodec libmp3lame -ab 192k "$output"