Skip to content

Instantly share code, notes, and snippets.

View tkoop's full-sized avatar

Tim Koop tkoop

View GitHub Profile
1. Create an AWS Lightsail instance at https://aws.amazon.com/lightsail/
- I chose: 1 GB RAM, 1 vCPU, 40 GB SSD
- start it and wait for it to come up
- click the console/terminal icon to open a console
2. Run `nano docker-compose.yaml` Paste in the lines found below. Consider changing the password.
3. Run `sudo docker-compose up -d`
4. Close the terminal
@tkoop
tkoop / up.sh
Last active September 5, 2024 14:42
Script to Update Linux Mint
#!/bin/bash
sudo apt --fix-broken install --yes
sudo add-apt-repository --yes ppa:cappelikan/ppa
sudo apt update --yes
sudo apt --fix-broken install --yes
sudo apt install mainline --yes
@tkoop
tkoop / to_mp3.sh
Last active July 11, 2025 15:10
Bash script to convert all audio files to mp3
#!/bin/bash
# Define supported audio extensions
EXTENSIONS="wav flac ogg m4a aac wma opus"
# Find and process all audio files in the current directory and subdirectories
find . -type f \( -iname "*.wav" -o -iname "*.flac" -o -iname "*.ogg" -o -iname "*.m4a" -o -iname "*.aac" -o -iname "*.wma" -o -iname "*.opus" \) | while read -r file; do
# Get the directory and filename without extension
dir=$(dirname "$file")
filename=$(basename "$file" | cut -d. -f1)