machineconfig 2.3__py3-none-any.whl → 2.4__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.

Files changed (50) hide show
  1. machineconfig/__init__.py +30 -0
  2. machineconfig/scripts/__pycache__/__init__.cpython-313.pyc +0 -0
  3. machineconfig/scripts/linux/checkout_versions +1 -7
  4. machineconfig/scripts/linux/choose_wezterm_theme +1 -7
  5. machineconfig/scripts/linux/cloud_copy +1 -8
  6. machineconfig/scripts/linux/cloud_manager +1 -7
  7. machineconfig/scripts/linux/cloud_mount +1 -23
  8. machineconfig/scripts/linux/cloud_repo_sync +1 -21
  9. machineconfig/scripts/linux/cloud_sync +1 -23
  10. machineconfig/scripts/linux/croshell +1 -23
  11. machineconfig/scripts/linux/devops +0 -21
  12. machineconfig/scripts/linux/fire +1 -27
  13. machineconfig/scripts/linux/fire_agents +1 -26
  14. machineconfig/scripts/linux/gh_models +1 -10
  15. machineconfig/scripts/linux/kill_process +1 -9
  16. machineconfig/scripts/linux/mcinit +1 -26
  17. machineconfig/scripts/linux/mount_nfs +1 -13
  18. machineconfig/scripts/linux/repos +1 -23
  19. machineconfig/scripts/linux/scheduler +1 -7
  20. machineconfig/scripts/linux/start_slidev +1 -22
  21. machineconfig/scripts/linux/start_terminals +1 -9
  22. machineconfig/scripts/linux/url2md +1 -9
  23. machineconfig/scripts/python/__pycache__/__init__.cpython-313.pyc +0 -0
  24. machineconfig/scripts/python/__pycache__/croshell.cpython-313.pyc +0 -0
  25. machineconfig/scripts/python/__pycache__/devops.cpython-313.pyc +0 -0
  26. machineconfig/scripts/python/__pycache__/devops_update_repos.cpython-313.pyc +0 -0
  27. machineconfig/scripts/python/cloud_mount.py +4 -2
  28. machineconfig/scripts/python/cloud_repo_sync.py +5 -2
  29. machineconfig/scripts/python/cloud_sync.py +4 -2
  30. machineconfig/scripts/python/croshell.py +5 -3
  31. machineconfig/scripts/python/devops.py +2 -2
  32. machineconfig/scripts/python/fire_jobs.py +10 -8
  33. machineconfig/scripts/python/mount_nfs.py +12 -8
  34. machineconfig/scripts/python/mount_nw_drive.py +6 -6
  35. machineconfig/scripts/python/mount_ssh.py +4 -2
  36. machineconfig/scripts/python/start_slidev.py +4 -2
  37. machineconfig/scripts/python/start_terminals.py +4 -2
  38. machineconfig/settings/__pycache__/__init__.cpython-313.pyc +0 -0
  39. machineconfig/settings/shells/ipy/profiles/default/__pycache__/__init__.cpython-313.pyc +0 -0
  40. machineconfig/settings/shells/ipy/profiles/default/startup/__pycache__/__init__.cpython-313.pyc +0 -0
  41. machineconfig/utils/code.py +5 -5
  42. machineconfig/utils/source_of_truth.py +2 -2
  43. {machineconfig-2.3.dist-info → machineconfig-2.4.dist-info}/METADATA +1 -1
  44. {machineconfig-2.3.dist-info → machineconfig-2.4.dist-info}/RECORD +47 -42
  45. machineconfig/scripts/linux/archive/tmate_conn +0 -12
  46. machineconfig/scripts/linux/archive/tmate_start +0 -12
  47. machineconfig/scripts/linux/archive/transfer_wsl_win +0 -5
  48. {machineconfig-2.3.dist-info → machineconfig-2.4.dist-info}/WHEEL +0 -0
  49. {machineconfig-2.3.dist-info → machineconfig-2.4.dist-info}/entry_points.txt +0 -0
  50. {machineconfig-2.3.dist-info → machineconfig-2.4.dist-info}/top_level.txt +0 -0
machineconfig/__init__.py CHANGED
@@ -0,0 +1,30 @@
1
+ from __future__ import annotations
2
+
3
+ from importlib.metadata import PackageNotFoundError, version as _pkg_version
4
+ from pathlib import Path
5
+ import tomllib
6
+
7
+
8
+ def _get_version() -> str:
9
+ name: str = "machineconfig"
10
+ try:
11
+ return _pkg_version(name)
12
+ except PackageNotFoundError:
13
+ pass
14
+
15
+ root: Path = Path(__file__).resolve().parents[2]
16
+ pyproject: Path = root / "pyproject.toml"
17
+ if pyproject.is_file():
18
+ with pyproject.open("rb") as f:
19
+ data: dict[str, object] = tomllib.load(f)
20
+ project = data.get("project")
21
+ if isinstance(project, dict):
22
+ version = project.get("version")
23
+ if isinstance(version, str) and version:
24
+ return version
25
+ return "0.0.0"
26
+
27
+
28
+ __version__: str = _get_version()
29
+ __all__: list[str] = ["__version__"]
30
+
@@ -1,8 +1,2 @@
1
1
  #!/usr/bin/env bash
2
-
3
- source ~/code/machineconfig/.venv/bin/activate
4
- python -m fire machineconfig.jobs.python.checkout_version main
5
- if [ -n "$VIRTUAL_ENV" ]; then
6
- deactivate || true
7
-
8
- fi
2
+ uv run --no-dev --project $HOME/code/machineconfig python -m fire machineconfig.jobs.python.checkout_version main
@@ -1,9 +1,3 @@
1
1
  #!/usr/bin/env bash
2
-
3
- source ~/code/machineconfig/.venv/bin/activate
4
- python -m fire machineconfig.scripts.python.choose_wezterm_theme main
2
+ uv run --no-dev --project $HOME/code/machineconfig python -m fire machineconfig.scripts.python.choose_wezterm_theme main
5
3
  source ~/.bashrc # reload the profile
6
- if [ -n "$VIRTUAL_ENV" ]; then
7
- deactivate || true
8
-
9
- fi
@@ -1,9 +1,2 @@
1
1
  #!/usr/bin/env bash
2
-
3
- source ~/code/machineconfig/.venv/bin/activate
4
-
5
- python -m machineconfig.scripts.python.cloud_copy "$@"
6
-
7
- if [ -n "$VIRTUAL_ENV" ]; then
8
- deactivate || true
9
- fi
2
+ uv run --no-dev --project $HOME/code/machineconfig python -m machineconfig.scripts.python.cloud_copy "$@"
@@ -1,8 +1,2 @@
1
1
  #!/usr/bin/env bash
2
-
3
- source ~/code/machineconfig/.venv/bin/activate
4
- python -i -m machineconfig.scripts.python.cloud_manager "$@"
5
-
6
- if [ -n "$VIRTUAL_ENV" ]; then
7
- deactivate || true
8
- fi
2
+ uv run --no-dev --project $HOME/code/machineconfig python -i -m machineconfig.scripts.python.cloud_manager "$@"
@@ -1,24 +1,2 @@
1
1
  #!/usr/bin/env bash
2
-
3
- # check below if VIRTUAL_ENV is set
4
- # if [ -z "$VIRTUAL_ENV" ]; then
5
- source ~/code/machineconfig/.venv/bin/activate
6
- # fi
7
-
8
- op_script=$HOME/tmp_results/shells/python_return_command.sh
9
- if [ -f "$op_script" ]; then
10
- rm $op_script
11
- fi
12
-
13
- python -m machineconfig.scripts.python.cloud_mount "$@"
14
-
15
- if [ -f "$op_script" ]; then
16
- chmod +x $op_script
17
- source $op_script
18
- fi
19
-
20
- # check below if VIRTUAL_ENV enviroment variable exist, then deactivate it, other wise skip
21
- if [ -n "$VIRTUAL_ENV" ]; then
22
- deactivate || true
23
-
24
- fi
2
+ uv run --no-dev --project $HOME/code/machineconfig python -m machineconfig.scripts.python.cloud_mount "$@"
@@ -1,22 +1,2 @@
1
1
  #!/usr/bin/env bash
2
-
3
- op_script=$HOME/tmp_results/shells/python_return_command.sh
4
- if [ -f "$op_script" ]; then
5
- rm $op_script
6
- fi
7
-
8
-
9
- source ~/code/machineconfig/.venv/bin/activate
10
-
11
- python $(dirname $(dirname $0))/python/cloud_repo_sync.py "$@"
12
-
13
- if [ -f "$op_script" ]; then
14
- chmod +x $op_script
15
- source $op_script
16
- fi
17
-
18
-
19
- if [ -n "$VIRTUAL_ENV" ]; then
20
- deactivate || true
21
-
22
- fi
2
+ uv run --no-dev --project $HOME/code/machineconfig python $(dirname $(dirname $0))/python/cloud_repo_sync.py "$@"
@@ -1,24 +1,2 @@
1
1
  #!/usr/bin/env bash
