o o o
O O O o
o o o O
O O O oOo
.oOo OoOo. .oOo. o o .oOo .oOo `OoOo. O .oOo. o .oOo
`Ooo. o o OooO' O O `Ooo. O o o O o O `Ooo.
O o O O o o O o O O o O o O
`OoO' O o `OoO' Oo Oo `OoO' `OoO' o o' oOoO' `oO `OoO'
O
o'
# arch linux lazydog
# find where a program is installed
pacman -Ql [package name]
# list installed packages
pacman -Q
yay -Q
# To remove all files from the cache, use the clean switch twice, this is the most aggressive approach and will leave nothing in the cache directory
pacman -Scc
yay -Scc
# remove orphans
yay -Yc
# Update mirrorlist with the fastest mirrors
sudo pacman-mirrors --fasttrack
#!/bin/sh
for file in "*.[Jj][Pp][Gg]"; do
convert $file -resize 1280x720 1280-$file
done
#!/bin/bash
# *.[Jj][Pp][Gg]
for img in $1; do
filen=${img%}
fulen=basename $filen
fjollen=`echo "$fulen"|tr -dc ‘[:print:]‘`
#ffmpeg -i "$filen" -acodec libmp3lame -b:a 320k "$fjollen.mp3"
echo $fjollen
echo
done
#! /bin/sh
# extraherar ljudström ur en fil $1
# Extraherar ljudströmmen ur en mediacontainerfil and adds the file extension after what is returned from ffprobe.
file="$1"
filformat=$(ffprobe -loglevel error -select_streams a:0 -show_entries stream=codec_name -of csv=p=0 "$file")
s="$file"
b=${s##*/}
c=${b%.*}
utfil="$c"."$filformat"
ffmpeg -i "$file" -vn -acodec copy "$utfil"
#!/bin/bash
cd $1
for dir in */; do
cd "$dir"
output=$(rhash --check *.sfv | tail -1)
cd ..
if [ "$output" == "Everything OK" ]
then
echo "ok"
#mv "$dir" /media/snail/fraktal001/music/sfv_ok
fi
done#!/bin/bash
if [[ $(find *.sfv -type f | wc -l) -eq 0 ]]; then
echo "Creating new SFV file for directory..."
cfv -C -t sfv ./*
else
cfv
fi