Skip to content

Instantly share code, notes, and snippets.

@jazz-it
jazz-it / lmde-maintenance.sh
Last active July 9, 2026 19:02
LMDE Regular Maintenance Script (Croatian)
#!/usr/bin/env bash
set -euo pipefail
RED="\e[31m"
GREEN="\e[32m"
YELLOW="\e[33m"
BLUE="\e[34m"
NC="\e[0m"
@jazz-it
jazz-it / long-division.py
Last active July 5, 2026 13:53
Long Division Practice for Primary School (Croatian)
import random
import time
import sys
import threading
from colorama import init, Style
init(autoreset=True)
SALMON = "\033[38;5;210m"
LIGHT_GRAY = "\033[38;5;240m"
@jazz-it
jazz-it / mint-maintenance.sh
Last active July 5, 2026 13:43
Linux Mint Regular Maintenance Script (Croatian)
#!/bin/bash
set -euo pipefail
# Definicija boja i simbola za ispis (ako je izlaz terminal)
if test -t 1; then
GREEN=$'\033[32m'
YELLOW=$'\033[33m'
RED=$'\033[31m'
NC=$'\033[0m'
else
@jazz-it
jazz-it / getmusic.sh
Last active October 23, 2021 17:30
Download a YouTube Playlist, extract audio in best quality with youtube-dl and normalize volume with r128gain (ReplayGain 2.0)
#!/bin/bash
# helper function parameters: 0 or empty = print only, 1 = rename files!
renamemp3() {
local s="${1:-0}"
for f in *.mp3; do
if [[ "$f" == *[\"\`]* ]]
then
filename=${f%.*}
filename=${filename//\"}