Download youtube video and extract audio into mp3
./yt-dlp_linux $URL -x --audio-format mp3
Quick convert from hex to dec

echo $((16#FF))

16 - numerical system FF - number in specified numerical system

Last 10 files based on last changes

find -ctime -2 -name "*.php" -not -path "./vendor/*" -not -path "./var/*" -not -path "./migrations/*" -printf "%T@ %Tc %p\n" | head -10

Faster way to delete large number of files on linux

rsync -a --delete empty/ x

4y | 1x Bon post | Quick commands
Start chrome with insecure (self signed) certificates

chrome.exe --ignore-certificate-errors --unsafely-treat-insecure-origin-as-secure=https://www.devdomain.com/

scp /home/upload_directory/* user@yourhost.com:/va

scp /home/upload_directory/* user@yourhost.com:/var/www/yourhost.com/upload_directory

Git tag

git tag -a v1.22 -m "message"
git push

Git tag

git tag -a v1.22 -m "message" git push origin v1.22

One line for nginx logs with goaccess

zcat /var

One line for nginx logs with goaccess

zcat /var/log/nginx/mydomain_access.log.*.gz | goaccess /var/log/nginx/mydomain_access.log /var/log/nginx/mydomain_access.log.1 - --log-format=COMBINED


Chercher