Browse Source

Updated email.

Updated version number.
master 12.0.0
Franco Masotti 9 months ago
parent
commit
3836603470
Signed by: frnmst
GPG Key ID: 24116ED85666780A
  1. 2
      Makefile
  2. 2
      README.rst
  3. 2
      automated_tasks/archiving/archive_documents_simple.sh
  4. 2
      automated_tasks/archiving/archive_emails.myuser.options
  5. 2
      automated_tasks/archiving/archive_emails.myuser.yaml
  6. 9
      automated_tasks/archiving/archive_emails.py
  7. 4
      automated_tasks/archiving/archive_invoice_files.myuser.yaml
  8. 23
      automated_tasks/archiving/archive_invoice_files.py
  9. 2
      automated_tasks/archiving/archive_media_files.mypurpose.yaml
  10. 13
      automated_tasks/archiving/archive_media_files.py
  11. 5
      automated_tasks/archiving/archive_media_with_label.py
  12. 2
      automated_tasks/archiving/archive_media_with_label.yaml
  13. 2
      automated_tasks/archiving/extract_gpx_data_from_dashcams.myuser.yaml
  14. 13
      automated_tasks/archiving/extract_gpx_data_from_dashcams.py
  15. 2
      automated_tasks/archiving/pdftoocr.sh
  16. 2
      automated_tasks/archiving/pdftoocr_deploy.sh
  17. 7
      automated_tasks/archiving/youtube_dl.py
  18. 2
      automated_tasks/archiving/youtube_dl.some_subject.options
  19. 2
      automated_tasks/archiving/youtube_dl.some_subject.yaml
  20. 2
      automated_tasks/audio/set-turntable-loopback-sound.asoundrc
  21. 2
      automated_tasks/backups/borgmatic-mount.myhostname_backed_up_mountpoint.service
  22. 2
      automated_tasks/backups/borgmatic.myhostname_backed_up_mountpoint.service
  23. 2
      automated_tasks/backups/borgmatic.myhostname_backed_up_mountpoint.timer
  24. 2
      automated_tasks/backups/borgmatic.myhostname_backed_up_mountpoint.yaml
  25. 2
      automated_tasks/backups/borgmatic_hooks.myhostname_backed_up_mountpoint.yaml
  26. 5
      automated_tasks/backups/borgmatic_hooks.py
  27. 2
      automated_tasks/backups/borgmatic_mount.myhostname_backed_up_mountpoint.yaml
  28. 7
      automated_tasks/backups/borgmatic_mount.py
  29. 2
      automated_tasks/desktop/set_display_gamma.sh
  30. 2
      automated_tasks/development/build_python_packages.py
  31. 2
      automated_tasks/development/build_python_packages.yaml
  32. 13
      automated_tasks/drives/mdadm_check.py
  33. 2
      automated_tasks/drives/mdadm_check.yaml
  34. 13
      automated_tasks/drives/smartd_test.py
  35. 2
      automated_tasks/drives/smartd_test.yaml
  36. 2
      automated_tasks/file-sharing/kiwix-manage.download.service
  37. 2
      automated_tasks/file-sharing/kiwix-manage.download.timer
  38. 2
      automated_tasks/file-sharing/kiwix-manage.serve.service
  39. 13
      automated_tasks/file-sharing/kiwix_manage.py
  40. 2
      automated_tasks/file-sharing/kiwix_manage.yaml
  41. 2
      automated_tasks/file-sharing/rtorrent.service
  42. 2
      automated_tasks/misc/feed_proxy.mypurpose.yaml
  43. 7
      automated_tasks/misc/feed_proxy.py
  44. 5
      automated_tasks/misc/mine_coins.py
  45. 2
      automated_tasks/misc/mine_coins.yaml
  46. 2
      automated_tasks/misc/monitor_and_notify_git_repo_changes.myrepos.conf
  47. 2
      automated_tasks/misc/monitor_and_notify_git_repo_changes.sh
  48. 2
      automated_tasks/misc/monthly_attendance_paper.mypurpose.yaml
  49. 5
      automated_tasks/misc/monthly_attendance_paper.py
  50. 7
      automated_tasks/misc/notify_camera_action.py
  51. 2
      automated_tasks/misc/notify_camera_action.yaml
  52. 2
      automated_tasks/misc/save_and_notify_file_diffs.myrepo.yaml
  53. 11
      automated_tasks/misc/save_and_notify_file_diffs.py
  54. 5
      automated_tasks/system/clean_pacman.py
  55. 2
      automated_tasks/system/clean_pacman.yaml
  56. 2
      automated_tasks/system/command_assert.mypurpose.yaml
  57. 9
      automated_tasks/system/command_assert.py
  58. 2
      automated_tasks/system/hblock_unbound.py
  59. 2
      automated_tasks/system/hblock_unbound.yaml
  60. 15
      automated_tasks/system/iptables_geoport.py
  61. 2
      automated_tasks/system/iptables_geoport.yaml
  62. 2
      automated_tasks/system/notify-unit-status@.service
  63. 5
      automated_tasks/system/notify_unit_status.py
  64. 2
      automated_tasks/system/notify_unit_status.yaml
  65. 2
      automated_tasks/system/qvm.py
  66. 2
      automated_tasks/system/qvm.yaml
  67. 2
      automated_tasks/system/roothints.service
  68. 2
      automated_tasks/system/roothints.timer
  69. 2
      automated_tasks/system/update_action.mypurpose.yaml
  70. 5
      automated_tasks/system/update_action.py
  71. 2
      automated_tasks/video/convert-videos.samsung.service
  72. 9
      automated_tasks/video/convert_videos.py
  73. 2
      automated_tasks/video/convert_videos.yaml
  74. 2
      automated_tasks/video/record_motion.camera1.yaml
  75. 11
      automated_tasks/video/record_motion.py
  76. 4
      docs/conf.py
  77. 2
      docs/copyright_license.rst
  78. 4
      docs/scripts.rst
  79. 7
      utils/deploy.py
  80. 2
      utils/prepare_environment.conf
  81. 9
      utils/prepare_environment.py

