machineconfig 1.92__py3-none-any.whl → 1.94__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of machineconfig might be problematic. Click here for more details.
- machineconfig/__init__.py +0 -8
- machineconfig/cluster/__init__.py +0 -0
- machineconfig/cluster/cloud_manager.py +359 -0
- machineconfig/cluster/data_transfer.py +56 -0
- machineconfig/cluster/distribute.py +280 -0
- machineconfig/cluster/file_manager.py +238 -0
- machineconfig/cluster/job_params.py +148 -0
- machineconfig/cluster/loader_runner.py +150 -0
- machineconfig/cluster/remote_machine.py +281 -0
- machineconfig/cluster/script_execution.py +209 -0
- machineconfig/cluster/script_notify_upon_completion.py +63 -0
- machineconfig/cluster/self_ssh.py +59 -0
- machineconfig/cluster/session_managers.py +183 -0
- machineconfig/cluster/templates/__init__.py +0 -0
- machineconfig/cluster/templates/cli_click.py +104 -0
- machineconfig/cluster/templates/cli_gooey.py +119 -0
- machineconfig/cluster/templates/cli_trogon.py +21 -0
- machineconfig/cluster/templates/f.py +4 -0
- machineconfig/cluster/templates/run_cloud.py +52 -0
- machineconfig/cluster/templates/run_cluster.py +69 -0
- machineconfig/cluster/templates/run_remote.py +67 -0
- machineconfig/cluster/templates/utils.py +37 -0
- machineconfig/jobs/__pycache__/__init__.cpython-311.pyc +0 -0
- machineconfig/jobs/linux/msc/lid.sh +26 -0
- machineconfig/jobs/linux/msc/network.sh +39 -0
- machineconfig/jobs/python/__pycache__/__init__.cpython-311.pyc +0 -0
- machineconfig/jobs/python/__pycache__/check_installations.cpython-311.pyc +0 -0
- machineconfig/jobs/python/__pycache__/checkout_version.cpython-311.pyc +0 -0
- machineconfig/jobs/python/__pycache__/python_ve_symlink.cpython-311.pyc +0 -0
- machineconfig/jobs/python/archive/python_tools.txt +12 -0
- machineconfig/jobs/python/check_installations.py +26 -11
- machineconfig/jobs/python/checkout_version.py +24 -13
- machineconfig/jobs/python/create_zellij_template.py +4 -4
- machineconfig/jobs/python/python_cargo_build_share.py +13 -4
- machineconfig/jobs/python/python_ve_symlink.py +15 -4
- machineconfig/jobs/python/vscode/__pycache__/api.cpython-311.pyc +0 -0
- machineconfig/jobs/python/vscode/__pycache__/link_ve.cpython-311.pyc +0 -0
- machineconfig/jobs/python/vscode/api.py +48 -0
- machineconfig/jobs/python/vscode/link_ve.py +64 -0
- machineconfig/jobs/python/vscode/select_interpreter.py +84 -0
- machineconfig/jobs/python/vscode/sync_code.py +60 -0
- machineconfig/jobs/python_custom_installers/__pycache__/__init__.cpython-311.pyc +0 -0
- machineconfig/jobs/python_custom_installers/__pycache__/hx.cpython-311.pyc +0 -0
- machineconfig/jobs/python_custom_installers/archive/ngrok.py +62 -0
- machineconfig/jobs/python_custom_installers/dev/aider.py +37 -0
- machineconfig/jobs/python_custom_installers/dev/alacritty.py +72 -0
- machineconfig/jobs/python_custom_installers/dev/brave.py +67 -0
- machineconfig/jobs/python_custom_installers/dev/bypass_paywall.py +50 -0
- machineconfig/jobs/python_custom_installers/dev/code.py +62 -0
- machineconfig/jobs/python_custom_installers/dev/cursor.py +67 -0
- machineconfig/jobs/python_custom_installers/dev/docker.py +70 -0
- machineconfig/jobs/python_custom_installers/dev/docker_desktop.py +77 -0
- machineconfig/jobs/python_custom_installers/dev/espanso.py +82 -0
- machineconfig/jobs/python_custom_installers/dev/goes.py +59 -0
- machineconfig/jobs/python_custom_installers/dev/lvim.py +76 -0
- machineconfig/jobs/python_custom_installers/dev/nerdfont.py +67 -0
- machineconfig/jobs/python_custom_installers/dev/redis.py +69 -0
- machineconfig/jobs/python_custom_installers/dev/reverse_proxy.md +31 -0
- machineconfig/jobs/python_custom_installers/dev/warp-cli.py +71 -0
- machineconfig/jobs/python_custom_installers/dev/wezterm.py +71 -0
- machineconfig/jobs/python_custom_installers/gh.py +46 -4
- machineconfig/jobs/python_custom_installers/hx.py +103 -18
- machineconfig/jobs/python_custom_installers/scripts/linux/brave.sh +52 -0
- machineconfig/jobs/python_custom_installers/scripts/linux/docker.sh +140 -0
- machineconfig/jobs/python_custom_installers/scripts/linux/docker_start.sh +48 -0
- machineconfig/jobs/python_custom_installers/scripts/linux/edge.sh +47 -0
- machineconfig/jobs/python_custom_installers/scripts/linux/nerdfont.sh +64 -0
- machineconfig/jobs/python_custom_installers/scripts/linux/pgsql.sh +53 -0
- machineconfig/jobs/python_custom_installers/scripts/linux/redis.sh +76 -0
- machineconfig/jobs/python_custom_installers/scripts/linux/timescaledb.sh +91 -0
- machineconfig/jobs/python_custom_installers/scripts/linux/vscode.sh +66 -0
- machineconfig/jobs/python_custom_installers/scripts/linux/warp-cli.sh +77 -0
- machineconfig/jobs/python_custom_installers/scripts/linux/wezterm.sh +43 -0
- machineconfig/jobs/python_generic_installers/__pycache__/__init__.cpython-311.pyc +0 -0
- machineconfig/jobs/python_generic_installers/config.json +267 -0
- machineconfig/jobs/python_generic_installers/dev/config.archive.json +18 -0
- machineconfig/jobs/python_generic_installers/dev/config.json +394 -0
- machineconfig/jobs/python_linux_installers/__pycache__/__init__.cpython-311.pyc +0 -0
- machineconfig/jobs/python_linux_installers/archive/config.json +10 -0
- machineconfig/jobs/python_linux_installers/config.json +74 -0
- machineconfig/jobs/python_linux_installers/dev/config.json +138 -0
- machineconfig/jobs/python_windows_installers/__pycache__/__init__.cpython-311.pyc +0 -0
- machineconfig/jobs/python_windows_installers/archive/file.json +11 -0
- machineconfig/jobs/python_windows_installers/config.json +50 -0
- machineconfig/jobs/python_windows_installers/dev/config.json +3 -0
- machineconfig/jobs/windows/archive/archive_pygraphviz.ps1 +14 -0
- machineconfig/jobs/windows/archive/openssh-server_add_key.ps1 +7 -0
- machineconfig/jobs/windows/archive/openssh-server_copy-ssh-id.ps1 +14 -0
- machineconfig/jobs/windows/start_terminal.ps1 +6 -0
- machineconfig/jobs/windows/startup_file.cmd +2 -0
- machineconfig/profile/__pycache__/__init__.cpython-311.pyc +0 -0
- machineconfig/profile/__pycache__/create.cpython-311.pyc +0 -0
- machineconfig/profile/__pycache__/shell.cpython-311.pyc +0 -0
- machineconfig/profile/create.py +47 -13
- machineconfig/profile/create_hardlinks.py +42 -12
- machineconfig/profile/records/generic/shares.toml +5 -0
- machineconfig/profile/records/linux/apps_summary_report.csv +48 -0
- machineconfig/profile/records/linux/apps_summary_report.md +49 -0
- machineconfig/profile/records/windows/apps_summary_report.csv +1 -0
- machineconfig/profile/records/windows/apps_summary_report.md +2 -0
- machineconfig/profile/shell.py +62 -11
- machineconfig/scripts/__pycache__/__init__.cpython-311.pyc +0 -0
- machineconfig/scripts/cloud/init.sh +128 -0
- machineconfig/scripts/linux/activate_ve +87 -0
- machineconfig/scripts/linux/archive/tmate_conn +12 -0
- machineconfig/scripts/linux/archive/tmate_start +12 -0
- machineconfig/scripts/linux/archive/transfer_wsl_win +5 -0
- machineconfig/scripts/linux/checkout_versions +8 -0
- machineconfig/scripts/linux/choose_wezterm_theme +9 -0
- machineconfig/scripts/linux/cloud_copy +9 -0
- machineconfig/scripts/linux/cloud_manager +8 -0
- machineconfig/scripts/linux/cloud_mount +24 -0
- machineconfig/scripts/linux/cloud_repo_sync +22 -0
- machineconfig/scripts/linux/cloud_sync +24 -0
- machineconfig/scripts/linux/croshell +24 -0
- machineconfig/scripts/linux/devops +24 -0
- machineconfig/scripts/linux/fire +46 -0
- machineconfig/scripts/linux/ftpx +8 -0
- machineconfig/scripts/linux/fzf2g +21 -0
- machineconfig/scripts/linux/fzfag +17 -0
- machineconfig/scripts/linux/fzffg +25 -0
- machineconfig/scripts/linux/fzfg +23 -0
- machineconfig/scripts/linux/fzfrga +21 -0
- machineconfig/scripts/linux/gh_models +11 -0
- machineconfig/scripts/linux/kill_process +10 -0
- machineconfig/scripts/linux/mount_drive +128 -0
- machineconfig/scripts/linux/mount_nfs +62 -0
- machineconfig/scripts/linux/mount_nw_drive +72 -0
- machineconfig/scripts/linux/mount_smb +3 -0
- machineconfig/scripts/linux/programs +21 -0
- machineconfig/scripts/linux/repos +24 -0
- machineconfig/scripts/linux/scheduler +8 -0
- machineconfig/scripts/linux/share_cloud.sh +81 -0
- machineconfig/scripts/linux/share_nfs +49 -0
- machineconfig/scripts/linux/share_smb +1 -0
- machineconfig/scripts/linux/skrg +4 -0
- machineconfig/scripts/linux/start_docker +23 -0
- machineconfig/scripts/linux/start_slidev +23 -0
- machineconfig/scripts/linux/start_terminals +12 -0
- machineconfig/scripts/linux/switch_ip +20 -0
- machineconfig/scripts/linux/url2md +10 -0
- machineconfig/scripts/linux/z_ls +104 -0
- machineconfig/scripts/python/.mypy_cache/.gitignore +2 -0
- machineconfig/scripts/python/.mypy_cache/3.11/@plugins_snapshot.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/__future__.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/__future__.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_ast.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_ast.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_bz2.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_bz2.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_codecs.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_codecs.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_collections_abc.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_collections_abc.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_compression.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_compression.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_decimal.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_decimal.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_frozen_importlib.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_frozen_importlib.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_frozen_importlib_external.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_frozen_importlib_external.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_io.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_io.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_locale.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_locale.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_stat.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_stat.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_struct.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_struct.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_thread.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_thread.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_typeshed/__init__.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_typeshed/__init__.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_typeshed/importlib.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_typeshed/importlib.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_warnings.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_warnings.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_weakref.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_weakref.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_weakrefset.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_weakrefset.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/abc.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/abc.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/argparse.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/argparse.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/ast.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/ast.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/binascii.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/binascii.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/builtins.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/builtins.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/bz2.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/bz2.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/calendar.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/calendar.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/codecs.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/codecs.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/collections/__init__.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/collections/__init__.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/collections/abc.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/collections/abc.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/configparser.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/configparser.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/contextlib.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/contextlib.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/dataclasses.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/dataclasses.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/datetime.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/datetime.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/decimal.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/decimal.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/dis.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/dis.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/email/__init__.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/email/__init__.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/email/_policybase.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/email/_policybase.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/email/charset.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/email/charset.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/email/contentmanager.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/email/contentmanager.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/email/errors.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/email/errors.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/email/header.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/email/header.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/email/message.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/email/message.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/email/policy.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/email/policy.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/enum.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/enum.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/fnmatch.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/fnmatch.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/functools.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/functools.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/gc.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/gc.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/genericpath.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/genericpath.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/getpass.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/getpass.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/__init__.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/__init__.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/cmd.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/cmd.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/compat.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/compat.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/config.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/config.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/db.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/db.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/diff.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/diff.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/exc.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/exc.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/index/__init__.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/index/__init__.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/index/base.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/index/base.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/index/fun.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/index/fun.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/index/typ.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/index/typ.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/index/util.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/index/util.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/__init__.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/__init__.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/base.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/base.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/blob.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/blob.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/commit.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/commit.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/fun.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/fun.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/submodule/__init__.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/submodule/__init__.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/submodule/base.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/submodule/base.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/submodule/root.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/submodule/root.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/submodule/util.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/submodule/util.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/tag.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/tag.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/tree.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/tree.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/util.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/util.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/refs/__init__.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/refs/__init__.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/refs/head.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/refs/head.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/refs/log.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/refs/log.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/refs/reference.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/refs/reference.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/refs/remote.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/refs/remote.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/refs/symbolic.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/refs/symbolic.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/refs/tag.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/refs/tag.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/remote.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/remote.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/repo/__init__.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/repo/__init__.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/repo/base.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/repo/base.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/repo/fun.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/repo/fun.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/types.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/types.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/util.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/util.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/glob.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/glob.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/gzip.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/gzip.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/__init__.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/__init__.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/_abc.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/_abc.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/_bootstrap.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/_bootstrap.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/_bootstrap_external.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/_bootstrap_external.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/abc.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/abc.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/machinery.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/machinery.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/metadata/__init__.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/metadata/__init__.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/metadata/_meta.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/metadata/_meta.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/readers.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/readers.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/resources/__init__.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/resources/__init__.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/resources/_common.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/resources/_common.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/resources/abc.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/resources/abc.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/inspect.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/inspect.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/io.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/io.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/itertools.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/itertools.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/locale.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/locale.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/logging/__init__.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/logging/__init__.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/mimetypes.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/mimetypes.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/mmap.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/mmap.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/numbers.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/numbers.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/opcode.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/opcode.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/os/__init__.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/os/__init__.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/os/path.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/os/path.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/pathlib.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/pathlib.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/platform.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/platform.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/posixpath.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/posixpath.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/re.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/re.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/resource.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/resource.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/shlex.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/shlex.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/shutil.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/shutil.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/signal.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/signal.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/src/__init__.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/src/__init__.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/src/machineconfig/__init__.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/src/machineconfig/__init__.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/src/machineconfig/scripts/__init__.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/src/machineconfig/scripts/__init__.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/src/machineconfig/scripts/python/__init__.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/src/machineconfig/scripts/python/__init__.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/sre_compile.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/sre_compile.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/sre_constants.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/sre_constants.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/sre_parse.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/sre_parse.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/stat.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/stat.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/string.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/string.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/struct.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/struct.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/subprocess.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/subprocess.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/sys/__init__.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/sys/__init__.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/tarfile.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/tarfile.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/tempfile.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/tempfile.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/textwrap.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/textwrap.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/threading.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/threading.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/time.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/time.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/types.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/types.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/typing.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/typing.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/typing_extensions.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/typing_extensions.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/urllib/__init__.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/urllib/__init__.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/urllib/parse.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/urllib/parse.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/uuid.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/uuid.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/warnings.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/warnings.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/weakref.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/weakref.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/zipfile/__init__.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/zipfile/__init__.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/zlib.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/zlib.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/CACHEDIR.TAG +3 -0
- machineconfig/scripts/python/__pycache__/__init__.cpython-311.pyc +0 -0
- machineconfig/scripts/python/__pycache__/cloud_copy.cpython-311.pyc +0 -0
- machineconfig/scripts/python/__pycache__/cloud_mount.cpython-311.pyc +0 -0
- machineconfig/scripts/python/__pycache__/cloud_repo_sync.cpython-311.pyc +0 -0
- machineconfig/scripts/python/__pycache__/cloud_sync.cpython-311.pyc +0 -0
- machineconfig/scripts/python/__pycache__/croshell.cpython-311.pyc +0 -0
- machineconfig/scripts/python/__pycache__/devops.cpython-311.pyc +0 -0
- machineconfig/scripts/python/__pycache__/devops_backup_retrieve.cpython-311.pyc +0 -0
- machineconfig/scripts/python/__pycache__/devops_devapps_install.cpython-311.pyc +0 -0
- machineconfig/scripts/python/__pycache__/devops_update_repos.cpython-311.pyc +0 -0
- machineconfig/scripts/python/__pycache__/fire_jobs.cpython-311.pyc +0 -0
- machineconfig/scripts/python/__pycache__/gh_models.cpython-311.pyc +0 -0
- machineconfig/scripts/python/__pycache__/repos.cpython-311.pyc +0 -0
- machineconfig/scripts/python/__pycache__/url2md.cpython-311.pyc +0 -0
- machineconfig/scripts/python/__pycache__/viewer.cpython-311.pyc +0 -0
- machineconfig/scripts/python/__pycache__/vscode_api.cpython-311.pyc +0 -0
- machineconfig/scripts/python/archive/im2text.py +36 -0
- machineconfig/scripts/python/archive/tmate_conn.py +44 -0
- machineconfig/scripts/python/archive/tmate_start.py +48 -0
- machineconfig/scripts/python/choose_wezterm_theme.py +23 -4
- machineconfig/scripts/python/cloud_copy.py +131 -29
- machineconfig/scripts/python/cloud_manager.py +55 -2
- machineconfig/scripts/python/cloud_mount.py +43 -4
- machineconfig/scripts/python/cloud_repo_sync.py +114 -103
- machineconfig/scripts/python/cloud_sync.py +36 -220
- machineconfig/scripts/python/croshell.py +102 -32
- machineconfig/scripts/python/devops.py +143 -42
- machineconfig/scripts/python/devops_add_identity.py +112 -9
- machineconfig/scripts/python/devops_add_ssh_key.py +170 -15
- machineconfig/scripts/python/devops_backup_retrieve.py +132 -14
- machineconfig/scripts/python/devops_devapps_install.py +33 -11
- machineconfig/scripts/python/devops_update_repos.py +36 -29
- machineconfig/scripts/python/dotfile.py +8 -3
- machineconfig/scripts/python/fire_jobs.py +145 -289
- machineconfig/scripts/python/ftpx.py +76 -18
- machineconfig/scripts/python/get_zellij_cmd.py +14 -0
- machineconfig/scripts/python/gh_models.py +72 -25
- machineconfig/scripts/python/helpers/__init__.py +0 -0
- machineconfig/scripts/python/helpers/__pycache__/__init__.cpython-311.pyc +0 -0
- machineconfig/scripts/python/helpers/__pycache__/cloud_helpers.cpython-311.pyc +0 -0
- machineconfig/scripts/python/helpers/__pycache__/helpers2.cpython-311.pyc +0 -0
- machineconfig/scripts/python/helpers/__pycache__/helpers4.cpython-311.pyc +0 -0
- machineconfig/scripts/python/helpers/cloud_helpers.py +134 -0
- machineconfig/scripts/python/helpers/helpers2.py +149 -0
- machineconfig/scripts/python/helpers/helpers4.py +178 -0
- machineconfig/scripts/python/helpers/helpers5.py +50 -0
- machineconfig/scripts/python/helpers/repo_sync_helpers.py +126 -0
- machineconfig/scripts/python/mount_nfs.py +46 -15
- machineconfig/scripts/python/mount_nw_drive.py +22 -10
- machineconfig/scripts/python/mount_ssh.py +28 -12
- machineconfig/scripts/python/onetimeshare.py +23 -15
- machineconfig/scripts/python/pomodoro.py +38 -24
- machineconfig/scripts/python/repos.py +29 -32
- machineconfig/scripts/python/scheduler.py +19 -18
- machineconfig/scripts/python/snapshot.py +14 -6
- machineconfig/scripts/python/start_slidev.py +24 -32
- machineconfig/scripts/python/start_terminals.py +23 -10
- machineconfig/scripts/python/viewer.py +53 -0
- machineconfig/scripts/python/viewer_template.py +140 -0
- machineconfig/scripts/python/wifi_conn.py +20 -12
- machineconfig/scripts/python/wsl_windows_transfer.py +18 -10
- machineconfig/scripts/windows/activate_ve.ps1 +54 -0
- machineconfig/scripts/windows/archive/gource2vid.ps1 +14 -0
- machineconfig/scripts/windows/archive/im2text.ps1 +27 -0
- machineconfig/scripts/windows/archive/secure_pull.ps1 +46 -0
- machineconfig/scripts/windows/archive/secure_push.ps1 +85 -0
- machineconfig/scripts/windows/archive/tmate_conn.ps1 +7 -0
- machineconfig/scripts/windows/checkout_version.ps1 +6 -0
- machineconfig/scripts/windows/choose_wezterm_theme.ps1 +20 -0
- machineconfig/scripts/windows/cloud_copy.ps1 +17 -0
- machineconfig/scripts/windows/cloud_manager.ps1 +8 -0
- machineconfig/scripts/windows/cloud_mount.ps1 +25 -0
- machineconfig/scripts/windows/cloud_repo_sync.ps1 +8 -0
- machineconfig/scripts/windows/cloud_sync.ps1 +21 -0
- machineconfig/scripts/windows/croshell.ps1 +40 -0
- machineconfig/scripts/windows/devops.ps1 +32 -0
- machineconfig/scripts/windows/dotfile.ps1 +9 -0
- machineconfig/scripts/windows/fire.ps1 +33 -0
- machineconfig/scripts/windows/ftpx.ps1 +5 -0
- machineconfig/scripts/windows/fzfb.ps1 +3 -0
- machineconfig/scripts/windows/fzfg.ps1 +2 -0
- machineconfig/scripts/windows/fzfrga.bat +20 -0
- machineconfig/scripts/windows/gpt.ps1 +23 -0
- machineconfig/scripts/windows/grep.ps1 +2 -0
- machineconfig/scripts/windows/kill_process.ps1 +8 -0
- machineconfig/scripts/windows/mount_nfs.ps1 +44 -0
- machineconfig/scripts/windows/mount_nw.ps1 +9 -0
- machineconfig/scripts/windows/mount_smb.ps1 +2 -0
- machineconfig/scripts/windows/mount_ssh.ps1 +17 -0
- machineconfig/scripts/windows/nano.ps1 +3 -0
- machineconfig/scripts/windows/neofetch.ps1 +2 -0
- machineconfig/scripts/windows/pomodoro.ps1 +8 -0
- machineconfig/scripts/windows/py2exe.ps1 +12 -0
- machineconfig/scripts/windows/reload_path.ps1 +3 -0
- machineconfig/scripts/windows/repos.ps1 +27 -0
- machineconfig/scripts/windows/scheduler.ps1 +6 -0
- machineconfig/scripts/windows/share_cloud.cmd +34 -0
- machineconfig/scripts/windows/share_nfs.ps1 +0 -0
- machineconfig/scripts/windows/share_smb.ps1 +22 -0
- machineconfig/scripts/windows/snapshot.ps1 +5 -0
- machineconfig/scripts/windows/start_slidev.ps1 +21 -0
- machineconfig/scripts/windows/start_terminals.ps1 +22 -0
- machineconfig/scripts/windows/unlock_bitlocker.ps1 +10 -0
- machineconfig/scripts/windows/utils/op_script_delete.ps1 +7 -0
- machineconfig/scripts/windows/wifi_conn.ps1 +7 -0
- machineconfig/scripts/windows/wsl_rdp_windows_port_forwarding.ps1 +46 -0
- machineconfig/scripts/windows/wsl_ssh_windows_port_forwarding.ps1 +76 -0
- machineconfig/scripts/windows/wsl_windows_transfer.ps1 +7 -0
- machineconfig/settings/__pycache__/__init__.cpython-311.pyc +0 -0
- machineconfig/settings/broot/br.sh +51 -0
- machineconfig/settings/broot/brootcd.ps1 +32 -0
- machineconfig/settings/broot/conf.toml +5 -0
- machineconfig/settings/glow/glow.yml +11 -0
- machineconfig/settings/gromit-mpx/gromit-mpx.cfg +34 -0
- machineconfig/settings/helix/config.toml +27 -0
- machineconfig/settings/helix/languages.toml +22 -0
- machineconfig/settings/keras/keras.json +6 -0
- machineconfig/settings/keyboard/espanso/config/default.yml +45 -0
- machineconfig/settings/keyboard/espanso/match/base.yml +57 -0
- machineconfig/settings/keyboard/kanata/kanata.kbd +0 -0
- machineconfig/settings/lf/linux/autocall/delete.sh +0 -0
- machineconfig/settings/lf/linux/autocall/on-cd.sh +0 -0
- machineconfig/settings/lf/linux/autocall/on-quit.sh +0 -0
- machineconfig/settings/lf/linux/autocall/open.sh +0 -0
- machineconfig/settings/lf/linux/autocall/paste.sh +0 -0
- machineconfig/settings/lf/linux/autocall/pre-cd.sh +0 -0
- machineconfig/settings/lf/linux/autocall/rename.sh +0 -0
- machineconfig/settings/lf/linux/colors +196 -0
- machineconfig/settings/lf/linux/exe/cleaner.sh +7 -0
- machineconfig/settings/lf/linux/exe/fzf_nano.sh +16 -0
- machineconfig/settings/lf/linux/exe/leftpane_previewer.sh +5 -0
- machineconfig/settings/lf/linux/exe/lfcd.sh +32 -0
- machineconfig/settings/lf/linux/exe/previewer.sh +37 -0
- machineconfig/settings/lf/linux/exe/previewer_archive.sh +155 -0
- machineconfig/settings/lf/linux/icons +357 -0
- machineconfig/settings/lf/linux/lfrc +226 -0
- machineconfig/settings/lf/windows/autocall/delete.ps1 +0 -0
- machineconfig/settings/lf/windows/autocall/on-cd.ps1 +0 -0
- machineconfig/settings/lf/windows/autocall/on-quit.ps1 +0 -0
- machineconfig/settings/lf/windows/autocall/open.ps1 +0 -0
- machineconfig/settings/lf/windows/autocall/paste.ps1 +0 -0
- machineconfig/settings/lf/windows/autocall/pre-cd.ps1 +0 -0
- machineconfig/settings/lf/windows/autocall/rename.ps1 +0 -0
- machineconfig/settings/lf/windows/cd_tere.ps1 +4 -0
- machineconfig/settings/lf/windows/cd_zoxide.ps1 +4 -0
- machineconfig/settings/lf/windows/cd_zoxide2.ps1 +4 -0
- machineconfig/settings/lf/windows/colors +159 -0
- machineconfig/settings/lf/windows/fzf_edit.ps1 +6 -0
- machineconfig/settings/lf/windows/icons +357 -0
- machineconfig/settings/lf/windows/leftpane_previewer.ps1 +3 -0
- machineconfig/settings/lf/windows/lfcd.ps1 +35 -0
- machineconfig/settings/lf/windows/lfrc +133 -0
- machineconfig/settings/lf/windows/mkdir.ps1 +3 -0
- machineconfig/settings/lf/windows/mkfile.ps1 +3 -0
- machineconfig/settings/lf/windows/previewer.ps1 +7 -0
- machineconfig/settings/lf/windows/tst.ps1 +1 -0
- machineconfig/settings/linters/.flake8 +24 -0
- machineconfig/settings/linters/.mypy.ini +29 -0
- machineconfig/settings/linters/.pylintrc +91 -0
- machineconfig/settings/linters/.ruff.toml +77 -0
- machineconfig/settings/linters/.ruff_cache/.gitignore +2 -0
- machineconfig/settings/linters/.ruff_cache/CACHEDIR.TAG +1 -0
- machineconfig/settings/lvim/linux/config.lua +0 -0
- machineconfig/settings/lvim/windows/archive/config_additional.lua +39 -0
- machineconfig/settings/lvim/windows/lua/user/custom_config.lua +13 -0
- machineconfig/settings/mprocs/windows/mprocs.yaml +55 -0
- machineconfig/settings/mprocs/windows/other +12 -0
- machineconfig/settings/pistol/pistol.conf +8 -0
- machineconfig/settings/presenterm/config.yaml +76 -0
- machineconfig/settings/procs/.procs.toml +142 -0
- machineconfig/settings/pudb/pudb.cfg +25 -0
- machineconfig/settings/rofi/config.rasi +4 -0
- machineconfig/settings/rofi/config_default.rasi +147 -0
- machineconfig/settings/shells/alacritty/alacritty.toml +40 -0
- machineconfig/settings/shells/alacritty/alacritty.yml +0 -0
- machineconfig/settings/shells/bash/.inputrc +3 -0
- machineconfig/settings/shells/bash/init.sh +66 -0
- machineconfig/settings/shells/hyper/.hyper.js +201 -0
- machineconfig/settings/shells/ipy/profiles/default/__init__.py +0 -0
- machineconfig/settings/shells/ipy/profiles/default/__pycache__/__init__.cpython-311.pyc +0 -0
- machineconfig/settings/shells/ipy/profiles/default/startup/__init__.py +0 -0
- machineconfig/settings/shells/ipy/profiles/default/startup/__pycache__/__init__.cpython-311.pyc +0 -0
- machineconfig/settings/shells/ipy/profiles/default/startup/__pycache__/playext.cpython-311.pyc +0 -0
- machineconfig/settings/shells/ipy/profiles/default/startup/playext.py +83 -0
- machineconfig/settings/shells/kitty/kitty.conf +1476 -0
- machineconfig/settings/shells/nushell/config.nu +36 -0
- machineconfig/settings/shells/nushell/env.nu +13 -0
- machineconfig/settings/shells/pwsh/init.ps1 +88 -0
- machineconfig/settings/shells/pwsh/profile.ps1 +0 -0
- machineconfig/settings/shells/starship/starship.toml +58 -0
- machineconfig/settings/shells/vtm/settings.xml +297 -0
- machineconfig/settings/shells/wezterm/wezterm.lua +193 -0
- machineconfig/settings/shells/wt/settings.json +526 -0
- machineconfig/settings/streamlit/config.toml +22 -0
- machineconfig/settings/svim/linux/init.toml +48 -0
- machineconfig/settings/svim/windows/init.toml +48 -0
- machineconfig/settings/tere/terecd.ps1 +8 -0
- machineconfig/settings/tere/terecd.sh +8 -0
- machineconfig/settings/tmux/.tmate.conf +3 -0
- machineconfig/settings/tmux/.tmux.conf +6 -0
- machineconfig/settings/wsl/.wslconfig +35 -0
- machineconfig/settings/yazi/keymap.toml +0 -0
- machineconfig/settings/yazi/theme.toml +0 -0
- machineconfig/settings/yazi/yazi.toml +4 -0
- machineconfig/settings/zed/settings.json +35 -0
- machineconfig/settings/zellij/commands/monitor +9 -0
- machineconfig/settings/zellij/commands/standard_panes +33 -0
- machineconfig/settings/zellij/config.kdl +295 -0
- machineconfig/settings/zellij/config.orig.kdl +295 -0
- machineconfig/settings/zellij/layouts/hist +13 -0
- machineconfig/settings/zellij/layouts/panes.kdl +20 -0
- machineconfig/settings/zellij/layouts/st.kdl +21 -0
- machineconfig/settings/zellij/layouts/st2.kdl +59 -0
- machineconfig/settings/zellij/layouts/stacked_panes.kdl +11 -0
- machineconfig/setup_linux/nix/cli_installation.sh +166 -0
- machineconfig/setup_linux/others/mint_keyboard_shortcuts.sh +30 -0
- machineconfig/setup_linux/others/openssh-server_add_pub_key.sh +60 -0
- machineconfig/setup_linux/web_shortcuts/all.sh +53 -0
- machineconfig/setup_linux/web_shortcuts/ascii_art.sh +100 -0
- machineconfig/setup_linux/web_shortcuts/croshell.sh +66 -0
- machineconfig/setup_linux/web_shortcuts/interactive.sh +241 -0
- machineconfig/setup_linux/web_shortcuts/ssh.sh +64 -0
- machineconfig/setup_linux/web_shortcuts/update_system.sh +55 -0
- machineconfig/setup_windows/others/docker.ps1 +7 -0
- machineconfig/setup_windows/others/obs.ps1 +4 -0
- machineconfig/setup_windows/web_shortcuts/all.ps1 +18 -0
- machineconfig/setup_windows/web_shortcuts/ascii_art.ps1 +36 -0
- machineconfig/setup_windows/web_shortcuts/croshell.ps1 +16 -0
- machineconfig/setup_windows/web_shortcuts/interactive.ps1 +200 -0
- machineconfig/setup_windows/web_shortcuts/ssh.ps1 +11 -0
- machineconfig/setup_windows/wt_and_pwsh/install_fonts.ps1 +27 -0
- machineconfig/setup_windows/wt_and_pwsh/set_pwsh_theme.py +12 -2
- machineconfig/setup_windows/wt_and_pwsh/set_wt_settings.py +45 -9
- machineconfig/utils/ai/__init__.py +0 -0
- machineconfig/utils/ai/browser_user_wrapper.py +51 -0
- machineconfig/utils/ai/generate_file_checklist.py +74 -0
- machineconfig/utils/ai/url2md.py +75 -0
- machineconfig/utils/installer.py +101 -253
- machineconfig/utils/installer_utils/__init__.py +0 -0
- machineconfig/utils/installer_utils/installer_abc.py +100 -0
- machineconfig/utils/installer_utils/installer_class.py +253 -0
- machineconfig/utils/procs.py +69 -16
- machineconfig/utils/scheduling.py +47 -13
- machineconfig/utils/utils.py +39 -371
- machineconfig/utils/utils_code.py +82 -0
- machineconfig/utils/utils_links.py +88 -0
- machineconfig/utils/utils_options.py +163 -0
- machineconfig/utils/utils_path.py +151 -0
- machineconfig/utils/ve.py +37 -225
- machineconfig/utils/ve_utils/ve1.py +111 -0
- machineconfig/utils/ve_utils/ve2.py +142 -0
- {machineconfig-1.92.dist-info → machineconfig-1.94.dist-info}/METADATA +25 -21
- machineconfig-1.94.dist-info/RECORD +710 -0
- {machineconfig-1.92.dist-info → machineconfig-1.94.dist-info}/WHEEL +1 -1
- machineconfig-1.92.dist-info/LICENSE +0 -201
- machineconfig-1.92.dist-info/RECORD +0 -70
- {machineconfig-1.92.dist-info → machineconfig-1.94.dist-info}/top_level.txt +0 -0
|
@@ -1,118 +1,219 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
"""devops
|
|
1
|
+
"""devops with emojis
|
|
4
2
|
"""
|
|
5
3
|
|
|
6
|
-
from machineconfig.utils.utils import display_options, PROGRAM_PATH,
|
|
4
|
+
from machineconfig.utils.utils import display_options, PROGRAM_PATH, write_shell_script_to_default_program_path
|
|
7
5
|
from platform import system
|
|
8
6
|
from enum import Enum
|
|
9
7
|
from typing import Optional
|
|
10
8
|
|
|
11
9
|
|
|
12
10
|
class Options(Enum):
|
|
13
|
-
update = 'UPDATE essential repos'
|
|
14
|
-
cli_install = 'DEVAPPS install'
|
|
15
|
-
ve = 'VE install'
|
|
16
|
-
sym_path_shell = 'SYMLINKS, PATH & SHELL PROFILE'
|
|
17
|
-
sym_new = 'SYMLINKS new'
|
|
18
|
-
ssh_add_pubkey = 'SSH add pub key to this machine'
|
|
19
|
-
ssh_add_id = 'SSH add identity (private key) to this machine'
|
|
20
|
-
ssh_use_pair = 'SSH use key pair to connect two machines'
|
|
21
|
-
ssh_setup = 'SSH setup'
|
|
22
|
-
ssh_setup_wsl = 'SSH setup wsl'
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
11
|
+
update = '🔄 UPDATE essential repos'
|
|
12
|
+
cli_install = '⚙️ DEVAPPS install'
|
|
13
|
+
ve = '🐍 VE install'
|
|
14
|
+
sym_path_shell = '🔗 SYMLINKS, PATH & SHELL PROFILE'
|
|
15
|
+
sym_new = '🆕 SYMLINKS new'
|
|
16
|
+
ssh_add_pubkey = '🔑 SSH add pub key to this machine'
|
|
17
|
+
ssh_add_id = '🗝️ SSH add identity (private key) to this machine'
|
|
18
|
+
ssh_use_pair = '🔐 SSH use key pair to connect two machines'
|
|
19
|
+
ssh_setup = '📡 SSH setup'
|
|
20
|
+
ssh_setup_wsl = '🐧 SSH setup wsl'
|
|
21
|
+
dot_files_sync = '🔗 DOTFILES sync'
|
|
22
|
+
backup = '💾 BACKUP'
|
|
23
|
+
retreive = '📥 RETRIEVE'
|
|
24
|
+
scheduler = '⏰ SCHEDULER'
|
|
26
25
|
|
|
27
26
|
|
|
28
27
|
def args_parser():
|
|
28
|
+
print(f"""
|
|
29
|
+
╔{'═' * 70}╗
|
|
30
|
+
║ 🛠️ DevOps Tool Suite ║
|
|
31
|
+
╚{'═' * 70}╝
|
|
32
|
+
""")
|
|
33
|
+
|
|
29
34
|
import argparse
|
|
30
35
|
parser = argparse.ArgumentParser()
|
|
31
|
-
|
|
36
|
+
new_line = "\n\n"
|
|
37
|
+
parser.add_argument("-w", "--which", help=f"""which option to run\nChoose one of those:\n{new_line.join([f"{item.name}: {item.value}" for item in list(Options)])}""", type=str, default=None) # , choices=[op.value for op in Options]
|
|
32
38
|
args = parser.parse_args()
|
|
33
39
|
main(which=args.which)
|
|
34
40
|
|
|
35
41
|
|
|
36
42
|
def main(which: Optional[str] = None):
|
|
37
43
|
PROGRAM_PATH.delete(sure=True, verbose=False)
|
|
44
|
+
print(f"""
|
|
45
|
+
╭{'─' * 70}╮
|
|
46
|
+
│ 🚀 Initializing DevOps operation... │
|
|
47
|
+
╰{'─' * 70}╯
|
|
48
|
+
""")
|
|
49
|
+
|
|
38
50
|
options = [op.value for op in Options]
|
|
39
51
|
if which is None:
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
52
|
+
try:
|
|
53
|
+
choice_key = display_options(msg="", options=options, header="🛠️ DEVOPS", default=options[0])
|
|
54
|
+
except KeyboardInterrupt:
|
|
55
|
+
print(f"""
|
|
56
|
+
╔{'═' * 70}╗
|
|
57
|
+
║ ❌ Operation cancelled by user ║
|
|
58
|
+
╚{'═' * 70}╝
|
|
59
|
+
""")
|
|
60
|
+
return
|
|
43
61
|
else: choice_key = Options[which].value
|
|
44
62
|
|
|
63
|
+
print(f"""
|
|
64
|
+
╔{'═' * 70}╗
|
|
65
|
+
║ 🔧 SELECTED OPERATION ║
|
|
66
|
+
╠{'═' * 70}╣
|
|
67
|
+
║ {choice_key.center(68)} ║
|
|
68
|
+
╚{'═' * 70}╝
|
|
69
|
+
""")
|
|
70
|
+
|
|
45
71
|
if choice_key == Options.update.value:
|
|
72
|
+
print(f"""
|
|
73
|
+
╭{'─' * 70}╮
|
|
74
|
+
│ 🔄 Updating essential repositories... │
|
|
75
|
+
╰{'─' * 70}╯
|
|
76
|
+
""")
|
|
46
77
|
import machineconfig.scripts.python.devops_update_repos as helper
|
|
47
78
|
program = helper.main()
|
|
48
79
|
|
|
49
80
|
elif choice_key == Options.ve.value:
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
# program_lin = get_ve_install_script_from_specs(repo_root=P.cwd().to_str(), system="Linux")
|
|
58
|
-
# install_reply = input("Proceed with installation? (y/[n]): ") == "y"
|
|
59
|
-
# if not install_reply: program = ""
|
|
60
|
-
# else:
|
|
61
|
-
# if system() == "Windows": program = program_win
|
|
62
|
-
# elif system() == "Linux": program = program_lin
|
|
63
|
-
# else: raise ValueError(f"Unknown system: {system()}")
|
|
64
|
-
|
|
65
|
-
if not reply:
|
|
66
|
-
from machineconfig.utils.ve import get_ve_install_script
|
|
67
|
-
program = get_ve_install_script()
|
|
81
|
+
print(f"""
|
|
82
|
+
╭{'─' * 70}╮
|
|
83
|
+
│ 🐍 Setting up virtual environment... │
|
|
84
|
+
╰{'─' * 70}╯
|
|
85
|
+
""")
|
|
86
|
+
from machineconfig.utils.ve import get_ve_install_script
|
|
87
|
+
program = get_ve_install_script()
|
|
68
88
|
|
|
69
89
|
elif choice_key == Options.cli_install.value:
|
|
90
|
+
print(f"""
|
|
91
|
+
╭{'─' * 70}╮
|
|
92
|
+
│ ⚙️ Installing development applications... │
|
|
93
|
+
╰{'─' * 70}╯
|
|
94
|
+
""")
|
|
70
95
|
import machineconfig.scripts.python.devops_devapps_install as helper
|
|
71
96
|
program = helper.main()
|
|
72
97
|
|
|
73
98
|
elif choice_key == Options.sym_new.value:
|
|
99
|
+
print(f"""
|
|
100
|
+
╭{'─' * 70}╮
|
|
101
|
+
│ 🔄 Creating new symlinks... │
|
|
102
|
+
╰{'─' * 70}╯
|
|
103
|
+
""")
|
|
74
104
|
import machineconfig.jobs.python.python_ve_symlink as helper
|
|
75
105
|
program = helper.main()
|
|
76
106
|
|
|
77
107
|
elif choice_key == Options.sym_path_shell.value:
|
|
108
|
+
print(f"""
|
|
109
|
+
╭{'─' * 70}╮
|
|
110
|
+
│ 🔗 Setting up symlinks, PATH, and shell profile... │
|
|
111
|
+
╰{'─' * 70}╯
|
|
112
|
+
""")
|
|
78
113
|
import machineconfig.profile.create as helper
|
|
79
114
|
helper.main()
|
|
80
115
|
program = "echo '✅ done with symlinks'"
|
|
81
116
|
|
|
82
117
|
elif choice_key == Options.ssh_add_pubkey.value:
|
|
118
|
+
print(f"""
|
|
119
|
+
╭{'─' * 70}╮
|
|
120
|
+
│ 🔑 Adding public SSH key to this machine... │
|
|
121
|
+
╰{'─' * 70}╯
|
|
122
|
+
""")
|
|
83
123
|
import machineconfig.scripts.python.devops_add_ssh_key as helper
|
|
84
124
|
program = helper.main()
|
|
85
125
|
|
|
86
126
|
elif choice_key == Options.ssh_use_pair.value:
|
|
127
|
+
print(f"""
|
|
128
|
+
╔{'═' * 70}╗
|
|
129
|
+
║ ❌ ERROR: Not Implemented ║
|
|
130
|
+
║ SSH key pair connection feature is not yet implemented ║
|
|
131
|
+
╚{'═' * 70}╝
|
|
132
|
+
""")
|
|
87
133
|
raise NotImplementedError
|
|
88
134
|
|
|
89
135
|
elif choice_key == Options.ssh_add_id.value: # so that you can SSH directly withuot pointing to identity key.
|
|
136
|
+
print(f"""
|
|
137
|
+
╭{'─' * 70}╮
|
|
138
|
+
│ 🗝️ Adding SSH identity (private key) to this machine... │
|
|
139
|
+
╰{'─' * 70}╯
|
|
140
|
+
""")
|
|
90
141
|
import machineconfig.scripts.python.devops_add_identity as helper
|
|
91
142
|
program = helper.main()
|
|
92
143
|
|
|
93
144
|
elif choice_key == Options.ssh_setup.value:
|
|
145
|
+
print(f"""
|
|
146
|
+
╭{'─' * 70}╮
|
|
147
|
+
│ 📡 Setting up SSH... │
|
|
148
|
+
╰{'─' * 70}╯
|
|
149
|
+
""")
|
|
94
150
|
program_windows = """Invoke-WebRequest https://raw.githubusercontent.com/thisismygitrepo/machineconfig/main/src/machineconfig/setup_windows/openssh_all.ps1 | Invoke-Expression # https://github.com/thisismygitrepo.keys"""
|
|
95
151
|
program_linux = """curl https://raw.githubusercontent.com/thisismygitrepo/machineconfig/main/src/machineconfig/setup_linux/openssh_all.sh | sudo bash # https://github.com/thisismygitrepo.keys"""
|
|
96
152
|
program = program_linux if system() == "Linux" else program_windows
|
|
97
153
|
|
|
98
154
|
elif choice_key == Options.ssh_setup_wsl.value:
|
|
155
|
+
print(f"""
|
|
156
|
+
╭{'─' * 70}╮
|
|
157
|
+
│ 🐧 Setting up SSH for WSL... │
|
|
158
|
+
╰{'─' * 70}╯
|
|
159
|
+
""")
|
|
99
160
|
program = """curl https://raw.githubusercontent.com/thisismygitrepo/machineconfig/main/src/machineconfig/setup_linux/openssh_wsl.sh | sudo bash"""
|
|
100
161
|
|
|
101
162
|
elif choice_key == Options.backup.value:
|
|
163
|
+
print(f"""
|
|
164
|
+
╭{'─' * 70}╮
|
|
165
|
+
│ 💾 Creating backup... │
|
|
166
|
+
╰{'─' * 70}╯
|
|
167
|
+
""")
|
|
102
168
|
from machineconfig.scripts.python.devops_backup_retrieve import main_backup_retrieve as helper
|
|
103
169
|
program = helper(direction="BACKUP")
|
|
170
|
+
|
|
104
171
|
elif choice_key == Options.retreive.value:
|
|
172
|
+
print(f"""
|
|
173
|
+
╭{'─' * 70}╮
|
|
174
|
+
│ 📥 Retrieving backup... │
|
|
175
|
+
╰{'─' * 70}╯
|
|
176
|
+
""")
|
|
105
177
|
from machineconfig.scripts.python.devops_backup_retrieve import main_backup_retrieve as helper
|
|
106
178
|
program = helper(direction="RETRIEVE")
|
|
107
179
|
|
|
108
180
|
elif choice_key == Options.scheduler.value:
|
|
181
|
+
print(f"""
|
|
182
|
+
╭{'─' * 70}╮
|
|
183
|
+
│ ⏰ Setting up scheduler... │
|
|
184
|
+
╰{'─' * 70}╯
|
|
185
|
+
""")
|
|
109
186
|
from machineconfig.scripts.python.scheduler import main as helper
|
|
110
187
|
program = helper()
|
|
111
188
|
|
|
112
|
-
|
|
189
|
+
elif choice_key == Options.dot_files_sync.value:
|
|
190
|
+
print(f"""
|
|
191
|
+
╭{'─' * 70}╮
|
|
192
|
+
│ 🔗 Synchronizing dotfiles... │
|
|
193
|
+
╰{'─' * 70}╯
|
|
194
|
+
""")
|
|
195
|
+
from machineconfig.scripts.python.cloud_repo_sync import main as helper, P
|
|
196
|
+
program = helper(cloud=None, path=str(P.home() / "dotfiles"), pwd=None, action="ask")
|
|
197
|
+
|
|
198
|
+
else:
|
|
199
|
+
print(f"""
|
|
200
|
+
╔{'═' * 70}╗
|
|
201
|
+
║ ❌ ERROR: Invalid choice ║
|
|
202
|
+
║ The selected operation is not implemented: {choice_key}
|
|
203
|
+
╚{'═' * 70}╝
|
|
204
|
+
""")
|
|
205
|
+
raise ValueError(f"Unimplemented choice: {choice_key}")
|
|
206
|
+
|
|
113
207
|
if program:
|
|
114
|
-
|
|
115
|
-
|
|
208
|
+
print(f"""
|
|
209
|
+
╭{'─' * 70}╮
|
|
210
|
+
│ 📜 Preparing shell script... │
|
|
211
|
+
╰{'─' * 70}╯
|
|
212
|
+
""")
|
|
213
|
+
write_shell_script_to_default_program_path(program=program, display=True, preserve_cwd=True, desc="🔧 Shell script prepared by Python.", execute=True if which is not None else False)
|
|
214
|
+
else:
|
|
215
|
+
write_shell_script_to_default_program_path(program="echo '✨ Done.'", display=False, desc="🔧 Shell script prepared by Python.", preserve_cwd=True, execute=False)
|
|
216
|
+
|
|
116
217
|
|
|
117
218
|
|
|
118
219
|
if __name__ == "__main__":
|
|
@@ -1,25 +1,128 @@
|
|
|
1
|
-
|
|
2
1
|
"""ID
|
|
3
2
|
"""
|
|
4
3
|
|
|
5
4
|
|
|
6
5
|
# from platform import system
|
|
7
6
|
from crocodile.file_management import P
|
|
8
|
-
from machineconfig.utils.
|
|
7
|
+
from machineconfig.utils.utils_options import display_options
|
|
9
8
|
|
|
10
9
|
|
|
11
10
|
def main():
|
|
11
|
+
print(f"""
|
|
12
|
+
╔{'═' * 70}╗
|
|
13
|
+
║ 🔑 SSH IDENTITY MANAGEMENT ║
|
|
14
|
+
╚{'═' * 70}╝
|
|
15
|
+
""")
|
|
16
|
+
|
|
17
|
+
print(f"""
|
|
18
|
+
╭{'─' * 70}╮
|
|
19
|
+
│ 🔍 Searching for existing SSH keys... │
|
|
20
|
+
╰{'─' * 70}╯
|
|
21
|
+
""")
|
|
22
|
+
|
|
12
23
|
private_keys = P.home().joinpath(".ssh").search("*.pub").apply(lambda x: x.with_name(x.stem)).filter(lambda x: x.exists())
|
|
24
|
+
|
|
25
|
+
if private_keys:
|
|
26
|
+
print(f"""
|
|
27
|
+
╭{'─' * 70}╮
|
|
28
|
+
│ ✅ Found {len(private_keys)} SSH private key(s) │
|
|
29
|
+
╰{'─' * 70}╯
|
|
30
|
+
""")
|
|
31
|
+
else:
|
|
32
|
+
print(f"""
|
|
33
|
+
╭{'─' * 70}╮
|
|
34
|
+
│ ⚠️ No SSH private keys found │
|
|
35
|
+
╰{'─' * 70}╯
|
|
36
|
+
""")
|
|
37
|
+
|
|
13
38
|
choice = display_options(msg="Path to private key to be used when ssh'ing: ", options=private_keys.apply(str).list + ["I have the path to the key file", "I want to paste the key itself"])
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
39
|
+
|
|
40
|
+
if choice == "I have the path to the key file":
|
|
41
|
+
print(f"""
|
|
42
|
+
╭{'─' * 70}╮
|
|
43
|
+
│ 📄 Please enter the path to your private key file │
|
|
44
|
+
╰{'─' * 70}╯
|
|
45
|
+
""")
|
|
46
|
+
path_to_key = P(input("📋 Input path here: ")).expanduser().absolute()
|
|
47
|
+
print(f"""
|
|
48
|
+
╭{'─' * 70}╮
|
|
49
|
+
│ 📂 Using key from custom path: {path_to_key} │
|
|
50
|
+
╰{'─' * 70}╯
|
|
51
|
+
""")
|
|
52
|
+
|
|
53
|
+
elif choice == "I want to paste the key itself":
|
|
54
|
+
print(f"""
|
|
55
|
+
╭{'─' * 70}╮
|
|
56
|
+
│ 📋 Please provide a filename and paste the private key content │
|
|
57
|
+
╰{'─' * 70}╯
|
|
58
|
+
""")
|
|
59
|
+
key_filename = input("📝 File name (default: my_pasted_key): ") or "my_pasted_key"
|
|
60
|
+
path_to_key = P.home().joinpath(f".ssh/{key_filename}").write_text(input("🔑 Paste the private key here: "))
|
|
61
|
+
print(f"""
|
|
62
|
+
╭{'─' * 70}╮
|
|
63
|
+
│ 💾 Key saved to: {path_to_key} │
|
|
64
|
+
╰{'─' * 70}╯
|
|
65
|
+
""")
|
|
66
|
+
|
|
67
|
+
elif isinstance(choice, str):
|
|
68
|
+
path_to_key = P(choice)
|
|
69
|
+
print(f"""
|
|
70
|
+
╭{'─' * 70}╮
|
|
71
|
+
│ 🔑 Using selected key: {path_to_key.name} │
|
|
72
|
+
╰{'─' * 70}╯
|
|
73
|
+
""")
|
|
74
|
+
|
|
75
|
+
else:
|
|
76
|
+
print(f"""
|
|
77
|
+
╔{'═' * 70}╗
|
|
78
|
+
║ ❌ ERROR: Invalid choice ║
|
|
79
|
+
║ The selected option is not supported: {choice} ║
|
|
80
|
+
╚{'═' * 70}╝
|
|
81
|
+
""")
|
|
82
|
+
raise NotImplementedError(f"Choice {choice} not supported")
|
|
83
|
+
|
|
18
84
|
txt = f"IdentityFile {path_to_key.collapseuser().as_posix()}" # adds this id for all connections, no host specified.
|
|
19
85
|
config_path = P.home().joinpath(".ssh/config")
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
86
|
+
|
|
87
|
+
print(f"""
|
|
88
|
+
╭{'─' * 70}╮
|
|
89
|
+
│ 📝 Updating SSH configuration... │
|
|
90
|
+
╰{'─' * 70}╯
|
|
91
|
+
""")
|
|
92
|
+
|
|
93
|
+
if config_path.exists():
|
|
94
|
+
config_path.modify_text(txt_search=txt, txt_alt=txt, replace_line=True, notfound_append=True, prepend=True) # note that Identity line must come on top of config file otherwise it won't work, hence `prepend=True`
|
|
95
|
+
print(f"""
|
|
96
|
+
╭{'─' * 70}╮
|
|
97
|
+
│ ✏️ Updated existing SSH config file │
|
|
98
|
+
╰{'─' * 70}╯
|
|
99
|
+
""")
|
|
100
|
+
else:
|
|
101
|
+
config_path.write_text(txt)
|
|
102
|
+
print(f"""
|
|
103
|
+
╭{'─' * 70}╮
|
|
104
|
+
│ 📄 Created new SSH config file │
|
|
105
|
+
╰{'─' * 70}╯
|
|
106
|
+
""")
|
|
107
|
+
|
|
108
|
+
program = f"""echo '
|
|
109
|
+
╔{'═' * 70}╗
|
|
110
|
+
║ ✅ SSH IDENTITY CONFIGURATION COMPLETE ║
|
|
111
|
+
╠{'═' * 70}╣
|
|
112
|
+
║ Identity added to SSH config file ║
|
|
113
|
+
║ Consider reloading the SSH config to apply changes ║
|
|
114
|
+
╚{'═' * 70}╝
|
|
115
|
+
'"""
|
|
116
|
+
|
|
117
|
+
print(f"""
|
|
118
|
+
╔{'═' * 70}╗
|
|
119
|
+
║ 🎉 CONFIGURATION SUCCESSFUL ║
|
|
120
|
+
╠{'═' * 70}╣
|
|
121
|
+
║ Identity added: {path_to_key.name}
|
|
122
|
+
║ Config file: {config_path}
|
|
123
|
+
╚{'═' * 70}╝
|
|
124
|
+
""")
|
|
125
|
+
|
|
23
126
|
return program
|
|
24
127
|
|
|
25
128
|
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
"""SSH
|
|
3
2
|
"""
|
|
4
3
|
|
|
@@ -9,18 +8,68 @@ from crocodile.file_management import P
|
|
|
9
8
|
|
|
10
9
|
|
|
11
10
|
def get_add_ssh_key_script(path_to_key: P):
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
print(f"""
|
|
12
|
+
╔{'═' * 70}╗
|
|
13
|
+
║ 🔑 SSH KEY CONFIGURATION ║
|
|
14
|
+
╚{'═' * 70}╝
|
|
15
|
+
""")
|
|
16
|
+
|
|
17
|
+
if system() == "Linux":
|
|
18
|
+
authorized_keys = P.home().joinpath(".ssh/authorized_keys")
|
|
19
|
+
print(f"""
|
|
20
|
+
╭{'─' * 70}╮
|
|
21
|
+
│ 🐧 Linux SSH configuration │
|
|
22
|
+
│ 📄 Authorized keys file: {authorized_keys} │
|
|
23
|
+
╰{'─' * 70}╯
|
|
24
|
+
""")
|
|
25
|
+
elif system() == "Windows":
|
|
26
|
+
authorized_keys = P("C:/ProgramData/ssh/administrators_authorized_keys")
|
|
27
|
+
print(f"""
|
|
28
|
+
╭{'─' * 70}╮
|
|
29
|
+
│ 🪟 Windows SSH configuration │
|
|
30
|
+
│ 📄 Authorized keys file: {authorized_keys} │
|
|
31
|
+
╰{'─' * 70}╯
|
|
32
|
+
""")
|
|
33
|
+
else:
|
|
34
|
+
print(f"""
|
|
35
|
+
╔{'═' * 70}╗
|
|
36
|
+
║ ❌ ERROR: Unsupported operating system ║
|
|
37
|
+
║ Only Linux and Windows are supported ║
|
|
38
|
+
╚{'═' * 70}╝
|
|
39
|
+
""")
|
|
40
|
+
raise NotImplementedError
|
|
15
41
|
|
|
16
42
|
if authorized_keys.exists():
|
|
17
43
|
split = "\n"
|
|
18
|
-
|
|
19
|
-
|
|
44
|
+
keys_text = authorized_keys.read_text().split(split)
|
|
45
|
+
key_count = len([k for k in keys_text if k.strip()])
|
|
46
|
+
|
|
47
|
+
print(f"""
|
|
48
|
+
╭{'─' * 70}╮
|
|
49
|
+
│ 🔍 Current SSH authorization status │
|
|
50
|
+
│ ✅ Found {key_count} authorized key(s) │
|
|
51
|
+
╰{'─' * 70}╯
|
|
52
|
+
""")
|
|
53
|
+
|
|
20
54
|
if path_to_key.read_text() in authorized_keys.read_text():
|
|
21
|
-
print(f"
|
|
55
|
+
print(f"""
|
|
56
|
+
╔{'═' * 70}╗
|
|
57
|
+
║ ⚠️ Key already authorized ║
|
|
58
|
+
╠{'═' * 70}╣
|
|
59
|
+
║ Key: {path_to_key.name}
|
|
60
|
+
║ Status: Already present in authorized_keys file
|
|
61
|
+
║ No action required
|
|
62
|
+
╚{'═' * 70}╝
|
|
63
|
+
""")
|
|
22
64
|
program = ""
|
|
23
65
|
else:
|
|
66
|
+
print(f"""
|
|
67
|
+
╭{'─' * 70}╮
|
|
68
|
+
│ ➕ Adding new SSH key to authorized keys │
|
|
69
|
+
│ 🔑 Key file: {path_to_key.name} │
|
|
70
|
+
╰{'─' * 70}╯
|
|
71
|
+
""")
|
|
72
|
+
|
|
24
73
|
if system() == "Linux":
|
|
25
74
|
program = f"cat {path_to_key} >> ~/.ssh/authorized_keys"
|
|
26
75
|
elif system() == "Windows":
|
|
@@ -29,16 +78,35 @@ def get_add_ssh_key_script(path_to_key: P):
|
|
|
29
78
|
place_holder = r'$sshfile = "$env:USERPROFILE\.ssh\pubkey.pub"'
|
|
30
79
|
assert place_holder in program, f"This section performs string manipulation on the script {program_path} to add the key to the authorized_keys file. The script has changed and the string {place_holder} is not found."
|
|
31
80
|
program = program.replace(place_holder, f'$sshfile = "{path_to_key}"')
|
|
32
|
-
print(f"
|
|
81
|
+
print(f"""
|
|
82
|
+
╭{'─' * 70}╮
|
|
83
|
+
│ 🔧 Configured PowerShell script for Windows │
|
|
84
|
+
│ 📝 Replaced placeholder with actual key path │
|
|
85
|
+
╰{'─' * 70}╯
|
|
86
|
+
""")
|
|
33
87
|
else: raise NotImplementedError
|
|
34
88
|
else:
|
|
89
|
+
print(f"""
|
|
90
|
+
╭{'─' * 70}╮
|
|
91
|
+
│ 📝 Creating new authorized_keys file │
|
|
92
|
+
│ 🔑 Using key: {path_to_key.name} │
|
|
93
|
+
╰{'─' * 70}╯
|
|
94
|
+
""")
|
|
95
|
+
|
|
35
96
|
if system() == "Linux":
|
|
36
97
|
program = f"cat {path_to_key} > ~/.ssh/authorized_keys"
|
|
37
98
|
else:
|
|
38
|
-
|
|
39
|
-
program = P(
|
|
99
|
+
program_path = LIBRARY_ROOT.joinpath("setup_windows/openssh-server_add-sshkey.ps1")
|
|
100
|
+
program = P(program_path).expanduser().read_text().replace('$sshfile=""', f'$sshfile="{path_to_key}"')
|
|
101
|
+
print(f"""
|
|
102
|
+
╭{'─' * 70}╮
|
|
103
|
+
│ 🔧 Configured PowerShell script for Windows │
|
|
104
|
+
│ 📝 Set key path in script │
|
|
105
|
+
╰{'─' * 70}╯
|
|
106
|
+
""")
|
|
40
107
|
|
|
41
|
-
if system() == "Linux":
|
|
108
|
+
if system() == "Linux":
|
|
109
|
+
program += """
|
|
42
110
|
|
|
43
111
|
sudo chmod 700 ~/.ssh
|
|
44
112
|
sudo chmod 644 ~/.ssh/authorized_keys
|
|
@@ -47,22 +115,109 @@ sudo service ssh --full-restart
|
|
|
47
115
|
# from superuser.com/questions/215504/permissions-on-private-key-in-ssh-folder
|
|
48
116
|
|
|
49
117
|
"""
|
|
118
|
+
print(f"""
|
|
119
|
+
╭{'─' * 70}╮
|
|
120
|
+
│ 🔒 Setting proper SSH permissions and restarting service │
|
|
121
|
+
╰{'─' * 70}╯
|
|
122
|
+
""")
|
|
123
|
+
|
|
124
|
+
print(f"""
|
|
125
|
+
╔{'═' * 70}╗
|
|
126
|
+
║ ✅ SSH KEY CONFIGURATION PREPARED ║
|
|
127
|
+
╚{'═' * 70}╝
|
|
128
|
+
""")
|
|
129
|
+
|
|
50
130
|
return program
|
|
51
131
|
|
|
52
132
|
|
|
53
133
|
def main():
|
|
134
|
+
print(f"""
|
|
135
|
+
╔{'═' * 70}╗
|
|
136
|
+
║ 🔐 SSH PUBLIC KEY AUTHORIZATION TOOL ║
|
|
137
|
+
╚{'═' * 70}╝
|
|
138
|
+
""")
|
|
139
|
+
|
|
140
|
+
print(f"""
|
|
141
|
+
╭{'─' * 70}╮
|
|
142
|
+
│ 🔍 Searching for public keys... │
|
|
143
|
+
╰{'─' * 70}╯
|
|
144
|
+
""")
|
|
145
|
+
|
|
54
146
|
pub_keys = P.home().joinpath(".ssh").search("*.pub")
|
|
147
|
+
|
|
148
|
+
if pub_keys:
|
|
149
|
+
print(f"""
|
|
150
|
+
╭{'─' * 70}╮
|
|
151
|
+
│ ✅ Found {len(pub_keys)} public key(s) │
|
|
152
|
+
╰{'─' * 70}╯
|
|
153
|
+
""")
|
|
154
|
+
else:
|
|
155
|
+
print(f"""
|
|
156
|
+
╭{'─' * 70}╮
|
|
157
|
+
│ ⚠️ No public keys found │
|
|
158
|
+
╰{'─' * 70}╯
|
|
159
|
+
""")
|
|
160
|
+
|
|
55
161
|
all_keys_option = f"all pub keys available ({len(pub_keys)})"
|
|
56
162
|
i_have_path_option = "I have the path to the key file"
|
|
57
163
|
i_paste_option = "I want to paste the key itself"
|
|
164
|
+
|
|
58
165
|
res = display_options("Which public key to add? ", options=pub_keys.apply(str).list + [all_keys_option, i_have_path_option, i_paste_option])
|
|
59
166
|
assert isinstance(res, str), f"Got {res} of type {type(res)} instead of str."
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
167
|
+
|
|
168
|
+
if res == all_keys_option:
|
|
169
|
+
print(f"""
|
|
170
|
+
╭{'─' * 70}╮
|
|
171
|
+
│ 🔄 Processing all {len(pub_keys)} public keys... │
|
|
172
|
+
╰{'─' * 70}╯
|
|
173
|
+
""")
|
|
174
|
+
program = "\n\n\n".join(pub_keys.apply(get_add_ssh_key_script))
|
|
175
|
+
|
|
176
|
+
elif res == i_have_path_option:
|
|
177
|
+
print(f"""
|
|
178
|
+
╭{'─' * 70}╮
|
|
179
|
+
│ 📂 Please provide the path to your public key │
|
|
180
|
+
╰{'─' * 70}╯
|
|
181
|
+
""")
|
|
182
|
+
key_path = P(input("📋 Path: ")).expanduser().absolute()
|
|
183
|
+
print(f"""
|
|
184
|
+
╭{'─' * 70}╮
|
|
185
|
+
│ 📄 Using key from path: {key_path} │
|
|
186
|
+
╰{'─' * 70}╯
|
|
187
|
+
""")
|
|
188
|
+
program = get_add_ssh_key_script(key_path)
|
|
189
|
+
|
|
190
|
+
elif res == i_paste_option:
|
|
191
|
+
print(f"""
|
|
192
|
+
╭{'─' * 70}╮
|
|
193
|
+
│ 📋 Please provide a filename and paste the public key content │
|
|
194
|
+
╰{'─' * 70}╯
|
|
195
|
+
""")
|
|
196
|
+
key_filename = input("📝 File name (default: my_pasted_key.pub): ") or "my_pasted_key.pub"
|
|
197
|
+
key_path = P.home().joinpath(f".ssh/{key_filename}")
|
|
198
|
+
key_path.write_text(input("🔑 Paste the public key here: "))
|
|
199
|
+
print(f"""
|
|
200
|
+
╭{'─' * 70}╮
|
|
201
|
+
│ 💾 Key saved to: {key_path} │
|
|
202
|
+
╰{'─' * 70}╯
|
|
203
|
+
""")
|
|
204
|
+
program = get_add_ssh_key_script(key_path)
|
|
205
|
+
|
|
63
206
|
else:
|
|
207
|
+
print(f"""
|
|
208
|
+
╭{'─' * 70}╮
|
|
209
|
+
│ 🔑 Using selected key: {P(res).name} │
|
|
210
|
+
╰{'─' * 70}╯
|
|
211
|
+
""")
|
|
64
212
|
program = get_add_ssh_key_script(P(res))
|
|
65
|
-
|
|
213
|
+
|
|
214
|
+
print(f"""
|
|
215
|
+
╔{'═' * 70}╗
|
|
216
|
+
║ 🚀 SSH KEY AUTHORIZATION READY ║
|
|
217
|
+
║ Run the generated script to apply changes ║
|
|
218
|
+
╚{'═' * 70}╝
|
|
219
|
+
""")
|
|
220
|
+
|
|
66
221
|
return program
|
|
67
222
|
|
|
68
223
|
|