2
-
3
- # check below if VIRTUAL_ENV is set
4
- # if [ -z "$VIRTUAL_ENV" ]; then
5
- source ~/code/machineconfig/.venv/bin/activate
6
- # fi
7
-
8
- op_script=$HOME/tmp_results/shells/python_return_command.sh
9
- if [ -f "$op_script" ]; then
10
- rm $op_script
11
- fi
12
-
13
- python -m machineconfig.scripts.python.cloud_sync "$@"
14
-
15
- if [ -f "$op_script" ]; then
16
- chmod +x $op_script
17
- source $op_script
18
- fi
19
-
20
- # check below if VIRTUAL_ENV enviroment variable exist, then deactivate it, other wise skip
21
- if [ -n "$VIRTUAL_ENV" ]; then
22
- deactivate
23
- fi
24
-
2
+ uv run --no-dev --project $HOME/code/machineconfig python -m machineconfig.scripts.python.cloud_sync "$@"
@@ -1,24 +1,2 @@
1
1
  #!/usr/bin/env bash
2
-
3
-
4
- op_script=$HOME/tmp_results/shells/python_return_command.sh
5
- if [ -f "$op_script" ]; then
6
- rm $op_script
7
- fi
8
-
9
- source ~/code/machineconfig/.venv/bin/activate
10
-
11
- python -m machineconfig.scripts.python.croshell "$@"
12
- # python $(dirname $(dirname $0))/python/fire_jobs.py "$@"
13
-
14
-
15
- if [ -f "$op_script" ]; then
16
- chmod +x $op_script
17
- set -- # clear all positional parameters
18
- source $op_script # sourcing the script means the args passed to the this script are passed to the sourced script which cofuses the sources script as it contains activate_ve and it doesn't understand first.sh arguments.
19
- fi
20
-
21
- # check below if VIRTUAL_ENV enviroment variable exist, then deactivate it, otherwise skip
22
- if [ -n "$VIRTUAL_ENV" ]; then
23
- deactivate || true
24
- fi
2
+ uv run --no-dev --project $HOME/code/machineconfig python -m machineconfig.scripts.python.croshell "$@"
@@ -1,24 +1,3 @@
1
1
  #!/usr/bin/env bash
2
-
3
- op_script=$HOME/tmp_results/shells/python_return_command.sh
4
- if [ -f "$op_script" ]; then
5
- rm $op_script
6
- fi
7
-
8
- # source ~/code/machineconfig/.venv/bin/activate
9
- # python -m machineconfig.scripts.python.devops "$@"
10
- # echo "🔄 Running devops script..."
11
2
  uv run --no-dev --project $HOME/code/machineconfig python -m machineconfig.scripts.python.devops "$@"
12
3
  # uv run --with machineconfig python -m machineconfig.scripts.python.devops "$@"
13
-
14
-
15
- if [ -f "$op_script" ]; then
16
- chmod +x $op_script
17
- source $op_script
18
- fi
19
-
20
-
21
- # check below if VIRTUAL_ENV enviroment variable exist, then deactivate it, other wise skip
22
- if [ -n "$VIRTUAL_ENV" ]; then
23
- deactivate
24
- fi
@@ -1,28 +1,2 @@
1
1
  #!/usr/bin/env bash
2
-
3
- source ~/code/machineconfig/.venv/bin/activate
4
-
5
- # Generate random string of length 5
6
- random_str=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 10 | head -n 1)
7
- export op_script=$HOME/tmp_results/shells/$random_str/python_return_command.sh
8
- # op_script=$HOME/tmp_results/shells/$random_str/python_return_command.sh
9
-
10
- if [ -f "$op_script" ]; then
11
- rm $op_script
12
- fi
13
-
14
-
15
- python -m machineconfig.scripts.python.fire_jobs "$@"
16
-
17
-
18
- if [ -f "$op_script" ]; then
19
- echo "Running $op_script"
20
- chmod +x $op_script
21
- set -- # clear all positional parameters
22
- source $op_script # sourcing the script means the args passed to the this script are passed to the sourced script which cofuses the sources script as it contains activate_ve and it doesn't understand first.sh arguments.
23
- fi
24
-
25
-
26
- if [ -n "$VIRTUAL_ENV" ]; then
27
- deactivate || true
28
- fi
2
+ uv run --no-dev --project $HOME/code/machineconfig python -m machineconfig.scripts.python.fire_jobs "$@"
@@ -1,27 +1,2 @@
1
1
  #!/usr/bin/env bash
2
-
3
- source ~/code/machineconfig/.venv/bin/activate
4
-
5
-
6
- # Generate random string of length 5
7
- random_str=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 10 | head -n 1)
8
- export op_script=$HOME/tmp_results/shells/$random_str/python_return_command.sh
9
- # op_script=$HOME/tmp_results/shells/$random_str/python_return_command.sh
10
-
11
- if [ -f "$op_script" ]; then
12
- rm $op_script
13
- fi
14
-
15
- python -m machineconfig.scripts.python.fire_agents "$@"
16
-
17
- if [ -f "$op_script" ]; then
18
- echo "Running $op_script"
19
- chmod +x $op_script
20
- set -- # clear all positional parameters
21
- source $op_script # sourcing the script means the args passed to the this script are passed to the sourced script which cofuses the sources script as it and it doesn't understand first.sh arguments.
22
- fi
23
-
24
-
25
- if [ -n "$VIRTUAL_ENV" ]; then
26
- deactivate || true
27
- fi
2
+ uv run --no-dev --project $HOME/code/machineconfig python -m machineconfig.scripts.python.fire_agents "$@"
@@ -1,11 +1,2 @@
1
-
2
1
  #!/usr/bin/env bash
3
-
4
- source ~/code/machineconfig/.venv/bin/activate
5
-
6
- python -m machineconfig.scripts.python.gh_models "$@"
7
-
8
- if [ -n "$VIRTUAL_ENV" ]; then
9
- deactivate || true
10
-
11
- fi
2
+ uv run --no-dev --project $HOME/code/machineconfig python -m machineconfig.scripts.python.gh_models "$@"
@@ -1,10 +1,2 @@
1
1
  #!/usr/bin/env bash
2
-
3
- source ~/code/machineconfig/.venv/bin/activate
4
-
5
- python -c "from machineconfig.utils.procs import ProcessManager; ProcessManager().choose_and_kill()"
6
-
7
- if [ -n "$VIRTUAL_ENV" ]; then
8
- deactivate || true
9
-
10
- fi
2
+ uv run --no-dev --project $HOME/code/machineconfig python -c "from machineconfig.utils.procs import ProcessManager; ProcessManager().choose_and_kill()"
@@ -1,27 +1,2 @@
1
1
  #!/usr/bin/env bash
2
-
3
- . $HOME/code/machineconfig/.venv/bin/activate
4
-
5
- # Generate random string of length 5
6
- random_str=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 10 | head -n 1)
7
- export op_script=$HOME/tmp_results/shells/$random_str/python_return_command.sh
8
- # op_script=$HOME/tmp_results/shells/$random_str/python_return_command.sh
9
-
10
- if [ -f "$op_script" ]; then
11
- rm $op_script
12
- fi
13
-
14
-
15
- python -m machineconfig.scripts.python.ai.mcinit "$@"
16
-
17
- if [ -f "$op_script" ]; then
18
- echo "Running $op_script"
19
- chmod +x $op_script
20
- set -- # clear all positional parameters
21
- source $op_script # sourcing the script means the args passed to the this script are passed to the sourced script which cofuses the sources script as it contains activate_ve and it doesn't understand first.sh arguments.
22
- fi
23
-
24
-
25
- if [ -n "$VIRTUAL_ENV" ]; then
26
- deactivate || true
27
- fi
2
+ uv run --no-dev --project $HOME/code/machineconfig python -m machineconfig.scripts.python.ai.mcinit "$@"
@@ -5,19 +5,7 @@
5
5
  # mkdir ~/data/local
6
6
  # sudo mount -o nolock,noatime,nodiratime,proto=tcp,timeo=600,retrans=2,noac alex-p51s-5:/home/alex/data/local ./data/local
7
7
 
8
-
9
- op_script=$HOME/tmp_results/shells/python_return_command.sh
10
- if [ -f "$op_script" ]; then
11
- rm $op_script
12
- fi
13
- . activate_ve
14
- python -m machineconfig.scripts.python.mount_nfs
15
- #source $HOME/tmp_results/shells/python_return_command.sh
16
- if [ -f "$op_script" ]; then
17
- chmod +x $op_script
18
- source $op_script
19
- fi
20
-
8
+ uv run --no-dev --project $HOME/code/machineconfig python -m machineconfig.scripts.python.mount_nfs
21
9
  # Check if remote server is reachable and share folder exists
22
10
  if ! ping -c 1 "$remote_server" &> /dev/null; then
23
11
  echo "💥 Error: Remote server $remote_server is not reachable."