2
Makefile

@ -2,7 +2,7 @@
#
# Makefile
#
# Copyright (C) 2019-2020 frnmst (Franco Masotti) <franco.masotti@tutanota.com>
# Copyright (C) 2019-2020 frnmst (Franco Masotti) (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
#
# This file is part of automated-tasks.
#

2
README.rst

@ -64,7 +64,7 @@ License
Unless otherwise noted:
Copyright (C) 2019-2021 Franco Masotti <franco.masotti@tutanota.com>
Copyright (C) 2019-2021 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by

2
automated_tasks/archiving/archive_documents_simple.sh

@ -3,7 +3,7 @@
# archive_documents_simple.sh
#
# Copyright (C) Arch Wiki contributors https://wiki.archlinux.org/index.php?title=Udisks&oldid=575618
# Copyright (C) 2019 Franco Masotti <franco.masotti@tutanota.com>.
# Copyright (C) 2019 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com).
# Permission is granted to copy, distribute and/or modify this document
# under the terms of the GNU Free Documentation License, Version 1.3
# or any later version published by the Free Software Foundation;

2
automated_tasks/archiving/archive_emails.myuser.options

@ -2,7 +2,7 @@
# archive_emails.myuser.options
#
# Copyright (C) Arch Wiki contributors https://wiki.archlinux.org/index.php/OfflineIMAP
# Copyright (C) 2019-2020 Franco Masotti <franco.masotti@tutanota.com>.
# Copyright (C) 2019-2020 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
# Permission is granted to copy, distribute and/or modify this document
# under the terms of the GNU Free Documentation License, Version 1.3
# or any later version published by the Free Software Foundation;

2
automated_tasks/archiving/archive_emails.myuser.yaml

@ -2,7 +2,7 @@
# archive_emails.myuser.yaml
#
# Copyright (C) Arch Wiki contributors https://wiki.archlinux.org/index.php/OfflineIMAP
# Copyright (C) 2019-2020 Franco Masotti <franco.masotti@tutanota.com>.
# Copyright (C) 2019-2020 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
# Permission is granted to copy, distribute and/or modify this document
# under the terms of the GNU Free Documentation License, Version 1.3
# or any later version published by the Free Software Foundation;

9
automated_tasks/archiving/archive_emails.py

@ -3,7 +3,7 @@
# archive_emails.py
#
# Copyright (C) Arch Wiki contributors https://wiki.archlinux.org/index.php/OfflineIMAP
# Copyright (C) 2019-2021 Franco Masotti <franco.masotti@tutanota.com>.
# Copyright (C) 2019-2021 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
# Permission is granted to copy, distribute and/or modify this document
# under the terms of the GNU Free Documentation License, Version 1.3
# or any later version published by the Free Software Foundation;
@ -14,12 +14,13 @@
# See also https://github.com/OfflineIMAP/offlineimap/blob/master/offlineimap.conf
r"""Save emails."""
import subprocess
import shlex
import re
import shlex
import subprocess
import sys
import fpyutils
import yaml
import sys
if __name__ == '__main__':
configuration_file = shlex.quote(sys.argv[1])

4
automated_tasks/archiving/archive_invoice_files.myuser.yaml

@ -1,7 +1,7 @@
#
#
# archive_invoice_files.myuser.conf
#
# Copyright (C) 2019-2020 Franco Masotti <franco.masotti@tutanota.com>
# Copyright (C) 2019-2020 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by

