Archive for alifer
Удалить конфигурации старых пакетов в Debian
dpkg -l | grep ^rc | awk '{print $2}' | xargs apt-get -y remove --purge
Remove today’s installed packages:
grep "install " /var/log/dpkg.log | awk '{print $4}' | xargs apt-get -y remove --purge
Category: *nix |
btrfs snapshots
Создать snapshot:
btrfs subvolume snapshot / /.snapshots/20211023_rootfs
btrfs subbolume snapshot /.snapshots/20211023_rootfs /.snapshots/20211023_rootfs_copy
Откатить snapshot:
mount /dev/sda6 -o subvolid=5 /mnt/arch/
mv /mnt/arch/@ /mnt/arch/@_badroot
mv /mnt/arch/@.snapshots/20211023_rootfs_copy /mnt/arch/@
Удалить snapshot:
btrfs subvolume delete /mnt/arch/@_badroot
Category: *nix |
How can i change the path of the ampache music library
https://groups.google.com/g/ampache/c/-V6HS9ObyEs
UPDATE `song` SET `file` = (SELECT REPLACE(file, 'var/vhosts/ampache','var/vhosts/<new location>/ampache'));
UPDATE `catalog_local` SET `path` = (SELECT REPLACE(path, 'var/vhosts/ampache','var/vhosts/<new location>/ampache'));
Category: *nix |
Natlas
https://github.com/MJL85/natlas
python3 natlas-cli.py tracemac -n 172.xxx.xxx.xxx -m aaaa.aaaa.aaaa
python3 natlas-cli.py diagram -r 172.xxx.xxx.xxx -o xxx.pdf
Category: *nix |
Run script every 30 min with systemd
Category: *nix |