@@ -1,24 +1,2 @@
1
1
  #!/usr/bin/env bash
2
-
3
- # check below if VIRTUAL_ENV is set
4
- # if [ -z "$VIRTUAL_ENV" ]; then
5
- source ~/code/machineconfig/.venv/bin/activate
6
- # fi
7
-
8
- op_script=$HOME/tmp_results/shells/python_return_command.sh
9
- if [ -f "$op_script" ]; then
10
- rm $op_script
11
- fi
12
-
13
- python -m machineconfig.scripts.python.repos "$@"
14
-
15
- if [ -f "$op_script" ]; then
16
- chmod +x $op_script
17
- source $op_script
18
- fi
19
-
20
-
21
- # check below if VIRTUAL_ENV enviroment variable exist, then deactivate it, otherwise skip
22
- if [ -n "$VIRTUAL_ENV" ]; then
23
- deactivate
24
- fi
2
+ uv run --no-dev --project $HOME/code/machineconfig python -m machineconfig.scripts.python.repos "$@"
@@ -1,8 +1,2 @@
1
1
  #!/usr/bin/env bash
2
-
3
- source ~/code/machineconfig/.venv/bin/activate
4
- python -m machineconfig.scripts.python.scheduler "$@"
5
- if [ -n "$VIRTUAL_ENV" ]; then
6
- deactivate || true
7
-
8
- fi
2
+ uv run --no-dev --project $HOME/code/machineconfig python -m machineconfig.scripts.python.scheduler "$@"
@@ -1,23 +1,2 @@
1
1
  #!/usr/bin/env bash
2
-
3
- source ~/code/machineconfig/.venv/bin/activate
4
-
5
- op_script=$HOME/tmp_results/shells/python_return_command.sh
6
- if [ -f "$op_script" ]; then
7
- rm $op_script
8
- fi
9
-
10
-
11
- python -m machineconfig.scripts.python.start_slidev "$@"
12
-
13
- if [ -f "$op_script" ]; then
14
- chmod +x $op_script
15
- set -- # clear all positional parameters
16
- source $op_script # sourcing the script means the args passed to the this script are passed to the sourced script which cofuses the sources script as it contains activate_ve and it doesn't understand first.sh arguments.
17
- fi
18
-
19
-
20
- if [ -n "$VIRTUAL_ENV" ]; then
21
- deactivate || true
22
-
23
- fi
2
+ uv run --no-dev --project $HOME/code/machineconfig python -m machineconfig.scripts.python.start_slidev "$@"
@@ -1,12 +1,4 @@
1
1
  #!/usr/bin/env bash
2
2
 
3
- source ~/code/machineconfig/.venv/bin/activate
4
-
5
- python -m machineconfig.jobs.python.create_zellij_template
6
-
3
+ uv run --no-dev --project $HOME/code/machineconfig python -m machineconfig.jobs.python.create_zellij_template
7
4
  zellij --layout $HOME/tmp_results/tmp_files/templates/zellij_template.kdl
8
-
9
- if [ -n "$VIRTUAL_ENV" ]; then
10
- deactivate || true
11
-
12
- fi
@@ -1,10 +1,2 @@
1
1
  #!/usr/bin/env bash
2
-
3
- source ~/code/machineconfig/.venv/bin/activate
4
-
5
- python -m machineconfig.utils.ai.url2md "$@"
6
-
7
- if [ -n "$VIRTUAL_ENV" ]; then
8
- deactivate || true
9
-
10
- fi
2
+ uv run --no-dev --project $HOME/code/machineconfig python -m machineconfig.utils.ai.url2md "$@"
@@ -1,6 +1,6 @@
1
1
  """Cloud mount script"""
2
2
 
3
- from machineconfig.utils.source_of_truth import PROGRAM_PATH
3
+
4
4
  from machineconfig.utils.options import choose_one_option
5
5
  from machineconfig.utils.utils2 import read_ini
6
6
  from machineconfig.utils.path_reduced import PathExtended as PathExtended
@@ -144,7 +144,9 @@ zellij action move-focus up
144
144
  else:
145
145
  raise ValueError("unsupported platform")
146
146
  # print(f"running command: \n{txt}")
147
- PROGRAM_PATH.write_text(txt, encoding="utf-8")
147
+ # PROGRAM_PATH.write_text(txt, encoding="utf-8")
148
+ import subprocess
149
+ subprocess.run(txt, shell=True, check=True)
148
150
  # draw success box dynamically
149
151
  title1 = "✅ Cloud mount command prepared successfully"
150
152
  title2 = "🔄 Running mount process..."
@@ -7,7 +7,7 @@ from machineconfig.utils.terminal import Terminal
7
7
  from machineconfig.utils.utils2 import randstr, read_ini
8
8
 
9
9
  from machineconfig.scripts.python.helpers.repo_sync_helpers import fetch_dotfiles
10
- from machineconfig.utils.source_of_truth import CONFIG_PATH, DEFAULTS_PATH, PROGRAM_PATH
10
+ from machineconfig.utils.source_of_truth import CONFIG_PATH, DEFAULTS_PATH
11
11
  from machineconfig.utils.options import choose_one_option
12
12
  from machineconfig.utils.code import get_shell_file_executing_python_script, write_shell_script_to_file
13
13
  import platform
@@ -161,7 +161,10 @@ git commit -am "finished merging"
161
161
  program_content = program_4
162
162
  case _:
163
163
  raise ValueError(f"Unknown action: {action}")
164
- PROGRAM_PATH.write_text(program_content, encoding="utf-8")
164
+ # PROGRAM_PATH.write_text(program_content, encoding="utf-8")
165
+ import subprocess
166
+ subprocess.run(program_content, shell=True, check=True)
167
+
165
168
  return program_content
166
169
 
167
170
 
@@ -5,7 +5,7 @@ TODO: use typer or typed-argument-parser to parse args
5
5
  from machineconfig.scripts.python.helpers.helpers2 import parse_cloud_source_target
6
6
  from machineconfig.scripts.python.helpers.cloud_helpers import Args
7
7
  from machineconfig.scripts.python.cloud_mount import get_mprocs_mount_txt
8
- from machineconfig.utils.source_of_truth import PROGRAM_PATH
8
+
9
9
  import argparse
10
10
  from rich.console import Console
11
11
  from rich.panel import Panel
@@ -75,7 +75,9 @@ def args_parser():
75
75
  cmd_line = f"{rclone_cmd[:65]}..."
76
76
  console.print(Panel(f"{title}\n{cmd_line}", title="[bold blue]Command[/bold blue]", expand=False))
77
77
 
78
- PROGRAM_PATH.write_text(txt, encoding="utf-8")
78
+ # PROGRAM_PATH.write_text(txt, encoding="utf-8")
79
+ import subprocess
80
+ subprocess.run(txt, shell=True, check=True)
79
81
 
80
82
 
81
83
  if __name__ == "__main__":
@@ -7,7 +7,7 @@ croshell
7
7
  import argparse
8
8
  from machineconfig.utils.path_reduced import PathExtended as PathExtended
9
9
  from machineconfig.utils.utils2 import randstr
10
- from machineconfig.utils.source_of_truth import PROGRAM_PATH
10
+
11
11
  from machineconfig.utils.options import display_options
12
12
  from machineconfig.utils.ve import get_ve_activate_line
13
13
  from typing import Optional
@@ -204,11 +204,13 @@ print(f"🐊 Crocodile Shell | Running @ {Path.cwd()}")
204
204
  title = "🚀 LAUNCHING SCRIPT"
205
205
  text1 = f"📄 Script: {pyfile}"
206
206
  text2 = f"🔥 Command: {fire_line}"
207
- launch_message = f"{title} {PROGRAM_PATH}\n{text1}\n{text2}"
207
+ launch_message = f"{title} \n{text1}\n{text2}"
208
208
  console.print(Panel(Text(launch_message, justify="left"), expand=False, border_style="blue"))
209
209
 
210
- PROGRAM_PATH.write_text(data=final_program, encoding="utf-8")
210
+ # PROGRAM_PATH.write_text(data=final_program, encoding="utf-8")
211
211
  # (PROGRAM_PATH + ".py").write_text(str(pyfile), encoding='utf-8')
212
+ import subprocess
213
+ subprocess.run(final_program, shell=True, check=True)
212
214
 
213
215
  # if platform.system() == "Windows":
214
216
  # return subprocess.run([f"powershell", "-Command", res], shell=True, capture_output=False, text=True, check=True)
@@ -1,7 +1,7 @@
1
1
  """devops with emojis"""
2
2
 
3
3
  from machineconfig.utils.options import display_options
4
- from machineconfig.utils.source_of_truth import PROGRAM_PATH
4
+
5
5
  from machineconfig.utils.code import write_shell_script_to_default_program_path
6
6
  from platform import system
7
7
  from enum import Enum
@@ -75,7 +75,7 @@ def display_task_success(success: str) -> None:
75
75
  def main(which: Optional[str] = None):
76
76
  from machineconfig.utils.path_reduced import PathExtended