23
automated_tasks/archiving/archive_invoice_files.py

@ -2,7 +2,7 @@
#
# archive_invoice_files.py
#
# Copyright (C) 2019-2021 Franco Masotti <franco.masotti@tutanota.com>
# Copyright (C) 2019-2021 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@ -20,23 +20,24 @@
# See more copyrights and licenses below.
r"""Download, verify, archive and print invoice files."""
import traceback
import sys
import imaplib
import email
import imaplib
import pathlib
import shlex
import shutil
import subprocess
import sys
import tempfile
import dateutil.parser
import traceback
from itertools import permutations
import lxml.etree
from weasyprint import (HTML, CSS)
import fattura_elettronica_reader
import cups
import subprocess
import shlex
import dateutil.parser
import fattura_elettronica_reader
import fpyutils
import lxml.etree
import yaml
import shutil
from weasyprint import CSS, HTML
class EmailError(Exception):

2
automated_tasks/archiving/archive_media_files.mypurpose.yaml

@ -2,7 +2,7 @@
# archive_media_files.mypurpose.yaml
#
# Copyright (C) Arch Wiki contributors https://wiki.archlinux.org/index.php?title=Udisks&oldid=575618
# Copyright (C) 2019-2020 Franco Masotti <franco.masotti@tutanota.com>.
# Copyright (C) 2019-2020 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
# Permission is granted to copy, distribute and/or modify this document
# under the terms of the GNU Free Documentation License, Version 1.3
# or any later version published by the Free Software Foundation;

13
automated_tasks/archiving/archive_media_files.py

@ -3,7 +3,7 @@
# archive_media_files.py
#
# Copyright (C) Arch Wiki contributors https://wiki.archlinux.org/index.php?title=Udisks&oldid=575618
# Copyright (C) 2019-2021 Franco Masotti <franco.masotti@tutanota.com>.
# Copyright (C) 2019-2021 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
# Permission is granted to copy, distribute and/or modify this document
# under the terms of the GNU Free Documentation License, Version 1.3
# or any later version published by the Free Software Foundation;
@ -18,16 +18,17 @@
# all released under the GFDLv1.3+
r"""Archive media files."""
import fpyutils
import datetime
import json
import multiprocessing
import pathlib
import re
import subprocess
import shlex
import json
import datetime
import multiprocessing
import shutil
import subprocess
import sys
import fpyutils
import yaml

5
automated_tasks/archiving/archive_media_with_label.py

