From 1c1ae0094244868c63bd875c0cbfa50ced37de8d Mon Sep 17 00:00:00 2001 From: Alexander Neonxp Kiryukhin Date: Sun, 17 Nov 2024 23:42:25 +0300 Subject: Новый пост MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- content/notes/Backup rsync.md | 200 +++++++++++++++++++++ content/notes/Docker ALT Linux.md | 23 +++ content/notes/Docker context.md | 11 ++ ...65 \321\201\320\260\320\271\321\202\320\260.md" | 8 + ...p3 \321\202\320\265\320\263\320\276\320\262.md" | 22 +++ 5 files changed, 264 insertions(+) create mode 100644 content/notes/Backup rsync.md create mode 100644 content/notes/Docker ALT Linux.md create mode 100644 content/notes/Docker context.md create mode 100644 "content/notes/\320\241\320\272\320\260\321\207\320\270\320\262\320\260\320\275\320\270\320\265 \321\201\320\260\320\271\321\202\320\260.md" create mode 100644 "content/notes/\320\244\320\270\320\272\321\201 mp3 \321\202\320\265\320\263\320\276\320\262.md" (limited to 'content/notes') diff --git a/content/notes/Backup rsync.md b/content/notes/Backup rsync.md new file mode 100644 index 0000000..8315afc --- /dev/null +++ b/content/notes/Backup rsync.md @@ -0,0 +1,200 @@ ++++ +title = "Бекап linux системы с помощью rsync" +tags = ["linux"] ++++ + +# Вносим в crontab + +``` +rsync -v --archive --compress --progress --delete-after --force --partial --exclude-from=/home/$USER/excludes.txt /home/$USER/ 192.168.50.2:/volume1/NetBackup/NeonXPLaptop +``` + +# Пример excludes.txt + +``` +.android +.AndroidStudio*/ +Android/Sdk +.gradle +.gvm +.grails/ +.grails_history +.kde/share/apps/nepomuk +.local/share/notbit +.local/libvirt +.local/share/libvirt +.vagrant +.vagrant.d +.wine +.twister +twister +.local/share/Steam +.var/app/com.valvesoftware.Steam/.local/share/Steam +.steam +Steam +.PlayOnLinux +.local/share/lutris/runners/wine/ +Видео +.docker/machine +.local/share/containers +.gvfs +.local/share/gvfs-metadata +.Private +.dbus +.cache +.var/app/*/cache +.var/app/*/.cache +.Trash +.Trash-1* +.local/share/Trash +.cddb +.aptitude +.npm +.nvm +.adobe +.macromedia +.xsession-errors +.xsession-errors.old +.wayland-errors +.local/share/RecentDocuments +.recently-used +.recently-used.xbel +recently-used.xbel +.thumbnails +.thumb +Thumbs.db +.DS_Store +.localised +.CFUserTextEncoding +.zcompdump* +.wget-hsts +.cups +.subversion +.virtualenvs +.Xauthority +.ICEauthority +.gksu.lock +.pulse +.pulse-cookie +.esd_auth +.VeraCrypt-lock-* +.kde/share/apps/RecentDocuments +.kde4/share/apps/RecentDocuments +.kde/share/apps/klipper +.kde4/share/apps/klipper +.local/share/klipper +.kde/share/apps/okular/docdata +.kde/share/apps/gwenview/recentfolders +.kde4/share/apps/okular/docdata +.kde4/share/apps/gwenview/recentfolders +.local/share/okular/docdata +.local/share/org.kde.gwenview/recentfolders +.kde/share/apps/kmess/displaypics +.kde4/share/apps/kmess/displaypics +.kde/share/apps/kmess/customemoticons +.kde4/share/apps/kmess/customemoticons +.local/share/tracker +.local/share/torbrowser +.mozilla/firefox/*/Cache +.mozilla/firefox/*/minidumps +.mozilla/firefox/*/.parentlock +.mozilla/firefox/*/urlclassifier3.sqlite +.mozilla/firefox/*/blocklist.xml +.mozilla/firefox/*/extensions.sqlite +.mozilla/firefox/*/extensions.sqlite-journal +.mozilla/firefox/*/extensions.rdf +.mozilla/firefox/*/extensions.ini +.mozilla/firefox/*/extensions.cache +.mozilla/firefox/*/XUL.mfasl +.mozilla/firefox/*/XPC.mfasl +.mozilla/firefox/*/xpti.dat +.mozilla/firefox/*/compreg.dat +.mozilla/firefox/*/pluginreg.dat +.mozilla/seamonkey/*/Cache +.mozilla/seamonkey/*/minidumps +.mozilla/seamonkey/*/.parentlock +.mozilla/seamonkey/*/blocklist.xml +.mozilla/seamonkey/*/extensions.sqlite +.mozilla/seamonkey/*/extensions.rdf +.mozilla/seamonkey/*/extensions.ini +.mozilla/seamonkey/*/xpti.dat +.mozilla/seamonkey/*/compreg.dat +.mozilla/seamonkey/*/pluginreg.dat +.thunderbird/*/Cache +.keychain +.komodoedit +.gnupg/rnd +.gnupg/random_seed +.gnupg/.#* +.gnupg/*.lock +.gnupg/gpg-agent-info-* +.config/google-chrome/ShaderCache +.config/google-chrome/*/Local Storage +.config/google-chrome/*/Session Storage +.config/google-chrome/*/Application Cache +.config/google-chrome/*/History Index * +.config/google-chrome/*/Service Worker/CacheStorage +.config/google-chrome/*/WebStorage/*/CacheStorage +.config/chromium/*/Local Storage +.config/chromium/*/Session Storage +.config/chromium/*/Service Worker/CacheStorage +.config/chromium/*/Application Cache +.config/chromium/*/History Index * +/snap/chromium/common/.cache +/snap/chromium/*/.config/chromium/*/Service Worker/CacheStorage +/snap/chromium/*/.local/share/ +.gradle/caches +/.m2/repository +.local/share/baloo +.local/share/zeitgeist +.local/share/akonadi +.purple/icons +.guayadeque/cache.db +.java/deployment/cache +.icedteaplugin +.icedtea +.gnome2/epiphany/favicon_cache +nohup.out +.config/libreoffice/4/cache +.config/*/Cache +.config/Atom/*Cache +.config/Atom/IndexedDB +.atom/compile-cache/ +.vim/bundle/* +.viminfo +.vscode-oss/extensions/* +.vscode/extensions/* +.config/Code - OSS/logs/ +.config/Code/logs/ +.config/Code/CachedData/* +.config/VSCodium/CachedExtensionVSIXs +.config/VSCode/CachedExtensionVSIXs +.config/VirtualBox/VBoxSVC.log* +.config/VirtualBox/VBoxGuestAdditions_* +.cargo +.rustup +go/pkg/mod/cache +.nv/GLCache +.config/**/blob_storage +.config/**/Application Cache +.config/**/Cache +.config/**/CachedData +.config/**/Code Cache +.config/**/GPUCache +.config/**/Service Worker/CacheStorage +.var/app/**/blob_storage +.var/app/**/Application Cache +.var/app/**/Cache +.var/app/**/CachedData +.var/app/**/Code Cache +.var/app/**/GPUCache +.var/app/**/Service Worker/CacheStorage +.config/scc/daemon.socket +Загрузки +.config/yandex-browser +Sync +snap +.local/share/TelegramDesktop +.local/share/Zeal +.thunderbird +``` \ No newline at end of file diff --git a/content/notes/Docker ALT Linux.md b/content/notes/Docker ALT Linux.md new file mode 100644 index 0000000..4cab45a --- /dev/null +++ b/content/notes/Docker ALT Linux.md @@ -0,0 +1,23 @@ ++++ +title = "Docker в AltLinux" +tags = ["linux", "docker"] ++++ + +## Установка + +Установить docker можно следующей командой: + +``` +apt-get install docker-engine +``` + +Добавить пользователя в группу docker; +``` +usermod ИМЯ_ПОЛЬЗОВАТЕЛЯ -aG docker +``` + +Затем необходимо запустить соответствующую службу: + +``` +systemctl enable --now docker +``` \ No newline at end of file diff --git a/content/notes/Docker context.md b/content/notes/Docker context.md new file mode 100644 index 0000000..4ddacdc --- /dev/null +++ b/content/notes/Docker context.md @@ -0,0 +1,11 @@ ++++ +title = "Docker context" +tags = ["linux", "docker"] ++++ + +Постоянно забываю как создавать новый контекст докера. Сохраню здесь чтобы не забыть. + +``` +docker context create curie --docker "host=ssh://neonxp.ru" +docker context use curie +``` diff --git "a/content/notes/\320\241\320\272\320\260\321\207\320\270\320\262\320\260\320\275\320\270\320\265 \321\201\320\260\320\271\321\202\320\260.md" "b/content/notes/\320\241\320\272\320\260\321\207\320\270\320\262\320\260\320\275\320\270\320\265 \321\201\320\260\320\271\321\202\320\260.md" new file mode 100644 index 0000000..914119b --- /dev/null +++ "b/content/notes/\320\241\320\272\320\260\321\207\320\270\320\262\320\260\320\275\320\270\320\265 \321\201\320\260\320\271\321\202\320\260.md" @@ -0,0 +1,8 @@ ++++ +title = "Рекурсивное скачивание всего сайта" +tags = ["linux"] ++++ + + ``` + wget -rk -np -nc -U "Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20110328 Firefox/24.0" --wait=5 --random-wait https://example.com + ``` \ No newline at end of file diff --git "a/content/notes/\320\244\320\270\320\272\321\201 mp3 \321\202\320\265\320\263\320\276\320\262.md" "b/content/notes/\320\244\320\270\320\272\321\201 mp3 \321\202\320\265\320\263\320\276\320\262.md" new file mode 100644 index 0000000..948d74a --- /dev/null +++ "b/content/notes/\320\244\320\270\320\272\321\201 mp3 \321\202\320\265\320\263\320\276\320\262.md" @@ -0,0 +1,22 @@ + +++ +title = "Исправление кодировок тегов mp3 файлов" +tags = ["linux", "mp3"] ++++ + +# Установка mutagen + +``` +pip3 install mutagen +``` + +# Исправление одного файла + +``` +mid3iconv -e CP1251 -d bad.mp3 +``` + +# Исправление целой коллекции + +``` +find /media/Music/ -iname "*.mp3" -print0 | xargs -0 mid3iconv -e CP1251 -d +``` \ No newline at end of file -- cgit v1.2.3