77
77
 
78
- PathExtended(PROGRAM_PATH).delete(sure=True, verbose=False)
78
+ # PathExtended(PROGRAM_PATH).delete(sure=True, verbose=False)
79
79
  console.print(Panel("🚀 Initializing DevOps operation...", width=BOX_WIDTH, border_style="blue"))
80
80
 
81
81
  options = [op.value for op in Options]
@@ -14,14 +14,14 @@ from machineconfig.scripts.python.helpers.helpers4 import get_import_module_code
14
14
  from machineconfig.utils.ve import get_repo_root, get_ve_activate_line, get_ve_path_and_ipython_profile
15
15
  from machineconfig.utils.options import display_options, choose_one_option
16
16
  from machineconfig.utils.path import match_file_name, sanitize_path
17
- from machineconfig.utils.source_of_truth import PROGRAM_PATH
17
+
18
18
  from machineconfig.utils.path_reduced import PathExtended as PathExtended
19
19
  from machineconfig.utils.io_save import save_toml
20
20
  from machineconfig.utils.utils2 import randstr, read_toml
21
21
  from machineconfig.scripts.python.fire_jobs_args_helper import get_args, FireJobArgs, extract_kwargs
22
22
  import platform
23
23
  from typing import Optional
24
- import os
24
+ # import os
25
25
 
26
26
 
27
27
  def main(args: FireJobArgs) -> None:
@@ -307,8 +307,8 @@ python -m machineconfig.cluster.templates.cli_click --file {choice_file} """
307
307
  raise NotImplementedError(f"Platform {platform.system()} not supported.")
308
308
  command = export_line + "\n" + command
309
309
 
310
- program_path = os.environ.get("op_script", None)
311
- program_path = PathExtended(program_path) if program_path is not None else PROGRAM_PATH
310
+ # program_path = os.environ.get("op_script", None)
311
+ # program_path = PathExtended(program_path) if program_path is not None else PROGRAM_PATH
312
312
  if args.loop:
313
313
  if platform.system() in ["Linux", "Darwin"]:
314
314
  command = command + "\nsleep 0.5"
@@ -318,10 +318,12 @@ python -m machineconfig.cluster.templates.cli_click --file {choice_file} """
318
318
  command = "$ErrorActionPreference = 'SilentlyContinue';\n" + command + "\nStart-Sleep -Seconds 0.5"
319
319
  else:
320
320
  raise NotImplementedError(f"Platform {platform.system()} not supported.")
321
- command = command + f"\n. {program_path}"
322
- console.print(Panel(Syntax(command, lexer="shell"), title=f"🔥 fire command @ {program_path}: "), style="bold red")
323
- program_path.parent.mkdir(parents=True, exist_ok=True)
324
- program_path.write_text(command, encoding="utf-8")
321
+ # command = command + f"\n. {program_path}"
322
+ console.print(Panel(Syntax(command, lexer="shell"), title=f"🔥 fire command @ {command}: "), style="bold red")
323
+ # program_path.parent.mkdir(parents=True, exist_ok=True)
324
+ # program_path.write_text(command, encoding="utf-8")
325
+ import subprocess
326
+ subprocess.run(command, shell=True, check=True)
325
327
 
326
328
 
327
329
  if __name__ == "__main__":
@@ -4,7 +4,7 @@ from machineconfig.utils.path_reduced import PathExtended as PathExtended
4
4
  from machineconfig.utils.ssh import SSH
5
5
  from machineconfig.utils.terminal import Terminal
6
6
  from machineconfig.utils.options import display_options, choose_ssh_host
7
- from machineconfig.utils.source_of_truth import PROGRAM_PATH
7
+
8
8
  import platform
9
9
 
10
10
 
@@ -42,12 +42,15 @@ def main():
42
42
  assert isinstance(local_mount_point, PathExtended), f"❌ local_mount_point must be a pathlib.Path. Got {type(local_mount_point)}"
43
43
  local_mount_point = PathExtended(local_mount_point).expanduser()
44
44
 
