Concat MP3s into one


for i in *
  if [ ! -d "$i" ]; then continue; fi # not a directory
  if [ -f "$i.mp3" ]; then continue; fi # file exists
  cd "$i"
  echo -en "Processing: $i\n\n"
  ls *.mp3 | sed -e "s/\(.*\)/file '\1'/" | ffmpeg -protocol_whitelist 'file,pipe' -f concat -safe 0 -i - -c copy "../$i.mp3"
  cd ..

Batch run WP-CLI on Docker containers

list themes:

docker ps -f "ancestor=wordpress" --format "{{.Names}}" | xargs -I % \
  sh -c 'echo "\n\n%\n"; docker exec % wp --allow-root theme list'

update all themes:

docker ps -f "ancestor=wordpress" --format "{{.Names}}" | xargs -I % \
  sh -c 'echo "\n\n%\n"; docker exec % wp --allow-root theme update --all'

Caustic 3

Caustic 3 is a music creation tool (DAW) inspired by rack-mount synthesizers and samplers rigs.

Software archive:
(Windows version runs smoothly under Linux Wine)

Discussion about Caustic 3 on Reddit:

Caustic 3 YouTube channel:

WordPress in Docker

GS Cloud runs this blog and many others as Docker containers.

Repository: docker_wordpress Demo:

WordPress in Docker consists of three service containers: WordPress, MariaDB and phpMyAdmin.

WordPress and MariaDB use local volumes to store persistent data. PMA and WordPress are enhanced with uploads.ini injection to modify the default PHP settings. Both WordPress and PMA containers connect directly to the MariaDB container. There’s also a WP-CLI phar available as “wp” in the WordPress container.

WordPress output is then passed through Apache 2.4 proxy with Cloudflare certificates (not part of the demo).

Convert Ogg Vorbis files to MP3

Nejprve je důležité mít nainstalovaný ffmpeg, můžete si vybrat ze dvou jednoduchých způsobů (Ubuntu).

  1. pomocí APT:

sudo apt-get install -yq ffmpeg

2. pomocí Snapu:

snap install ffmpeg

A pak už je to snadné:

for i in *.ogg; do ffmpeg -i "$i" "${i%.ogg}.mp3"; done