@ -2,7 +2,7 @@
#
# archive_media_with_label.py
#
# Copyright (C) 2020-2021 Franco Masotti <franco.masotti@tutanota.com>
# Copyright (C) 2020-2021 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@ -21,8 +21,9 @@ r"""Add a label to physical supports."""
import argparse
import hashlib
import pathlib
import tabulate
import shlex
import tabulate
import yaml
MEDIA = [

2
automated_tasks/archiving/archive_media_with_label.yaml

@ -1,7 +1,7 @@
#
# archive_media_with_label.yaml
#
# Copyright (C) 2020 Franco Masotti <franco.masotti@tutanota.com>
# Copyright (C) 2020 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by

2
automated_tasks/archiving/extract_gpx_data_from_dashcams.myuser.yaml

@ -1,7 +1,7 @@
#
# extract_gpx_data_from_dashcams.myuser.yaml
#
# Copyright (C) 2019-2020 Franco Masotti <franco.masotti@tutanota.com>
# Copyright (C) 2019-2020 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by

13
automated_tasks/archiving/extract_gpx_data_from_dashcams.py

@ -2,7 +2,7 @@
#
# extract_gpx_data_from_dashcams.py
#
# Copyright (C) 2019-2021 Franco Masotti <franco.masotti@tutanota.com>
# Copyright (C) 2019-2021 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@ -18,14 +18,15 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
r"""Generate GPX files from embedded EXIF metadata in videos."""
import filecmp
import fpyutils
import sys
import shlex
import pathlib
import datetime
import filecmp
import multiprocessing
import pathlib
import re
import shlex
import sys
import fpyutils
import yaml

2
automated_tasks/archiving/pdftoocr.sh

@ -1,6 +1,6 @@
#!/usr/bin/env bash
#
# Copyright (C) 2019 Franco Masotti <franco.masotti@tutanota.com>
# Copyright (C) 2019 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
#
# This script is licensed under a
# Creative Commons Attribution-ShareAlike 3.0 International License.

2
automated_tasks/archiving/pdftoocr_deploy.sh

@ -1,7 +1,7 @@
#!/usr/bin/env bash
#
# Copyright (C) 2013 slm @ Stack Exchange (https://unix.stackexchange.com/a/93971)
# Copyright (C) 2019 Franco Masotti <franco.masotti@tutanota.com>
# Copyright (C) 2019 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
#
# This script is licensed under a
# Creative Commons Attribution-ShareAlike 3.0 International License.

7
automated_tasks/archiving/youtube_dl.py

@ -2,7 +2,7 @@
#
# youtube_dl.py
#
# Copyright (C) 2019-2021 Franco Masotti <franco.masotti@tutanota.com>
# Copyright (C) 2019-2021 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@ -18,11 +18,12 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
r"""Download videos, delete old ones and get a notification."""
import pathlib
import fpyutils
import datetime
import pathlib
import shlex
import sys
import fpyutils
import yaml
if __name__ == '__main__':

2
automated_tasks/archiving/youtube_dl.some_subject.options

@ -1,7 +1,7 @@
#
# youtube_dl.some_subject.options
#
# Copyright (C) 2019 Franco Masotti <franco.masotti@tutanota.com>
# Copyright (C) 2019 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by

2
automated_tasks/archiving/youtube_dl.some_subject.yaml

@ -1,7 +1,7 @@
#
# youtube_dl.some_subject.yaml
#
# Copyright (C) 2019-2020 Franco Masotti <franco.masotti@tutanota.com>
# Copyright (C) 2019-2020 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by

2
automated_tasks/audio/set-turntable-loopback-sound.asoundrc

@ -1,6 +1,6 @@
#
# Copyright (C) 2016 venquessa (https://forums.gentoo.org/viewtopic-t-1053812.html)
# Copyright (C) 2019 Franco Masotti <franco.masotti@tutanota.com>
# Copyright (C) 2019 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
#
# This script is licensed under a
# Creative Commons Attribution-ShareAlike 3.0 International License.

2
automated_tasks/backups/borgmatic-mount.myhostname_backed_up_mountpoint.service

@ -1,7 +1,7 @@
#
# borgmatic-mount.myhostname_backed_up_mountpoint.service
#
# Copyright (C) 2020 Franco Masotti <franco.masotti@tutanota.com>
# Copyright (C) 2020 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by

2
automated_tasks/backups/borgmatic.myhostname_backed_up_mountpoint.service

@ -2,7 +2,7 @@
# borgmatic.myhostname_backed_up_mountpoint.service
#
# Copyright (C) 2016-2020 Dan Helfman <https://projects.torsion.org/witten/borgmatic/raw/branch/master/sample/systemd/borgmatic.service>
# 2020 Franco Masotti <franco.masotti@tutanota.com>
# 2020 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by

2
automated_tasks/backups/borgmatic.myhostname_backed_up_mountpoint.timer

@ -1,7 +1,7 @@
#
# borgmatic.myhostname_backed_up_mountpoint.timer
#
# Copyright (C) 2020 Franco Masotti <franco.masotti@tutanota.com>
# Copyright (C) 2020 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by

2
automated_tasks/backups/borgmatic.myhostname_backed_up_mountpoint.yaml

@ -2,7 +2,7 @@
# borgmatic.myhostname_backed_up_mountpoint.yaml
#
# Copyright (C) 2014-2020 Dan Helfman <https://torsion.org/borgmatic/docs/reference/config.yaml>
# 2020 Franco Masotti <franco.masotti@tutanota.com>
# 2020 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by

2
automated_tasks/backups/borgmatic_hooks.myhostname_backed_up_mountpoint.yaml

@ -1,7 +1,7 @@
#
# borgmatic_hooks.myhostname_your_source_mountpoint.conf
#
# Copyright (C) 2020 Franco Masotti <franco.masotti@tutanota.com>
# Copyright (C) 2020 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by

5
automated_tasks/backups/borgmatic_hooks.py

@ -2,7 +2,7 @@
#
# borgmatic_hooks.py
#
# Copyright (C) 2021 Franco Masotti <franco.masotti@tutanota.com>
# Copyright (C) 2021 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@ -18,9 +18,10 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
r"""Send a notification after the backup oprtation."""
import fpyutils
import shlex
import sys
import fpyutils
import yaml
if __name__ == '__main__':

2
automated_tasks/backups/borgmatic_mount.myhostname_backed_up_mountpoint.yaml

@ -1,7 +1,7 @@
#
# borgmatic_mount.myhostname_backed_up_mountpoint.yaml
#
# Copyright (C) 2020 Franco Masotti <franco.masotti@tutanota.com>
# Copyright (C) 2020 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by

7
automated_tasks/backups/borgmatic_mount.py

@ -2,7 +2,7 @@
#
# borgmatic_mount.py
#
# Copyright (C) 2020-2021 Franco Masotti <franco.masotti@tutanota.com>
# Copyright (C) 2020-2021 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@ -18,10 +18,11 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
r"""Mount a borg backup."""
import fpyutils
import pathlib
import shlex
import sys
import pathlib
import fpyutils
import yaml
if __name__ == '__main__':

2
automated_tasks/desktop/set_display_gamma.sh

@ -1,7 +1,7 @@
#!/usr/bin/env bash
#
# Copyright (C) 2011 Nimmermehr @ Stack Exchange (https://askubuntu.com/a/62270)
# Copyright (C) 2019 Franco Masotti <franco.masotti@tutanota.com>
# Copyright (C) 2019 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
#
# This script is licensed under a
# Creative Commons Attribution-ShareAlike 3.0 International License.

2
automated_tasks/development/build_python_packages.py

@ -2,7 +2,7 @@
#
# build_python_packages.py
#
# Copyright (C) 2021 Franco Masotti <franco.masotti@tutanota.com>
# Copyright (C) 2021 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by

2
automated_tasks/development/build_python_packages.yaml

@ -1,7 +1,7 @@
#
# build_pythen_packages.yaml
#
# Copyright (C) 2021 Franco Masotti <franco.masotti@tutanota.com>
# Copyright (C) 2021 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by

13
automated_tasks/drives/mdadm_check.py

@ -16,16 +16,17 @@
# Author: Neil Brown
# Email: <neilb@suse.com>
#
# Copyright (C) 2019-2021 Franco Masotti <franco.masotti@tutanota.com>
# Copyright (C) 2019-2021 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
r"""Run RAID tests."""
import fpyutils
import sys
import time
import os
import collections
import multiprocessing
import os
import pathlib
import collections
import sys
import time
import fpyutils
import yaml
# Constants.

2
automated_tasks/drives/mdadm_check.yaml

@ -17,7 +17,7 @@
# Author: Neil Brown
# Email: <neilb@suse.com>
#
# Copyright (C) 2019-2020 Franco Masotti <franco.masotti@tutanota.com>
# Copyright (C) 2019-2020 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
generic:
# The maximum number of concurrent processes.

13
automated_tasks/drives/smartd_test.py

@ -2,7 +2,7 @@
#
# smartd_test.py
#
# Copyright (C) 2019-2021 Franco Masotti <franco.masotti@tutanota.com>
# Copyright (C) 2019-2021 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@ -18,14 +18,15 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
r"""Run S.M.A.R.T tests on hard drives."""
import fpyutils
import re
import sys
import json
import os
import pathlib
import subprocess
import json
import re
import shlex
import subprocess
import sys
import fpyutils
import yaml
# Constants.

2
automated_tasks/drives/smartd_test.yaml

@ -1,7 +1,7 @@
#
# smartd_test.yaml
#
# Copyright (C) 2019-2020 Franco Masotti <franco.masotti@tutanota.com>
# Copyright (C) 2019-2020 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by

2
automated_tasks/file-sharing/kiwix-manage.download.service

@ -1,7 +1,7 @@
#
# kiwix-manage.serve.service
#
# Copyright (C) 2020 Franco Masotti <franco.masotti@tutanota.com>
# Copyright (C) 2020 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by

2
automated_tasks/file-sharing/kiwix-manage.download.timer

@ -1,7 +1,7 @@
#
# kiwix-manage.download.timer
#
# Copyright (C) 2020 Franco Masotti <franco.masotti@tutanota.com>
# Copyright (C) 2020 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by

2
automated_tasks/file-sharing/kiwix-manage.serve.service

@ -1,7 +1,7 @@
#
# kiwix-manage.serve.service
#
# Copyright (C) 2020 Franco Masotti <franco.masotti@tutanota.com>
# Copyright (C) 2020 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by

13
automated_tasks/file-sharing/kiwix_manage.py

@ -2,7 +2,7 @@
#
# kiwix_manage.py
#
# Copyright (C) 2020-2021 Franco Masotti <franco.masotti@tutanota.com>
# Copyright (C) 2020-2021 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@ -22,17 +22,18 @@
# Main #
########
import bs4
import datetime
import fpyutils
import pathlib
import re
import requests
import sys
import shlex
import shutil
import subprocess
import sys
import urllib.parse
import bs4
import fpyutils
import requests
import yaml
@ -228,7 +229,7 @@ def download_binary_file_requests(url: str, destination: str):
#
# Copyright (C) 2016 John Zwinck @ Stack Exchange (https://stackoverflow.com/questions/16694907/download-large-file-in-python-with-requests/39217788#39217788)
# Copyright (C) 2020 Martijn Pieters @ Stack Exchange (https://stackoverflow.com/questions/16694907/download-large-file-in-python-with-requests/39217788#39217788)
# Copyright (C) 2020 Franco Masotti <franco.masotti@tutanota.com>
# Copyright (C) 2020 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
#
# This script is licensed under a
# Creative Commons Attribution-ShareAlike 4.0 International License.

2
automated_tasks/file-sharing/kiwix_manage.yaml

@ -1,7 +1,7 @@
#
# kiwix_manage.yaml
#
# Copyright (C) 2020 Franco Masotti <franco.masotti@tutanota.com>
# Copyright (C) 2020 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by

2
automated_tasks/file-sharing/rtorrent.service

@ -2,7 +2,7 @@
# rtorrent.service
#
# Copyright (C) Arch Wiki contributors https://wiki.archlinux.org/index.php?title>
# Copyright (C) 2020 Franco Masotti <franco.masotti@tutanota.com>.
# Copyright (C) 2020 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com).
# Permission is granted to copy, distribute and/or modify this document
# under the terms of the GNU Free Documentation License, Version 1.3
# or any later version published by the Free Software Foundation;

2
automated_tasks/misc/feed_proxy.mypurpose.yaml

@ -2,7 +2,7 @@
#
# feed_proxy.mypurpose.yaml
#
# Copyright (C) 2021 Franco Masotti <franco.masotti@tutanota.com>
# Copyright (C) 2021 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by

7
automated_tasks/misc/feed_proxy.py

@ -2,7 +2,7 @@
#
# feed_proxy.py
#
# Copyright (C) 2021 Franco Masotti <franco.masotti@tutanota.com>
# Copyright (C) 2021 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@ -18,11 +18,12 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
r"""Save RSS feeds."""
import requests
import pathlib
import sys
import shlex
import sys
import time
import requests
import yaml
if __name__ == '__main__':

5
automated_tasks/misc/mine_coins.py

@ -2,7 +2,7 @@
#
# mine_coins.py
#
# Copyright (C) 2021 Franco Masotti <franco.masotti@tutanota.com>
# Copyright (C) 2021 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@ -17,9 +17,10 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
import fpyutils
import shlex
import sys
import fpyutils
import yaml
if __name__ == '__main__':

2
automated_tasks/misc/mine_coins.yaml

@ -1,7 +1,7 @@
#
# mine_coins.yaml
#
# Copyright (C) 2021 Franco Masotti <franco.masotti@tutanota.com>
# Copyright (C) 2021 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by

2
automated_tasks/misc/monitor_and_notify_git_repo_changes.myrepos.conf

@ -1,5 +1,5 @@
#
# Copyright (C) 2019 Franco Masotti <franco.masotti@tutanota.com>
# Copyright (C) 2019 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by

2
automated_tasks/misc/monitor_and_notify_git_repo_changes.sh

@ -1,6 +1,6 @@
#!/usr/bin/env bash
#
# Copyright (C) 2019 Franco Masotti <franco.masotti@tutanota.com>
# Copyright (C) 2019 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by

2
automated_tasks/misc/monthly_attendance_paper.mypurpose.yaml

@ -1,7 +1,7 @@
#
# monthly_attendance_paper.mypurpose.yaml
#
# Copyright (C) 2021 Franco Masotti <franco.masotti@tutanota.com>
# Copyright (C) 2021 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by

5
automated_tasks/misc/monthly_attendance_paper.py

@ -2,7 +2,7 @@
#
# monthly_attendance_paper.py
#
# Copyright (C) 2021 Franco Masotti <franco.masotti@tutanota.com>
# Copyright (C) 2021 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@ -19,10 +19,11 @@
import calendar
import math
import yaml
import shlex
import sys
import yaml
if __name__ == '__main__':
configuration_file = shlex.quote(sys.argv[1])
year = int(shlex.quote(sys.argv[2]))

7
automated_tasks/misc/notify_camera_action.py

@ -2,7 +2,7 @@
#
# notify_camera_actions.py
#
# Copyright (C) 2019-2021 Franco Masotti <franco.masotti@tutanota.com>
# Copyright (C) 2019-2021 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@ -18,9 +18,10 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
r"""Send notifications when something happens to a motion camera."""
import fpyutils
import sys
import shlex
import sys
import fpyutils
import yaml
if __name__ == '__main__':

2
automated_tasks/misc/notify_camera_action.yaml

@ -1,6 +1,6 @@
# notify_camera_actions.yaml
#
# Copyright (C) 2019-2020 Franco Masotti <franco.masotti@tutanota.com>
# Copyright (C) 2019-2020 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by

2
automated_tasks/misc/save_and_notify_file_diffs.myrepo.yaml

@ -1,7 +1,7 @@
#
# save_and_notify_file_diffs.myrepo.yaml
#
# Copyright (C) 2021 Franco Masotti <franco.masotti@tutanota.com>
# Copyright (C) 2021 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by

11
automated_tasks/misc/save_and_notify_file_diffs.py

@ -2,7 +2,7 @@
#
# save_and_notify_file_diffs.py
#
# Copyright (C) 2021 Franco Masotti <franco.masotti@tutanota.com>
# Copyright (C) 2021 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@ -18,13 +18,14 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
r"""Send notifications and save files if remotes change."""
import fpyutils
import requests
import hashlib
import pathlib
import sys
import shlex
import hashlib
import sys
import urllib.parse
import fpyutils
import requests
import yaml
if __name__ == '__main__':

5
automated_tasks/system/clean_pacman.py

@ -4,7 +4,7 @@
#
# Copyright (C) Arch Wiki contributors https://wiki.archlinux.org/index.php/Pacman
# Copyright (C) Arch Wiki contributors https://wiki.archlinux.org/index.php/Pacman/Tips_and_tricks
# Copyright (C) 2019-2021 Franco Masotti <franco.masotti@tutanota.com>.
# Copyright (C) 2019-2021 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com).
# Permission is granted to copy, distribute and/or modify this document
# under the terms of the GNU Free Documentation License, Version 1.3
# or any later version published by the Free Software Foundation;
@ -13,9 +13,10 @@
# Free Documentation License".
r"""Clean pacman cache."""
import fpyutils
import shlex
import sys
import fpyutils
import yaml
if __name__ == '__main__':

2
automated_tasks/system/clean_pacman.yaml

@ -3,7 +3,7 @@
#
# Copyright (C) Arch Wiki contributors https://wiki.archlinux.org/index.php/Pacman
# Copyright (C) Arch Wiki contributors https://wiki.archlinux.org/index.php/Pacman/Tips_and_tricks
# Copyright (C) 2019-2020 Franco Masotti <franco.masotti@tutanota.com>.
# Copyright (C) 2019-2020 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com).
# Permission is granted to copy, distribute and/or modify this document
# under the terms of the GNU Free Documentation License, Version 1.3
# or any later version published by the Free Software Foundation;

2
automated_tasks/system/command_assert.mypurpose.yaml

@ -1,7 +1,7 @@
#
# command_assert.mypurpose.yaml
#
# Copyright (C) 2020 Franco Masotti <franco.masotti@tutanota.com>
# Copyright (C) 2020 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by

9
automated_tasks/system/command_assert.py

@ -2,7 +2,7 @@
#
# command_assert.py
#
# Copyright (C) 2020-2021 Franco Masotti <franco.masotti@tutanota.com>
# Copyright (C) 2020-2021 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@ -18,11 +18,12 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
r"""command_assert.py."""
import fpyutils
import subprocess
import shlex
import re
import shlex
import subprocess
import sys
import fpyutils
import yaml

2
automated_tasks/system/hblock_unbound.py

@ -4,7 +4,7 @@
#
# The MIT License (MIT)
#
# Copyright (C) 2019-2021 Franco Masotti <franco.masotti@tutanota.com>
# Copyright (C) 2019-2021 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
# Copyright © 2019 Héctor Molinero Fernández
#
# Permission is hereby granted, free of charge, to any person obtaining a copy

2
automated_tasks/system/hblock_unbound.yaml

@ -3,7 +3,7 @@
#
# The MIT License (MIT)
#
# Copyright (C) 2019-2020 Franco Masotti <franco.masotti@tutanota.com>
# Copyright (C) 2019-2020 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
# Copyright © 2019 Héctor Molinero Fernández
#
# Permission is hereby granted, free of charge, to any person obtaining a copy

15
automated_tasks/system/iptables_geoport.py

@ -2,7 +2,7 @@
#
# iptables_geoport.py
#
# Copyright (C) 2020-2021 Franco Masotti <franco.masotti@tutanota.com>
# Copyright (C) 2020-2021 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@ -30,14 +30,15 @@
r"""iptables_geoport.py."""
import copy
import fpyutils
import requests
import sys
import shlex
import ipaddress
import urllib
import pathlib
import os
import pathlib
import shlex
import sys
import urllib
import fpyutils
import requests
import yaml

2
automated_tasks/system/iptables_geoport.yaml

@ -1,7 +1,7 @@
#
# iptables_geoport.yaml
#
# Copyright (C) 2020 Franco Masotti <franco.masotti@tutanota.com>
# Copyright (C) 2020 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by

2
automated_tasks/system/notify-unit-status@.service

@ -3,7 +3,7 @@
#
# Copyright (C) 2015 Pablo Martinez @ Stack Exchange (https://serverfault.com/a/701100)
# Copyright (C) 2018 Davy Landman @ Stack Exchange (https://serverfault.com/a/701100)
# Copyright (C) 2020 Franco Masotti <franco.masotti@tutanota.com>
# Copyright (C) 2020 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
#
# This script is licensed under a
# Creative Commons Attribution-ShareAlike 4.0 International License.

5
automated_tasks/system/notify_unit_status.py

@ -4,7 +4,7 @@
#
# Copyright (C) 2015 Pablo Martinez @ Stack Exchange (https://serverfault.com/a/701100)
# Copyright (C) 2018 Davy Landman @ Stack Exchange (https://serverfault.com/a/701100)
# Copyright (C) 2020-2021 Franco Masotti <franco.masotti@tutanota.com>
# Copyright (C) 2020-2021 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
#
# This script is licensed under a
# Creative Commons Attribution-ShareAlike 4.0 International License.
@ -13,9 +13,10 @@
# work. If not, see <http://creativecommons.org/licenses/by-sa/4.0/>.
r"""Send a notification when a Systemd unit fails."""
import fpyutils
import shlex
import sys
import fpyutils
import yaml
if __name__ == '__main__':

2
automated_tasks/system/notify_unit_status.yaml

@ -3,7 +3,7 @@
#
# Copyright (C) 2015 Pablo Martinez @ Stack Exchange (https://serverfault.com/a/701100)
# Copyright (C) 2018 Davy Landman @ Stack Exchange (https://serverfault.com/a/701100)
# Copyright (C) 2020 Franco Masotti <franco.masotti@tutanota.com>
# Copyright (C) 2020 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
#
# This script is licensed under a
# Creative Commons Attribution-ShareAlike 4.0 International License.

2
automated_tasks/system/qvm.py

@ -2,7 +2,7 @@
#
# qvm.py
#
# Copyright (C) 2021 Franco Masotti <franco.masotti@tutanota.com>
# Copyright (C) 2021 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by

2
automated_tasks/system/qvm.yaml

@ -1,7 +1,7 @@
#
# qvm.yaml
#
# Copyright (C) 2021 Franco Masotti <franco.masotti@tutanota.com>
# Copyright (C) 2021 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by

2
automated_tasks/system/roothints.service

@ -2,7 +2,7 @@
# roothints.service
#
# Copyright (C) Arch Wiki contributors https://wiki.archlinux.org/index.php/Unbound#Roothints_systemd_timer
# Copyright (C) 2020 Franco Masotti <franco.masotti@tutanota.com>.
# Copyright (C) 2020 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com).
# Permission is granted to copy, distribute and/or modify this document
# under the terms of the GNU Free Documentation License, Version 1.3
# or any later version published by the Free Software Foundation;

2
automated_tasks/system/roothints.timer

@ -2,7 +2,7 @@
# roothints.timer
#
# Copyright (C) Arch Wiki contributors https://wiki.archlinux.org/index.php/Unbound#Roothints_systemd_timer
# Copyright (C) 2020 Franco Masotti <franco.masotti@tutanota.com>.
# Copyright (C) 2020 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com).
# Permission is granted to copy, distribute and/or modify this document
# under the terms of the GNU Free Documentation License, Version 1.3
# or any later version published by the Free Software Foundation;

2
automated_tasks/system/update_action.mypurpose.yaml

@ -1,7 +1,7 @@
#
# update_action.mypurpose.yaml
#
# Copyright (C) 2021 Franco Masotti <franco.masotti@tutanota.com>
# Copyright (C) 2021 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by

5
automated_tasks/system/update_action.py

@ -2,7 +2,7 @@
#
# update_action.py
#
# Copyright (C) 2021 Franco Masotti <franco.masotti@tutanota.com>
# Copyright (C) 2021 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@ -18,9 +18,10 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
r"""update_action.py."""
import fpyutils
import shlex
import sys
import fpyutils
import yaml

2
automated_tasks/video/convert-videos.samsung.service

@ -1,7 +1,7 @@
#
# convert-videos.samsung.service
#
# Copyright (C) 2020 Franco Masotti <franco.masotti@tutanota.com>
# Copyright (C) 2020 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by

9
automated_tasks/video/convert_videos.py

@ -2,7 +2,7 @@
#
# convert_videos.py
#
# Copyright (C) 2020-2021 Franco Masotti <franco.masotti@tutanota.com>
# Copyright (C) 2020-2021 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@ -35,11 +35,12 @@
r"""Encode and transcode videos from various sources."""
import argparse
import shlex
import pathlib
import yaml
import datetime
import pathlib
import shlex
import fpyutils
import yaml
#########
# Utils #

2
automated_tasks/video/convert_videos.yaml

@ -1,7 +1,7 @@
#
# convert_videos.yaml
#
# Copyright (C) 2020 Franco Masotti <franco.masotti@tutanota.com>
# Copyright (C) 2020 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by

2
automated_tasks/video/record_motion.camera1.yaml

@ -1,7 +1,7 @@
#
# record_motion.camera1.yaml
#
# Copyright (C) 2020 Franco Masotti <franco.masotti@tutanota.com>
# Copyright (C) 2020 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by