e. g. for rclone config update on headless machine
In /etc/ssh/sshd_config set AllowTcpForwarding yes
systemctl restart sshd
ssh -L 53682:127.0.0.1:53682 user@host -p -4 -g -N
find "/media/pi/" -type f -name *.mp4 -size +3G -print0 | xargs -d '\n' -0 sh -c ' | |
for file do | |
echo "$file" | |
destination="'"../large"'" | |
mkdir -p "$destination/${file%/*}" | |
mv -v "$file" "$destination/$file" | |
done' |
find . -type f -name *.mp4 -size -10M -print0 | xargs -d '\n' -0 sh -c ' | |
for file do | |
echo "$file" | |
duration=`/volume1/@appstore/ffmpeg/bin/ffprobe -i "$file" -show_entries format=duration -v quiet -of csv="p=0"` | |
echo $duration | |
if [ "${duration%.*}" -lt 10 ]; then | |
echo "Lower than threshold" | |
rm -v "$file" | |
fi | |
done' |
ls -la /volume1/@iSCSI/LUN/VDISK_BLUN/ | |
# analyze disk | |
sudo fdisk -l -u=sectors <DISK> | |
# mount disk | |
mount -o ro,offset=<SECTOR_SIZE*START> <DISK> <MOUNT> |
https://dev.funkwhale.audio/funkwhale/funkwhale/-/blob/develop/deploy/env.prod.sample | |
https://dev.funkwhale.audio/funkwhale/funkwhale/-/blob/develop/deploy/docker-compose.yml | |
docker exec -it funkwhale_api_1 bash | |
funkwhale-manage createsuperuser | |
login and create library using WebUI | |
funkwhale-manage import_files <LIBRARY_ID> "/opt/docker/funkwhale/audio/Music/" --recursive --noinput --in-place |
set GOOS=linux&& set GOARCH=amd64&& go build |
Host git.florian-bussmann.de | |
User git | |
Port 30001 |
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem] | |
"LongPathsEnabled"=dword:00000001 |
# merge multiple image files | |
convert -append *.png full.png |