45
- PROGRAM_PATH.write_text(f"""
45
+ txt = f"""
46
46
  share_info={share_info}
47
47
  remote_server={remote_server}
48
48
  share_path={share_path}
49
49
  local_mount_point={local_mount_point}
50
- """)
50
+ """
51
+ # PROGRAM_PATH.write_text(txt)
52
+ import subprocess
53
+ subprocess.run(txt, shell=True, check=True)
51
54
 
52
55
  print("✅ Mount paths prepared successfully!\n")
53
56
 
@@ -55,18 +58,19 @@ local_mount_point={local_mount_point}
55
58
  print("\n🔍 Checking existing drives...")
56
59
  print(Terminal().run("Get-PSDrive -PSProvider 'FileSystem'", shell="powershell").op)
57
60
  driver_letter = input(r"🖥️ Choose driver letter (e.g., Z:\\) [Avoid already used ones]: ") or "Z:\\"
58
-
59
- PROGRAM_PATH.write_text(f"""
61
+ txt = f"""
60
62
  $server = "{remote_server}"
61
63
  $sharePath = "{share_path}"
62
64
  $driveLetter = "{driver_letter}"
63
- """)
64
-
65
+ """
66
+ # PROGRAM_PATH.write_text(txt)
67
+ import subprocess
68
+ subprocess.run(txt, shell=True, check=True)
65
69
  print("✅ Drive letter selected and configuration saved!\n")
66
70
 
67
71
  print("\n📄 Configuration File Content:")
68
72
  print("-" * 50)
69
- print(PROGRAM_PATH.read_text(encoding="utf-8"))
73
+ # print(PROGRAM_PATH.read_text(encoding="utf-8"))
70
74
  print("-" * 50 + "\n")
71
75
 
72
76
  print("🎉 NFS Mounting Process Completed Successfully!\n")
@@ -1,4 +1,4 @@
1
- from machineconfig.utils.source_of_truth import PROGRAM_PATH
1
+
2
2
  from pathlib import Path
3
3
  import platform
4
4
 
@@ -25,16 +25,16 @@ def main():
25
25
 
26
26
  if platform.system() in ["Linux", "Darwin"]:
27
27
  print("\n🔧 Saving configuration for Linux...")
28
- PROGRAM_PATH.write_text(
29
- f"""
28
+ txt = f"""
30
29
  drive_location='{drive_location}'
31
30
  mount_point='{mount_point}'
32
31
  username='{username}'
33
32
  password='{password}'
34
33
 
35
- """,
36
- encoding="utf-8",
37
- )
34
+ """
35
+ # PROGRAM_PATH.write_text(txt, encoding="utf-8",)
36
+ import subprocess
37
+ subprocess.run(txt, shell=True, check=True)
38
38
  print("✅ Configuration saved successfully!\n")
39
39
 
40
40
  elif platform.system() == "Windows":
@@ -4,7 +4,7 @@ from platform import system
4
4
  from machineconfig.utils.ssh import SSH
5
5
  from machineconfig.utils.terminal import Terminal
6
6
  from machineconfig.utils.path_reduced import PathExtended as PathExtended
7
- from machineconfig.utils.source_of_truth import PROGRAM_PATH
7
+
8
8
  from machineconfig.utils.options import choose_ssh_host
9
9
 
10
10
 
@@ -52,7 +52,9 @@ fusermount -u /mnt/dbhdd
52
52
  else:
53
53
  raise ValueError(f"❌ Not implemented for this system: {system()}")
54
54
 
55
- PROGRAM_PATH.write_text(txt, encoding="utf-8")
55
+ # PROGRAM_PATH.write_text(txt, encoding="utf-8")
56
+ import subprocess
57
+ subprocess.run(txt, shell=True, check=True)
56
58
  print("✅ Configuration saved successfully!\n")
57
59
 
58
60
  print("🎉 SSHFS Mounting Process Completed!\n")
@@ -2,7 +2,7 @@
2
2
  slidev
3
3
  """
4
4
 
5
- from machineconfig.utils.source_of_truth import CONFIG_PATH, PROGRAM_PATH
5
+ from machineconfig.utils.source_of_truth import CONFIG_PATH
6
6
  from machineconfig.utils.code import print_code
7
7
  from machineconfig.utils.path_reduced import PathExtended as PathExtended
8
8
  from machineconfig.utils.terminal import Terminal
@@ -101,7 +101,9 @@ def main() -> None:
101
101
  print(f" - http://{local_ip_v4}:{port}\n")
102
102
 
103
103
  program = "npm run dev slides.md -- --remote"
104
- PROGRAM_PATH.write_text(program, encoding="utf-8")
104
+ # PROGRAM_PATH.write_text(program, encoding="utf-8")
105
+ import subprocess
106
+ subprocess.run(program, shell=True, cwd=SLIDEV_REPO)
105
107
  print_code(code=program, lexer="bash", desc="Run the following command to start the presentation")
106
108
 
107
109
 
@@ -1,6 +1,6 @@
1
1
  """Script to start terminals on windows and wsl"""
2
2
 
3
- from machineconfig.utils.source_of_truth import PROGRAM_PATH
3
+
4
4
  from machineconfig.utils.options import display_options, get_ssh_hosts
5
5
  import platform
6
6
  from itertools import cycle
@@ -111,7 +111,9 @@ def main():
111
111
  print(cmd)
112
112
  print("-" * 50 + "\n")
113
113
 
114
- PROGRAM_PATH.write_text(cmd, encoding="utf-8")
114
+ # PROGRAM_PATH.write_text(cmd, encoding="utf-8")
115
+ import subprocess
116
+ subprocess.run(cmd, shell=True)
115
117
  print("✅ Command saved successfully!\n")
116
118
 
117
119
 
@@ -8,7 +8,7 @@ from rich.syntax import Syntax
8
8
  from machineconfig.utils.utils2 import randstr
9
9
  from machineconfig.utils.ve import get_ve_activate_line
10
10
  from machineconfig.utils.path_reduced import PathExtended as PathExtended
11
- from machineconfig.utils.source_of_truth import PROGRAM_PATH
11
+
12
12
 
13
13
 
14
14
  def get_shell_script_executing_python_file(python_file: str, func: Optional[str], ve_path: str, strict_execution: bool = True):
@@ -84,11 +84,11 @@ def write_shell_script_to_default_program_path(program: str, desc: str, preserve
84
84
  else:
85
85
  program = 'orig_path=$(cd -- "." && pwd)\n' + program + '\ncd "$orig_path" || exit'
86
86
  if display:
87
- print_code(code=program, lexer="shell", desc=desc, subtitle=str(PROGRAM_PATH))
88
- PROGRAM_PATH.parent.mkdir(parents=True, exist_ok=True)
89
- PROGRAM_PATH.write_text(program, encoding="utf-8")
87
+ print_code(code=program, lexer="shell", desc=desc, subtitle="PROGRAM")
88
+ # PROGRAM_PATH.parent.mkdir(parents=True, exist_ok=True)
89
+ # PROGRAM_PATH.write_text(program, encoding="utf-8")
90
90
  if execute:
91
- result = subprocess.run(f". {PROGRAM_PATH}", shell=True, capture_output=True, text=True)
91
+ result = subprocess.run(program, shell=True, capture_output=True, text=True)
92
92
  success = result.returncode == 0 and result.stderr == ""
93
93
  if not success:
94
94
  print("❌ 🛠️ EXECUTION | Shell script running failed")
@@ -3,12 +3,12 @@ Utils
3
3
  """
4
4
 
5
5
  import machineconfig
6
- import platform
6
+ # import platform
7
7
  from pathlib import Path
8
8
 
9
9
  LIBRARY_ROOT = Path(machineconfig.__file__).resolve().parent
10
10
  REPO_ROOT = LIBRARY_ROOT.parent.parent
11
- PROGRAM_PATH = Path(Path.home().joinpath("tmp_results", "shells", "python_return_command").__str__() + (".ps1" if platform.system() == "Windows" else ".sh"))
11
+ # PROGRAM_PATH = Path(Path.home().joinpath("tmp_results", "shells", "python_return_command").__str__() + (".ps1" if platform.system() == "Windows" else ".sh"))
12
12
  CONFIG_PATH = Path.home().joinpath(".config/machineconfig")
13
13
  DEFAULTS_PATH = Path.home().joinpath("dotfiles/machineconfig/defaults.ini")
14
14
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: machineconfig
3
- Version: 2.3
3
+ Version: 2.4
4
4
  Summary: Dotfiles management package
5
5
  Author-email: Alex Al-Saffar <programmer@usa.com>
6
6
  License: Apache 2.0
@@ -1,4 +1,4 @@
1
- machineconfig/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1
+ machineconfig/__init__.py,sha256=-tZH4o0r1HULXXzqvbpWsic_nRlrzZB-OngfXrqg7Vc,733
2
2
  machineconfig/logger.py,sha256=XLckvZ8cPDpC5v75ESP3YNTputIrDYuvoYisj0YZtGw,1415
3
3
  machineconfig/cluster/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  machineconfig/cluster/remote/cloud_manager.py,sha256=DCkA0XCOrhdBzPJ8M0_V1TuY8Mj7MW82iHr9NN3luxU,26037
@@ -118,58 +118,56 @@ machineconfig/profile/records/linux/apps_summary_report.md,sha256=l77oofA6Rliql0
118
118
  machineconfig/profile/records/windows/apps_summary_report.csv,sha256=nN5BoACBqXgKNczm2t5KaCLdDnxFCIscX8iRkWBm0a4,47
119
119
  machineconfig/profile/records/windows/apps_summary_report.md,sha256=O5hmAcpObaLmOjYLvHg9kkPJryqFwFaP8OsmfPwfR1o,137
120
120
  machineconfig/scripts/__init__.py,sha256=v0cMjnaIo39C3ltLiTf1S0fCTMAqWtEU7zrVenUj4PQ,71
121
+ machineconfig/scripts/__pycache__/__init__.cpython-313.pyc,sha256=CeuCbS3dXPoxqWgpfgFFM97BtcXpCY4rGXqqxj9E1FY,244
121
122
  machineconfig/scripts/cloud/init.sh,sha256=yNsseCLMceO50Eg72ra6_NIJCxkGZmpmos1EXe-mvzY,4649
122
- machineconfig/scripts/linux/checkout_versions,sha256=0W-Px2qAiswg8IElABV6awE-EHPzXOFcCxO1SBd8Rj4,187
123
- machineconfig/scripts/linux/choose_wezterm_theme,sha256=Pn679w5en-_9NWD7PnGwB3EwyWA6cm28G6mGdrjNACM,233
124
- machineconfig/scripts/linux/cloud_copy,sha256=H_IpiexwCO_NsCOf6_EX0q674qlK4evB65NEgb93ghU,180
125
- machineconfig/scripts/linux/cloud_manager,sha256=1TfYXstwm2AWUwRdtW4x1DE-eacgAOIUAfDuMOFToKU,185
126
- machineconfig/scripts/linux/cloud_mount,sha256=gDp1OMnzJMoyrlpdSYytPz5kK8C27ummmxGBsaTnmDs,532
127
- machineconfig/scripts/linux/cloud_repo_sync,sha256=3Aqj8OUHlXAcch14q-3dYk0YxPK5VfCqlukqBqtS9rQ,375
128
- machineconfig/scripts/linux/cloud_sync,sha256=XZTIRkvM5E8HFoX0mXCXQCpsgIlDVHJMFgshFq9zegE,523
129
- machineconfig/scripts/linux/croshell,sha256=WsRJE7k2AKbiXTKmk81ZgllwgCAvEQD_I62cDkx6mhc,761
130
- machineconfig/scripts/linux/devops,sha256=FD-VjArFRlzqmEk8DMcYeH-Yq92F6dDoLSDL6RYqNps,671
131
- machineconfig/scripts/linux/fire,sha256=XSP5lmcDHWmWO8E62ztgsCPopJA1zOy9N_6zgMfWP84,849
132
- machineconfig/scripts/linux/fire_agents,sha256=qezkGuG8otoZbE4cwuEcqW5CagddufzadWKqbRHYchI,830
123
+ machineconfig/scripts/linux/checkout_versions,sha256=66cXUHJtl9nax0w1J7_-9oNnP89OxUjmfcTPSptd3sc,134
124
+ machineconfig/scripts/linux/choose_wezterm_theme,sha256=oxsJnwk5I2CrgF9lQ6SQa54RHPqXwhoL-PbhAMB70iY,180
125
+ machineconfig/scripts/linux/cloud_copy,sha256=pqhnpqhLMwc52BHbzRgWs_2AuqrM7yqBkto0fH7Oo8U,125
126
+ machineconfig/scripts/linux/cloud_manager,sha256=gySbq6rB8myICUuzUOCybvm2dEAxRiufJDJyoEJrfXU,132
127
+ machineconfig/scripts/linux/cloud_mount,sha256=wPpSjdGHhragBWqXqxdM0ttoUfuR-6xcv1gQ7bnH63Q,127
128
+ machineconfig/scripts/linux/cloud_repo_sync,sha256=7fAsbp61A6s7VIS3keeJAw83DfvIxC_4hXyMBJon9u8,134
129
+ machineconfig/scripts/linux/cloud_sync,sha256=TCSpZDAH6iIlnmOO0FV7jr6uUtLStyEIAROmHHGqnYM,126
130
+ machineconfig/scripts/linux/croshell,sha256=0BbWSxxPo_bcGykU8k3LvDzckFy_-QjHArd00AvcDKk,124
131
+ machineconfig/scripts/linux/devops,sha256=oC2LXTFdNv2J8Xmyf1tluljC31Oi8Of2bmNPDT_EdvU,203
132
+ machineconfig/scripts/linux/fire,sha256=LWszNKv3Rk4JPWHVEB93Wkk4zcJieL2aMy_qg1NJo-s,125
133
+ machineconfig/scripts/linux/fire_agents,sha256=VgIv-X9yMMQgZ3qAY9HvOiZ2hcUecGQ-H5uOCetQnk8,127
133
134
  machineconfig/scripts/linux/ftpx,sha256=hF8WlySKa6r9O5pOQp6HJPU1_sbt8pnoSJnD_4K4HnQ,176
134
135
  machineconfig/scripts/linux/fzf2g,sha256=YK_YLmxCm6zms24ytylgoUHnvWqq8oTdRTiskzDClS0,831
135
136
  machineconfig/scripts/linux/fzfag,sha256=x0rX7vM_YjKLZ822D2Xh0HdaTj5kR_gG3g_5_w6ring,679
136
137
  machineconfig/scripts/linux/fzffg,sha256=jjeeyFkWmBbwH2taRqC3EOzZep2KR-ZYoI4UI-5kHqg,1090
137
138
  machineconfig/scripts/linux/fzfg,sha256=ClGnJZUsIk4y0qs3W5iXGo-nd0FaqAHMsnh8uoXQFy8,1190
138
139
  machineconfig/scripts/linux/fzfrga,sha256=xSdws6ae28ZXkkqz_uupZ0MYw_vxE2qpLT2DLS3WITM,460
139
- machineconfig/scripts/linux/gh_models,sha256=NkSBS3AcAAwVPnQ0kXL3Ko5O1Xl0kYmQA81vZApSBGU,181
140
- machineconfig/scripts/linux/kill_process,sha256=CjE6M1U9y70VzgX6GMiflN6ihvCFR6IZwYa3ipb7PTY,227
141
- machineconfig/scripts/linux/mcinit,sha256=Vqp6WII0ffWeKUFnKlR4uYqaXolhrYUg4a6vLrHB_O0,847
140
+ machineconfig/scripts/linux/gh_models,sha256=LsStENOwHeBcVErDEHj37rTply4eFmG8t1xna7Lbwac,125
141
+ machineconfig/scripts/linux/kill_process,sha256=a825jyQN3D134VotRZ04yufWzy0lbmvvUMuNjiITSbE,172
142
+ machineconfig/scripts/linux/mcinit,sha256=HjI1jGJYhpFBk3E3ncTKvuggDKQ79GC2K9vJ4QKDRF4,125
142
143
  machineconfig/scripts/linux/mount_drive,sha256=zemKofv7hOmRN_V3qK0q580GkfWw3VdikyVVQyiu8j8,3514
143
- machineconfig/scripts/linux/mount_nfs,sha256=HLWF7ocUjuDXaFFtOzEA9JlROTcsbDEhgosBdBpBUUA,2061
144
+ machineconfig/scripts/linux/mount_nfs,sha256=bLKfyhHckLKU-XWB1VLyrZ6GLQJdi9ABucN66LeIQJM,1856
144
145
  machineconfig/scripts/linux/mount_nw_drive,sha256=fZWV2x7Slne2c0NU-65qXBmTIeJNvjAHY-NqkDgoq1U,2527
145
146
  machineconfig/scripts/linux/mount_smb,sha256=7UN5EP1kuxYL_-CnyaH4f9Wuu2CgALDZpJ0mPcdvCiY,94
146
147
  machineconfig/scripts/linux/programs,sha256=KlKTLhreJ0CRHvtm61ilOtVm8VUia7gb0zWD1IP6rNY,472
147
- machineconfig/scripts/linux/repos,sha256=m_4hu6dkgLphd7EO5NIG5z0dNC1nyGgHck_EnGIEbWc,517
148
- machineconfig/scripts/linux/scheduler,sha256=fYdjQHI3ku68xwv0O7oWWRpgm5Pd1hFwAaiupzivZwo,178
148
+ machineconfig/scripts/linux/repos,sha256=Mhk2eWDUBlU4nrG5AxNcIoD12iLm3XOJaq-R68lqSMo,121
149
+ machineconfig/scripts/linux/scheduler,sha256=I81R27Ozq-0EJ_liQbZYTi4Ho6Hif7Ft-eRmpwsX7pw,125
149
150
  machineconfig/scripts/linux/share_cloud.sh,sha256=75IzCm7Nob1wO-zlfaNyPPod1IjAsVCG5lcMFdXmiI4,3010
150
151
  machineconfig/scripts/linux/share_nfs,sha256=LDQZQ9TV7z2y7RtNHiO4Wb513MztyGjaAV-GzTGwUdc,1374
151
152
  machineconfig/scripts/linux/share_smb,sha256=HZX8BKgMlS9JzkGIYnxTsPvoxEBBuVLVkqzR3pmGFGY,20
152
153
  machineconfig/scripts/linux/skrg,sha256=JgQJGwxaChr148bDnpTB0rrqZMe2o2zGSDA9x_oUhWM,133
153
154
  machineconfig/scripts/linux/start_docker,sha256=_yDN_PPqgzSUnPT7dmniMTpL4IfeeaGy1a2OL3IJlDU,525
154
- machineconfig/scripts/linux/start_slidev,sha256=MYQmrcx-3WP1gzUtSPpgbbGIlxOoRUWQe5GZa9FZOx4,616
155
- machineconfig/scripts/linux/start_terminals,sha256=SRsk9M7dizTHTyO1Msu6KFCDhIW-cFo_1xaiZ_D83AM,260
155
+ machineconfig/scripts/linux/start_slidev,sha256=D2DQ6l9U-RCbUy8p_5lNCYOLalUXI1JI4YZxsQGc2c4,128
156
+ machineconfig/scripts/linux/start_terminals,sha256=8hgSkCW09OF0IeKLwiz_5trZxh5jqc1j6_vpHWC9jDQ,205
156
157
  machineconfig/scripts/linux/switch_ip,sha256=NQfeKMBSbFY3eP6M-BadD-TQo5qMP96DTp77KHk2tU8,613
157
- machineconfig/scripts/linux/url2md,sha256=eOPlXIwgpPzVYB_x217hISkQIzIZEGCEOQsBMLA-Pds,171
158
+ machineconfig/scripts/linux/url2md,sha256=OCY_FOVhTfANPZ_G3jpBmiaUlyFi4ZfTnWARVRoHjxE,116
158
159
  machineconfig/scripts/linux/warp-cli.sh,sha256=shFFZ9viet_DSEEHT8kxlGRHoJpO6o85pKYnc3rIkaA,3868
159
160
  machineconfig/scripts/linux/wifi_conn,sha256=zsmP1e3WK1apdafjYjfsdXJY8YItzFEp9f1QP3614ec,513
160
161
  machineconfig/scripts/linux/z_ls,sha256=ATZtu0ccN3AKvAOxkwLq1xgQjJ3en5byEWJ3Q8afnNg,3340
161
- machineconfig/scripts/linux/archive/tmate_conn,sha256=mDymJCJ-scdYhoG06EAMncjoSAj8irg3YqZzP69vLgI,378
162
- machineconfig/scripts/linux/archive/tmate_start,sha256=eyaknKoVb-XtJnZcfB0CCxm9z9zkD0dsuIDeFLKbIO8,452
163
- machineconfig/scripts/linux/archive/transfer_wsl_win,sha256=KzSaO4CWbuM6UNoNasdJhaWWjRhN0lWIiJrBZMmONz0,137
164
162
  machineconfig/scripts/python/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
165
163
  machineconfig/scripts/python/choose_wezterm_theme.py,sha256=xCDLLJKlYNOQ0tOZ4cgkBN5hTPGn-0llkyupmoN2rb8,3320
166
164
  machineconfig/scripts/python/cloud_copy.py,sha256=NjUOKztK5zHzK9krTPgyZCCVohooZNF48EGJ96kfIVw,8547
167
165
  machineconfig/scripts/python/cloud_manager.py,sha256=MAVOKqXGxnlMaQGEv6k-q_PrgN0at6J8qQDhPiH2lI8,3488
168
- machineconfig/scripts/python/cloud_mount.py,sha256=6iaEidaHj3CMgH6udCd1I04BdUtSsyEO3n5A1OAKpjI,6790
169
- machineconfig/scripts/python/cloud_repo_sync.py,sha256=HUaFhSl9f7y2BJgBfXWKnb-xymsi0lB1hqRl8xU_H-E,9861
170
- machineconfig/scripts/python/cloud_sync.py,sha256=grlWuY7E0NadylxUU14YAcym6vICYvoI9PyF5a4G4_c,3846
171
- machineconfig/scripts/python/croshell.py,sha256=1UOOk1esyP-YOIZuhe_d22I69So_fZIZsBpNfQnGIIQ,9551
172
- machineconfig/scripts/python/devops.py,sha256=5pZ1JzRwcY3ZPruHUFScR7WHPJjFw8jjbNbi3d6DrfE,8389
166
+ machineconfig/scripts/python/cloud_mount.py,sha256=QdokpaQ31S5oVBsZTApVNXbquWfJL1I4ULKVyGiDO_U,6802
167
+ machineconfig/scripts/python/cloud_repo_sync.py,sha256=-aGiNw-K706vcuVwsuBXUL2FMHpa6OnHiKIIaydAt38,9940
168
+ machineconfig/scripts/python/cloud_sync.py,sha256=UVxFG2mRARU0CEU51RvdjyR4vxxF8bemzmDgWvZ9SRs,3858
169
+ machineconfig/scripts/python/croshell.py,sha256=u9VgF4BnlWUDzpuYy4ScYy2wCyLqOzE-qnqArBEeFNo,9559
170
+ machineconfig/scripts/python/devops.py,sha256=Ss38XnmiG5_T46az6iEyotq8M5JChUYKXZ56UJA6IXk,8331
173
171
  machineconfig/scripts/python/devops_add_identity.py,sha256=gYcRzUZGr-truU2l5iPLEiWSZpKLzz5a6v5VPrEMVwg,3869
174
172
  machineconfig/scripts/python/devops_add_ssh_key.py,sha256=D66vyl4NnvwL306yJXSFI4ht0sz-m9yczuBf82VCodo,6760
175
173
  machineconfig/scripts/python/devops_backup_retrieve.py,sha256=noN0pgZkj7wdQSZpyCOKYVV_npcKn1CkXtqt1l2QO4w,6201
@@ -177,27 +175,31 @@ machineconfig/scripts/python/devops_devapps_install.py,sha256=HrKa1mSwMXtdFPOy4L
177
175
  machineconfig/scripts/python/devops_update_repos.py,sha256=q8mCIqCYsJdGCf4sBUeVe6hJIQX4pGLYPAF3rDpTQZI,11221
178
176
  machineconfig/scripts/python/dotfile.py,sha256=miL8mQH2AqPdnHSz0Cxa7qQavaOmzTD9DAF66H2PRzA,2259
179
177
  machineconfig/scripts/python/fire_agents.py,sha256=VhmB_onoLYRAqqaEUV2UJytxQQBb_0d0j6KCTkUMW7c,9358
180
- machineconfig/scripts/python/fire_jobs.py,sha256=L7C-FUhEUcPXYh1ov2qv0PwEIksEDBUrIj8Q20RHURg,16545
178
+ machineconfig/scripts/python/fire_jobs.py,sha256=V6ULEOyBaNzhHxeYmpOEyVI-VFBcSrFvUiFlxyXvc10,16566
181
179
  machineconfig/scripts/python/fire_jobs_args_helper.py,sha256=TfCKSExGZhYrZ6JmXIHsd0wpNSWcKeLeRh9gFR3FG-M,4330
182
180
  machineconfig/scripts/python/fire_jobs_layout_helper.py,sha256=Ph3nc6_-Q80xJNqTspWUN1SVxzA6afGHDnWUlgQykZw,3226
183
181
  machineconfig/scripts/python/fire_jobs_streamlit_helper.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
184
182
  machineconfig/scripts/python/ftpx.py,sha256=WQ-6Z043q3yQOgWQV9g-R5QjouilWC0grOc6hydvbvg,9914
185
183
  machineconfig/scripts/python/get_zellij_cmd.py,sha256=e35-18hoXM9N3PFbvbizfkNY_-63iMicieWE3TbGcCQ,576
186
184
  machineconfig/scripts/python/gh_models.py,sha256=3BLfW25mBRiPO5VKtVm-nMlKLv-PaZDw7mObajq6F6M,5538
187
- machineconfig/scripts/python/mount_nfs.py,sha256=KleZz9Np1csQLNZ4_gdIpTwYQqIkiarjrXJLzB0xCvw,3178
188
- machineconfig/scripts/python/mount_nw_drive.py,sha256=q7URYlipteXdhFKBaqS-PB7kAJq4oMWsvsu47rQ_xdI,1546
189
- machineconfig/scripts/python/mount_ssh.py,sha256=NObjRZZXb7Jw-ytM66mpFx9B0AsvW4u_n3y_KtETo-c,2222
185
+ machineconfig/scripts/python/mount_nfs.py,sha256=v1vhxzpNJSVLdkGkdC84pV7T32xmoVCTMLFbsxe8SA8,3314
186
+ machineconfig/scripts/python/mount_nw_drive.py,sha256=_7Rq-OGdJ8eYivESqGqdtWfSERuZd-E4w_glMBaCY7Q,1550
187
+ machineconfig/scripts/python/mount_ssh.py,sha256=uALax_ZVKihspQF6TuUtvtoAo-VRHCkdKQ7N9GRcry8,2234
190
188
  machineconfig/scripts/python/onetimeshare.py,sha256=bmGsNnskym5OWfIhpOfZG5jq3m89FS0a6dF5Sb8LaZM,2539
191
189
  machineconfig/scripts/python/pomodoro.py,sha256=SPkfeoZGv8rylGiOyzQ7UK3aXZ3G2FIOuGkSuBUggOI,2019
192
190
  machineconfig/scripts/python/repos.py,sha256=rlUff2c_hyJZ-6WXQ6goKhOt4n7k0pP_Gq0V8Z6IVIg,18076
193
191
  machineconfig/scripts/python/scheduler.py,sha256=7IBjMMOHMkklcWzYwz93EH9XzbJ5uPqU03bJ_lYbRNo,3083
194
192
  machineconfig/scripts/python/snapshot.py,sha256=aDvKeoniZaeTSNv9zWBUajaj2yagAxVdfuvO1_tgq5Y,1026
195
- machineconfig/scripts/python/start_slidev.py,sha256=pwqTTmfGSV26NQ9yyhMnsgkPka6Z6V88yJuWGzLwRu0,4458
196
- machineconfig/scripts/python/start_terminals.py,sha256=r5NVU00ghkNsuifp2eU8Z-z_0WJ5NhZk8qjuPoY5PUM,6206
193
+ machineconfig/scripts/python/start_slidev.py,sha256=MPCN0JgRzOAXywj6n9s0iZYcLFAscP-eOPQvkUyElRA,4525
194
+ machineconfig/scripts/python/start_terminals.py,sha256=HaHv5EqeSos1XtlmVD9gMjZVgkSPS5mmx2lJbM4d7zE,6206
197
195
  machineconfig/scripts/python/viewer.py,sha256=heQNjB9fwn3xxbPgMofhv1Lp6Vtkl76YjjexWWBM0pM,2041
198
196
  machineconfig/scripts/python/viewer_template.py,sha256=ve3Q1-iKhCLc0VJijKvAeOYp2xaFOeIOC_XW956GWCc,3944
199
197
  machineconfig/scripts/python/wifi_conn.py,sha256=2FJ4srVthGHsy3KSXpvndAyVkNO8n_XeSgVRnd_PjZA,15576
200
198
  machineconfig/scripts/python/wsl_windows_transfer.py,sha256=RfSf5SJejnqrg36YfXSwu52ceEW77uNP4WC6QQUyRTA,3650
199
+ machineconfig/scripts/python/__pycache__/__init__.cpython-313.pyc,sha256=8muD9pM0PjydSqWOb5Vt0PqZMDLWVx8tiv4rTzca3_Q,171
200
+ machineconfig/scripts/python/__pycache__/croshell.cpython-313.pyc,sha256=JU3-6dV9_1yhVRi3xZtc5mZCv63kAdrHGXArv4BtBxQ,9923
201
+ machineconfig/scripts/python/__pycache__/devops.cpython-313.pyc,sha256=NNA2Z-b903hVbpUzJ3mYZk-iBSwz-5dA-nGcdRtMC9A,11377
202
+ machineconfig/scripts/python/__pycache__/devops_update_repos.cpython-313.pyc,sha256=Tf5urpeVHjZpFdyZjakvxZ2HuiPrmVoVMnXg8B1SDmA,12175
201
203
  machineconfig/scripts/python/ai/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
202
204
  machineconfig/scripts/python/ai/generate_files.py,sha256=Vfjgd0skJu-WTgqUxmOVFzaNMfSFBaFmY5oGGVY7MZY,2860
203
205
  machineconfig/scripts/python/ai/mcinit.py,sha256=IuUclOpQ0-5YJ4AghbPCglyMi6DPtP0zqIOhB-28wmQ,5251
@@ -266,6 +268,7 @@ machineconfig/scripts/windows/archive/secure_push.ps1,sha256=GeAHwy8o5lv4Cta5pNE
266
268
  machineconfig/scripts/windows/archive/tmate_conn.ps1,sha256=D3h4FNmVSwL6fbGkG4wwIToH57yVXWlULSqyEOozS8U,193
267
269
  machineconfig/scripts/windows/utils/op_script_delete.ps1,sha256=tX5drodmlzbM5kEYXc8oCsiWFtOlMRXouuBxX6AGsmQ,167
268
270
  machineconfig/settings/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
271
+ machineconfig/settings/__pycache__/__init__.cpython-313.pyc,sha256=tRO9mF8S4gAUlEngtzK4OB0x4XXu2epueVip5OgfRPk,165
269
272
  machineconfig/settings/broot/br.sh,sha256=UoiQN5ULJqCnwVudUonZ5_sO0TEHZE8LEROgArnDD7k,1747
270
273
  machineconfig/settings/broot/brootcd.ps1,sha256=BB8uGnoVywxFWSgwsHxlbS8V4W_Qom3L1SedekGpgWA,877
271
274
  machineconfig/settings/broot/conf.toml,sha256=2C2ggpFR0Z-Sceu0iwHW0LFz45AjwyeCBD0PSP0VIoo,55
@@ -337,8 +340,10 @@ machineconfig/settings/shells/bash/.inputrc,sha256=KUPj9Rj1_5quvDmB7vZORN43TIv7K
337
340
  machineconfig/settings/shells/bash/init.sh,sha256=EOCNg7h4roNDTappkddwy7U_0R_NKiLzbuZZ4gnmTPc,2352
338
341
  machineconfig/settings/shells/hyper/.hyper.js,sha256=h-HqeYlvPvPD4Ee7828Cxo87uVkzbMGJFqXTZIWoegw,8884
339
342
  machineconfig/settings/shells/ipy/profiles/default/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
343
+ machineconfig/settings/shells/ipy/profiles/default/__pycache__/__init__.cpython-313.pyc,sha256=jDr5Q0qA-Ii5vez2e_aPL5XsY7SGOdSzPTMTKCoJV_8,193
340
344
  machineconfig/settings/shells/ipy/profiles/default/startup/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
341
345
  machineconfig/settings/shells/ipy/profiles/default/startup/playext.py,sha256=-RINJ7SH3ieHGw2C1_ENnRitbVM9u26sUYD8kF7I3uQ,3503
346
+ machineconfig/settings/shells/ipy/profiles/default/startup/__pycache__/__init__.cpython-313.pyc,sha256=tnsC80HmsEa7Nan5NEfNHNdCZtGxzog9AG51EPGqTZ8,201
342
347
  machineconfig/settings/shells/kitty/kitty.conf,sha256=lDdx-dUX3jbKGb3BkS2f2TOpmgGiS-CI-_-lFvhD5A4,52870
343
348
  machineconfig/settings/shells/nushell/config.nu,sha256=ug0E0NXNlCzgStScFN6VTsAkUaOTPJZB69P-LS5L2VE,1047
344
349
  machineconfig/settings/shells/nushell/env.nu,sha256=4VmaXb-qP6qnMD5TPzkXMLFNlB5QC4l9HEzCvXZE2GQ,315
@@ -390,7 +395,7 @@ machineconfig/setup_windows/wt_and_pwsh/install_fonts.ps1,sha256=JsQfGAMkvirhiUm
390
395
  machineconfig/setup_windows/wt_and_pwsh/set_pwsh_theme.py,sha256=JgJZMP93xPQwr_6tsRmimOMllu-vsXn6ZgW-4ZEfRt0,4538
391
396
  machineconfig/setup_windows/wt_and_pwsh/set_wt_settings.py,sha256=-XLcrpWv_iPPNTFjp5cUEGsvLrkLNMq93b0KhGX7tPw,9217
392
397
  machineconfig/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
393
- machineconfig/utils/code.py,sha256=M8VzIdz-BYQNchXP78WaB5Uub_voSN0ndbbB6UDC0jo,4535
398
+ machineconfig/utils/code.py,sha256=y2CTzD9elNOqMfiAJgxyTNhYG28IaYtKOv5zjTiRchE,4459
394
399
  machineconfig/utils/installer.py,sha256=725N-0gmMbrWWh6_9sn-2w9aXrfjIPrnuu9o13T4N4o,10941
395
400
  machineconfig/utils/io_save.py,sha256=iC1YTH0MOlBS8bWUB8Xhdl4CG_bEKQ3OVwMohdCOazI,3145
396
401
  machineconfig/utils/links.py,sha256=Lkzp1yZFyMe0ikbVsnWBektZy-9_Km69zt7hJ33MHp0,10309
@@ -400,7 +405,7 @@ machineconfig/utils/path.py,sha256=4PNyyYsjPdJGDx1FbhPT4Sv6uR6PHAk9tMZiGQCGkIc,8
400
405
  machineconfig/utils/path_reduced.py,sha256=hccGUTSMtggU-LpLNS7W_c1s-CqhjHMbTQ59-1EqgmY,52473
401
406
  machineconfig/utils/procs.py,sha256=6uB8lvmipNviMExjgFpZ3nGInatLf7GFTMmDNcI7paU,10828
402
407
  machineconfig/utils/scheduling.py,sha256=4RRrrtjzOxk02IZENhIw6aGj5eMaWr0Tb73R68lhbGY,11271
403
- machineconfig/utils/source_of_truth.py,sha256=QUxJ4eyY-O2cAFGknLY9Xz2E12w3cAJWuDFiIjERVWY,952
408
+ machineconfig/utils/source_of_truth.py,sha256=IrhXFf0YlsUIgpd0We8y4zuBOheRKjwQQKvZjYEJyOE,956
404
409
  machineconfig/utils/ssh.py,sha256=ZVgFpr940OApfy07rFNujYAZ0AJG4xGPteupBG-Gdkc,20130
405
410
  machineconfig/utils/terminal.py,sha256=k3xoMwJPGvmaeL9CxEIwrcQjRNN6EnJItoIIxXrUY8c,12258
406
411
  machineconfig/utils/upgrade_packages.py,sha256=H96zVJEWXJW07nh5vhjuSCrPtXGqoUb7xeJsFYYdmCI,3330
@@ -416,8 +421,8 @@ machineconfig/utils/cloud/onedrive/transaction.py,sha256=m-aNcnWj_gfZVvJOSpkdIqj
416
421
  machineconfig/utils/installer_utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
417
422
  machineconfig/utils/installer_utils/installer_abc.py,sha256=jR5XvrCjisIzoxk2VL0VhoVv-PkKdstDHGLcYky5Mqs,5319
418
423
  machineconfig/utils/installer_utils/installer_class.py,sha256=l0UM-u6ZfWx-uLvAk_mmojbppj4sxDrHX3wmVwQv12w,20366
419
- machineconfig-2.3.dist-info/METADATA,sha256=vzsWnq4tsFJn2sO5T2M529-eluFYNR9fc9HB9b_nOcQ,7165
420
- machineconfig-2.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
421
- machineconfig-2.3.dist-info/entry_points.txt,sha256=9qZRmyzJ6rPMBjF7f3E_T6I8VLIJHUB_y1qmTvc8TZY,75
422
- machineconfig-2.3.dist-info/top_level.txt,sha256=porRtB8qms8fOIUJgK-tO83_FeH6Bpe12oUVC670teA,14
423
- machineconfig-2.3.dist-info/RECORD,,
424
+ machineconfig-2.4.dist-info/METADATA,sha256=yhaxBKtZZtK4xZZp5W9DCU0rBGJq8wuzNBTR23Q3kHA,7165
425
+ machineconfig-2.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
426
+ machineconfig-2.4.dist-info/entry_points.txt,sha256=9qZRmyzJ6rPMBjF7f3E_T6I8VLIJHUB_y1qmTvc8TZY,75
427
+ machineconfig-2.4.dist-info/top_level.txt,sha256=porRtB8qms8fOIUJgK-tO83_FeH6Bpe12oUVC670teA,14
428
+ machineconfig-2.4.dist-info/RECORD,,
@@ -1,12 +0,0 @@
1
- #!/usr/bin/env bash
2
-
3
- # https://tmate.io/
4
- #api_key=echo ~/dotfiles/creds/tmate/api_key
5
- #sess_name=echo ~/dotfiles/creds/tmate/$1
6
- #ssh $username/$sess_name@sgp1.tmate.io
7
-
8
- . $HOME/scripts/activate_ve ''
9
- machineconfig_path=$(python -c "print(__import__('machineconfig').__file__[:-12])")
10
- pyfile=$machineconfig_path/scripts/python/tmate_conn.py
11
- python3 $pyfile $1
12
- deactivate || true
@@ -1,12 +0,0 @@
1
- #!/usr/bin/bash
2
-
3
- #sess_name=$(cat ~/dotfiles/creds/tmate/$1)
4
- #api_key=$(cat ~/dotfiles/creds/tmate/api_key)
5
- #tmate -a ~/.ssh/authorized_keys -k $api_key -n $sess_name -F
6
- # use sslh and shellinthebox to cirumvent the need for port forwarding
7
-
8
- . $HOME/scripts/activate_ve ''
9
- machineconfig_path=$(python -c "print(__import__('machineconfig').__file__[:-12])")
10
- pyfile=$machineconfig_path/scripts/python/tmate_start.py
11
- python3 $pyfile $1
12
- deactivate || true
@@ -1,5 +0,0 @@
1
- #!/usr/bin/env bash
2
-
3
- . $HOME/scripts/activate_ve 've'
4
- python $(dirname $(dirname $0))/python/transfer_wsl_win.py "$@"
5
- deactivate || true