Archive for alifer

How To Install Nextcloud 23 on Debian 11 / Debian 10

https://computingforgeeks.com/how-to-install-and-configure-nextcloud-on-debian/

How to set CPU governor at system boot

https://sleeplessbeastie.eu/2015/11/09/how-to-set-cpu-governor-at-boot/

CPU frequency stuck at 800MHz

https://bbs.archlinux.org/viewtopic.php?id=241593

ШПАРГАЛКА ПО TMUX

https://losst.ru/shpargalka-po-tmux
https://ostechnix.com/tmux-command-examples-to-manage-multiple-terminal-sessions

Удалить конфигурации старых пакетов в 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

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

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'));

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

Памятка по virtualenv и изолированным проектам на Python

https://eax.me/python-virtualenv/

Run script every 30 min with systemd

https://unix.stackexchange.com/questions/198444/run-script-every-30-min-with-systemd