-
https://github.com/lexxai/goit_python_core_hw_06
Модуль 6. Робота з файлами. Work with files.
#python
-
https://github.com/lexxai/goit_python_core_hw_07
Модуль 7. Створення та встановлення власних пакетів. Creating and installing custom packages, virtual environment.
#python
-
https://github.com/lexxai/goit_python_core_hw_08
Модуль 8. Можливості деяких вбудованих пакетів Python. Work with date and time. Collections. Comprehensions.
#python
-
https://github.com/lexxai/goit_python_core_hw_09
Модуль 9. Функції (декоратори, замикання). Functions. Decorators. Closure. Carrying.
#python
-
https://github.com/lexxai/goit_python_core_hw_10
Модуль 10. Основи роботи з класами. OOP. Basics of working with classes.
#python
-
https://github.com/lexxai/goit_python_core_hw_11
Модуль 11. Магічні методи. OOP. 'Magic' class methods.
#python
-
https://github.com/lexxai/goit_python_core_hw_12
Модуль 12. Серіалізація та копіювання об'єктів. Serialization and copy objects.
#python
Персональний блог на різноманітні теми: від кулінарії до мережевої безпеки.
MYCSS
2023-08-04
Закінчення курсу Python Core. 14 моїх домашніх завдань. GoIT academy
2023-08-02
FreeBSD qemu-guest-agent 8.0.2 freeze before shapshot. Proxmox snaphsot of pgsql database instance VM.
Задача - коректно зберігати базу даних при створені знімку віртуальної машини в Proxmox.
Що є:
Proxmox VE, VM з сервером FreeBSD 13, база даних postgresql.
Виконання:
Встановлюю qemu-guest-agent.
pkg version -x qemu-guest-agent
qemu-guest-agent-8.0.2
Налаштовую qemu-guest-agent:
/etc/rc.d
qemu_guest_agent_enable="YES"
qemu_guest_agent_flags="-d -v --fsfreeze-hook"
Скрипт для оброки freeze-hook
scripts/qemu-guest-agent/fsfreeze-hook
#!/bin/sh
# This script is executed when a guest agent receives fsfreeze-freeze and
# fsfreeze-thaw command, if it is specified in --fsfreeze-hook (-F)
# option of qemu-ga or placed in default path (/etc/qemu/fsfreeze-hook).
# When the agent receives fsfreeze-freeze request, this script is issued with
# "freeze" argument before the filesystem is frozen. And for fsfreeze-thaw
# request, it is issued with "thaw" argument after filesystem is thawed.
LOGFILE=/var/log/qga-fsfreeze-hook.log
FSFREEZE_D=$(dirname -- "$0")/fsfreeze-hook.d
# Check whether file $1 is a backup or rpm-generated file and should be ignored
is_ignored_file() {
case "$1" in
*~ | *.bak | *.orig | *.rpmnew | *.rpmorig | *.rpmsave | *.sample | *.dpkg-old | *.dpkg-new | *.dpkg-tmp | *.dpkg-dist | *.dpkg-bak | *.dpkg-backup | *.dpkg-remove)
return 0 ;;
esac
return 1
}
# Iterate executables in directory "fsfreeze-hook.d" with the specified args
[ ! -d "$FSFREEZE_D" ] && exit 0
for file in "$FSFREEZE_D"/* ; do
is_ignored_file "$file" && continue
[ -x "$file" ] || continue
printf "$(date): execute $file $@\n" >>$LOGFILE
"$file" "$@" >>$LOGFILE 2>&1
STATUS=$?
printf "$(date): $file finished with status=$STATUS\n" >>$LOGFILE
done
exit 0
/usr/local/etc/qemu/fsfreeze-hook.d/pg-flush.sh
#!/bin/sh
# Flush PGSQL tables to the disk before the filesystem is frozen.
# At the same time, this keeps a read lock in order to avoid write accesses
# from the other clients until the filesystem is thawed.
case "$1" in
freeze)
logger -t pg-flush "freeze pg before stop service"
service postgresql stop
sync
logger -t pg-flush "freeze pg after sync"
;;
thaw)
logger -t pg-flush "thaw pg starting service"
service postgresql start
logger -t pg-flush "thaw pg service `service postgresql status`"
;;
*)
exit 1
;;
esac
![]() |
| Proxmox snapshot VM |
Aug 1 17:39:24 pleroma pg-flush[40320]: freeze pg before stop service Aug 1 17:39:24 pleroma postgres[29734]: [10-1] 2023-08-01 17:39:24.116 [29734] FATAL: terminating connection due to administrator command Aug 1 17:39:24 pleroma postgres[29739]: [10-1] 2023-08-01 17:39:24.116 [29739] FATAL: terminating connection due to administrator command Aug 1 17:39:24 pleroma postgres[29736]: [10-1] 2023-08-01 17:39:24.116 [29736] FATAL: terminating connection due to administrator command Aug 1 17:39:24 pleroma postgres[29733]: [10-1] 2023-08-01 17:39:24.116 [29733] FATAL: terminating connection due to administrator command Aug 1 17:39:24 pleroma postgres[29738]: [10-1] 2023-08-01 17:39:24.116 [29738] FATAL: terminating connection due to administrator command Aug 1 17:39:24 pleroma postgres[29730]: [10-1] 2023-08-01 17:39:24.116 [29730] FATAL: terminating connection due to administrator command Aug 1 17:39:24 pleroma postgres[29735]: [10-1] 2023-08-01 17:39:24.116 [29735] FATAL: terminating connection due to administrator command Aug 1 17:39:24 pleroma postgres[29737]: [10-1] 2023-08-01 17:39:24.116 [29737] FATAL: terminating connection due to administrator command Aug 1 17:39:24 pleroma postgres[29731]: [10-1] 2023-08-01 17:39:24.116 [29731] FATAL: terminating connection due to administrator command Aug 1 17:39:24 pleroma postgres[16588]: [10-1] 2023-08-01 17:39:24.116 [16588] FATAL: terminating connection due to administrator command Aug 1 17:39:24 pleroma postgres[37548]: [10-1] 2023-08-01 17:39:24.116 [37548] FATAL: terminating connection due to administrator command Aug 1 17:39:24 pleroma postgres[47096]: [10-1] 2023-08-01 17:39:24.116 [47096] FATAL: terminating connection due to administrator command Aug 1 17:39:24 pleroma postgres[29742]: [10-1] 2023-08-01 17:39:24.116 [29742] FATAL: terminating connection due to administrator command Aug 1 17:39:24 pleroma postgres[47073]: [10-1] 2023-08-01 17:39:24.116 [47073] FATAL: terminating connection due to administrator command Aug 1 17:39:24 pleroma postgres[47076]: [10-1] 2023-08-01 17:39:24.116 [47076] FATAL: terminating connection due to administrator command Aug 1 17:39:24 pleroma pg-flush[40334]: freeze pg after sync Aug 1 17:39:24 pleroma pg-flush[40343]: thaw pg starting service Aug 1 17:39:24 pleroma pg-flush[40365]: thaw pg service pg_ctl: server is running (PID: 41234) /usr/local/bin/postgres "-D" "/var/db/postgres/data12"
Прослухав курс AWS Certified Solutions Architect - Associate (SAA-C03) Cert Prep: 2 Storage Design - LinkedIn Learning!
Прослухав курс AWS Certified Solutions Architect - Associate (SAA-C03) Cert Prep: 2 Storage Design для підготовки сертифікаційного екзамену у межах навчальної системи LinkedIn Learning! як вільний слухач - без сертифікації. (Але у 2024 р. - отримав сертифікат).
Субтитри доступні українською мовою (автоматичні).
![]() |
| у 2024 р. - отримав сертифікат |
![]() |
| Storage Solutions, Amazon Web Services (AWS) |
![]() |
| Gigabyte vs Gibibyte |
2023-07-31
Google Cybersecurity Professional Certificate - Automate Cybersecurity Tasks with Python - Completed on July 31, 2023
Ось це 7-й курс "Automate Cybersecurity Tasks with Python" з 8-ми курсів за напрямком Google Cybersecurity Professional Certificate на платформі Coursera та за підтримки (2022-2023 UA Prometheus) - успішно завершено.
![]() |
| Google Cybersecurity Professional Certificate - Sound the Alarm: Detection and Response |
2023-07-30
Google Cybersecurity Professional Certificate - Sound the Alarm: Detection and Response - Completed on July 30, 2023
Ось це 6-й курс "Sound the Alarm: Detection and Response" з 8-ми курсів за напрямком Google Cybersecurity Professional Certificate на платформі Coursera та за підтримки (2022-2023 UA Prometheus) - успішно завершено.

Google Cybersecurity Professional Certificate - Sound the Alarm: Detection and Response
2023-07-26
Microsoft Web Store (App Store) сертифікувала розширення "CST" (Переклад субтитрів у реальному часі для відео на Coursera)
Ось і Microsoft Web Store (App Store) нарешті сертифікувала 👏 розширення "CST" для браузера 📖 щоб допомагати учням вчитися на Coursera 😀 (Переклад субтитрів у реальному часі для відео на Coursera)
Microsoft Edge Web Store (365 App Strore)
https://github.com/lexxai/coursera-subtitle-translate-extension
![]() |
| Microsoft Edge Web Store (365 App Strore) |
Google Cybersecurity Professional Certificate - Assets, Threats, and Vulnerabilities - Completed on July 26, 2023
Ось це 5-й курс "Assets, Threats, and Vulnerabilities" за напрямком Google Cybersecurity Professional Certificate на платформі Coursera та за підтримки (2022-2023 UA Prometheus) - успішно завершено.

Google Cybersecurity Professional Certificate - Assets, Threats, and Vulnerabilities
2023-07-25
Відомі правила конфіденційності
Три найвпливовіші галузеві правила, про які повинен знати кожен фахівець з безпеки:
- Загальний регламент захисту даних (GDPR)
- Стандарт безпеки даних індустрії платіжних карток (PCI DSS)
- Закон про звітність і безпеку медичного страхування (HIPAA)
GDPR
GDPR – це набір правил і положень, розроблених Європейським Союзом (ЄС), який надає власникам даних повний контроль над їхньою особистою інформацією. Відповідно до GDPR, типи особистої інформації включають ім'я, адресу, номер телефону, фінансову інформацію та медичну інформацію особи.
GDPR застосовується до будь-якого бізнесу, який обробляє дані громадян або резидентів ЄС, незалежно від того, де цей бізнес працює. Наприклад, американська компанія, яка обробляє дані відвідувачів свого веб-сайту з ЄС, підпадає під дію положень GDPR.
PCI DSS
PCI DSS – це набір стандартів безпеки, сформований великими організаціями фінансової індустрії. Це положення спрямоване на захист транзакцій з кредитними та дебетовими картками від крадіжки даних та шахрайства.
HIPAA
HIPAA – це закон США, який вимагає захисту конфіденційної інформації про здоров'я пацієнтів. HIPAA забороняє розголошення медичної інформації особи без її відома та згоди.
Примітка: Ці правила впливають на обробку даних у багатьох організаціях по всьому світу, навіть якщо вони були розроблені конкретними країнами.
Існує кілька інших законів про безпеку та дотримання конфіденційності. Яким з них повинна слідувати ваша організація, буде залежати від галузі та сфери повноважень. Незалежно від обставин, дотримання нормативних вимог є важливим для кожного бізнесу.
2023-07-24
Google Cybersecurity Professional Certificate - Tools of the Trade: Linux and SQL - Completed on July 24, 2023
Ось це 4-й курс "Tools of the Trade: Linux and SQL" за напрямком Google Cybersecurity Professional Certificate на платформі Coursera та за підтримки (2022-2023 UA Prometheus) - успішно завершено.
![]() |
| Google Cybersecurity Professional Certificate - Tools of the Trade: Linux and SQL |
When you forgot your native language you would become a poor at spirit every day ...
Д.Білоус / D.Bilous







