machineconfig 1.97__py3-none-any.whl → 2.1__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/cluster/cloud_manager.py +22 -29
- machineconfig/cluster/data_transfer.py +2 -3
- machineconfig/cluster/distribute.py +0 -2
- machineconfig/cluster/file_manager.py +4 -5
- machineconfig/cluster/job_params.py +1 -4
- machineconfig/cluster/loader_runner.py +8 -11
- machineconfig/cluster/remote_machine.py +4 -5
- machineconfig/cluster/script_execution.py +2 -2
- machineconfig/cluster/script_notify_upon_completion.py +0 -1
- machineconfig/cluster/sessions_managers/archive/create_zellij_template.py +4 -6
- machineconfig/cluster/sessions_managers/archive/session_managers.py +0 -1
- machineconfig/cluster/sessions_managers/enhanced_command_runner.py +35 -75
- machineconfig/cluster/sessions_managers/wt_local.py +113 -185
- machineconfig/cluster/sessions_managers/wt_local_manager.py +127 -197
- machineconfig/cluster/sessions_managers/wt_remote.py +60 -67
- machineconfig/cluster/sessions_managers/wt_remote_manager.py +110 -149
- machineconfig/cluster/sessions_managers/wt_utils/layout_generator.py +61 -64
- machineconfig/cluster/sessions_managers/wt_utils/process_monitor.py +72 -172
- machineconfig/cluster/sessions_managers/wt_utils/remote_executor.py +27 -60
- machineconfig/cluster/sessions_managers/wt_utils/session_manager.py +58 -137
- machineconfig/cluster/sessions_managers/wt_utils/status_reporter.py +46 -74
- machineconfig/cluster/sessions_managers/zellij_local.py +91 -147
- machineconfig/cluster/sessions_managers/zellij_local_manager.py +165 -190
- machineconfig/cluster/sessions_managers/zellij_remote.py +51 -58
- machineconfig/cluster/sessions_managers/zellij_remote_manager.py +40 -46
- machineconfig/cluster/sessions_managers/zellij_utils/example_usage.py +19 -17
- machineconfig/cluster/sessions_managers/zellij_utils/layout_generator.py +30 -31
- machineconfig/cluster/sessions_managers/zellij_utils/process_monitor.py +64 -134
- machineconfig/cluster/sessions_managers/zellij_utils/remote_executor.py +7 -11
- machineconfig/cluster/sessions_managers/zellij_utils/session_manager.py +27 -55
- machineconfig/cluster/sessions_managers/zellij_utils/status_reporter.py +14 -13
- machineconfig/cluster/templates/cli_click.py +0 -1
- machineconfig/cluster/templates/cli_gooey.py +0 -2
- machineconfig/cluster/templates/cli_trogon.py +0 -1
- machineconfig/cluster/templates/run_cloud.py +0 -1
- machineconfig/cluster/templates/run_cluster.py +0 -1
- machineconfig/cluster/templates/run_remote.py +0 -1
- machineconfig/cluster/templates/utils.py +27 -11
- machineconfig/jobs/__pycache__/__init__.cpython-313.pyc +0 -0
- machineconfig/jobs/linux/msc/cli_agents.sh +16 -0
- machineconfig/jobs/python/check_installations.py +9 -9
- machineconfig/jobs/python/create_bootable_media.py +0 -2
- machineconfig/jobs/python/python_cargo_build_share.py +2 -2
- machineconfig/jobs/python/python_ve_symlink.py +9 -11
- machineconfig/jobs/python/tasks.py +0 -1
- machineconfig/jobs/python/vscode/api.py +5 -5
- machineconfig/jobs/python/vscode/link_ve.py +20 -21
- machineconfig/jobs/python/vscode/select_interpreter.py +28 -29
- machineconfig/jobs/python/vscode/sync_code.py +14 -18
- machineconfig/jobs/python_custom_installers/__pycache__/__init__.cpython-313.pyc +0 -0
- machineconfig/jobs/python_custom_installers/archive/ngrok.py +15 -15
- machineconfig/jobs/python_custom_installers/dev/aider.py +10 -18
- machineconfig/jobs/python_custom_installers/dev/alacritty.py +12 -21
- machineconfig/jobs/python_custom_installers/dev/brave.py +13 -22
- machineconfig/jobs/python_custom_installers/dev/bypass_paywall.py +13 -20
- machineconfig/jobs/python_custom_installers/dev/code.py +17 -24
- machineconfig/jobs/python_custom_installers/dev/cursor.py +10 -21
- machineconfig/jobs/python_custom_installers/dev/docker_desktop.py +12 -11
- machineconfig/jobs/python_custom_installers/dev/espanso.py +19 -23
- machineconfig/jobs/python_custom_installers/dev/goes.py +9 -16
- machineconfig/jobs/python_custom_installers/dev/lvim.py +13 -21
- machineconfig/jobs/python_custom_installers/dev/nerdfont.py +15 -22
- machineconfig/jobs/python_custom_installers/dev/redis.py +15 -23
- machineconfig/jobs/python_custom_installers/dev/wezterm.py +15 -22
- machineconfig/jobs/python_custom_installers/dev/winget.py +32 -50
- machineconfig/jobs/python_custom_installers/docker.py +15 -24
- machineconfig/jobs/python_custom_installers/gh.py +18 -26
- machineconfig/jobs/python_custom_installers/hx.py +33 -17
- machineconfig/jobs/python_custom_installers/warp-cli.py +15 -23
- machineconfig/jobs/python_generic_installers/__pycache__/__init__.cpython-313.pyc +0 -0
- machineconfig/jobs/python_generic_installers/config.json +412 -389
- machineconfig/jobs/python_linux_installers/__pycache__/__init__.cpython-313.pyc +0 -0
- machineconfig/jobs/python_windows_installers/dev/config.json +1 -1
- machineconfig/jobs/windows/archive/archive_pygraphviz.ps1 +1 -1
- machineconfig/jobs/windows/msc/cli_agents.bat +0 -0
- machineconfig/jobs/windows/msc/cli_agents.ps1 +0 -0
- machineconfig/jobs/windows/start_terminal.ps1 +1 -1
- machineconfig/logger.py +50 -0
- machineconfig/profile/create.py +50 -36
- machineconfig/profile/create_hardlinks.py +33 -26
- machineconfig/profile/shell.py +87 -60
- machineconfig/scripts/__pycache__/__init__.cpython-313.pyc +0 -0
- machineconfig/scripts/cloud/init.sh +2 -2
- machineconfig/scripts/linux/checkout_versions +1 -1
- machineconfig/scripts/linux/choose_wezterm_theme +1 -1
- machineconfig/scripts/linux/cloud_copy +1 -1
- machineconfig/scripts/linux/cloud_manager +1 -1
- machineconfig/scripts/linux/cloud_mount +1 -1
- machineconfig/scripts/linux/cloud_repo_sync +1 -1
- machineconfig/scripts/linux/cloud_sync +1 -1
- machineconfig/scripts/linux/croshell +1 -1
- machineconfig/scripts/linux/devops +3 -5
- machineconfig/scripts/linux/fire +2 -1
- machineconfig/scripts/linux/fire_agents +3 -3
- machineconfig/scripts/linux/ftpx +1 -1
- machineconfig/scripts/linux/gh_models +1 -1
- machineconfig/scripts/linux/kill_process +1 -1
- machineconfig/scripts/linux/mcinit +2 -2
- machineconfig/scripts/linux/repos +1 -1
- machineconfig/scripts/linux/scheduler +1 -1
- machineconfig/scripts/linux/start_slidev +1 -1
- machineconfig/scripts/linux/start_terminals +1 -1
- machineconfig/scripts/linux/url2md +1 -1
- machineconfig/scripts/linux/warp-cli.sh +122 -0
- machineconfig/scripts/linux/wifi_conn +1 -1
- machineconfig/scripts/python/__pycache__/__init__.cpython-313.pyc +0 -0
- machineconfig/scripts/python/__pycache__/croshell.cpython-313.pyc +0 -0
- machineconfig/scripts/python/__pycache__/devops.cpython-313.pyc +0 -0
- machineconfig/scripts/python/__pycache__/devops_devapps_install.cpython-313.pyc +0 -0
- machineconfig/scripts/python/__pycache__/devops_update_repos.cpython-313.pyc +0 -0
- machineconfig/scripts/python/__pycache__/fire_jobs.cpython-313.pyc +0 -0
- machineconfig/scripts/python/ai/__init__.py +0 -0
- machineconfig/scripts/python/ai/__pycache__/__init__.cpython-313.pyc +0 -0
- machineconfig/scripts/python/ai/__pycache__/generate_files.cpython-313.pyc +0 -0
- machineconfig/scripts/python/ai/__pycache__/mcinit.cpython-313.pyc +0 -0
- machineconfig/scripts/python/ai/chatmodes/Thinking-Beast-Mode.chatmode.md +337 -0
- machineconfig/scripts/python/ai/chatmodes/Ultimate-Transparent-Thinking-Beast-Mode.chatmode.md +644 -0
- machineconfig/scripts/python/ai/chatmodes/deepResearch.chatmode.md +81 -0
- machineconfig/scripts/python/ai/configs/.gemini/settings.json +81 -0
- machineconfig/scripts/python/ai/generate_files.py +84 -0
- machineconfig/scripts/python/ai/instructions/python/dev.instructions.md +45 -0
- machineconfig/scripts/python/ai/mcinit.py +107 -0
- machineconfig/scripts/python/ai/prompts/allLintersAndTypeCheckers.prompt.md +5 -0
- machineconfig/scripts/python/ai/prompts/research-report-skeleton.prompt.md +38 -0
- machineconfig/scripts/python/ai/scripts/lint_and_type_check.sh +52 -0
- machineconfig/scripts/python/archive/tmate_conn.py +5 -5
- machineconfig/scripts/python/archive/tmate_start.py +3 -3
- machineconfig/scripts/python/choose_wezterm_theme.py +2 -2
- machineconfig/scripts/python/cloud_copy.py +20 -19
- machineconfig/scripts/python/cloud_mount.py +10 -8
- machineconfig/scripts/python/cloud_repo_sync.py +15 -15
- machineconfig/scripts/python/cloud_sync.py +1 -1
- machineconfig/scripts/python/croshell.py +18 -16
- machineconfig/scripts/python/devops.py +6 -6
- machineconfig/scripts/python/devops_add_identity.py +9 -7
- machineconfig/scripts/python/devops_add_ssh_key.py +19 -19
- machineconfig/scripts/python/devops_backup_retrieve.py +14 -14
- machineconfig/scripts/python/devops_devapps_install.py +3 -3
- machineconfig/scripts/python/devops_update_repos.py +141 -53
- machineconfig/scripts/python/dotfile.py +3 -3
- machineconfig/scripts/python/fire_agents.py +202 -41
- machineconfig/scripts/python/fire_jobs.py +20 -21
- machineconfig/scripts/python/ftpx.py +4 -3
- machineconfig/scripts/python/gh_models.py +94 -94
- machineconfig/scripts/python/helpers/__pycache__/__init__.cpython-313.pyc +0 -0
- machineconfig/scripts/python/helpers/__pycache__/helpers4.cpython-313.pyc +0 -0
- machineconfig/scripts/python/helpers/cloud_helpers.py +3 -3
- machineconfig/scripts/python/helpers/helpers2.py +3 -3
- machineconfig/scripts/python/helpers/helpers4.py +8 -7
- machineconfig/scripts/python/helpers/helpers5.py +7 -7
- machineconfig/scripts/python/helpers/repo_sync_helpers.py +2 -2
- machineconfig/scripts/python/mount_nfs.py +4 -3
- machineconfig/scripts/python/mount_nw_drive.py +4 -4
- machineconfig/scripts/python/mount_ssh.py +4 -3
- machineconfig/scripts/python/repos.py +9 -9
- machineconfig/scripts/python/scheduler.py +1 -1
- machineconfig/scripts/python/start_slidev.py +9 -8
- machineconfig/scripts/python/start_terminals.py +1 -1
- machineconfig/scripts/python/viewer.py +40 -40
- machineconfig/scripts/python/wifi_conn.py +65 -66
- machineconfig/scripts/python/wsl_windows_transfer.py +2 -2
- machineconfig/scripts/windows/checkout_version.ps1 +1 -3
- machineconfig/scripts/windows/choose_wezterm_theme.ps1 +1 -3
- machineconfig/scripts/windows/cloud_copy.ps1 +2 -6
- machineconfig/scripts/windows/cloud_manager.ps1 +1 -1
- machineconfig/scripts/windows/cloud_repo_sync.ps1 +1 -2
- machineconfig/scripts/windows/cloud_sync.ps1 +2 -2
- machineconfig/scripts/windows/croshell.ps1 +2 -2
- machineconfig/scripts/windows/devops.ps1 +1 -4
- machineconfig/scripts/windows/dotfile.ps1 +1 -3
- machineconfig/scripts/windows/fire.ps1 +1 -1
- machineconfig/scripts/windows/ftpx.ps1 +2 -2
- machineconfig/scripts/windows/gpt.ps1 +1 -1
- machineconfig/scripts/windows/kill_process.ps1 +1 -2
- machineconfig/scripts/windows/mcinit.ps1 +2 -2
- machineconfig/scripts/windows/mount_nfs.ps1 +1 -1
- machineconfig/scripts/windows/mount_ssh.ps1 +1 -1
- machineconfig/scripts/windows/pomodoro.ps1 +1 -1
- machineconfig/scripts/windows/py2exe.ps1 +1 -3
- machineconfig/scripts/windows/repos.ps1 +1 -1
- machineconfig/scripts/windows/scheduler.ps1 +1 -1
- machineconfig/scripts/windows/snapshot.ps1 +2 -2
- machineconfig/scripts/windows/start_slidev.ps1 +1 -1
- machineconfig/scripts/windows/start_terminals.ps1 +1 -1
- machineconfig/scripts/windows/wifi_conn.ps1 +1 -1
- machineconfig/scripts/windows/wsl_windows_transfer.ps1 +1 -3
- machineconfig/settings/lf/linux/lfrc +1 -1
- machineconfig/settings/linters/.ruff.toml +2 -2
- machineconfig/settings/linters/.ruff_cache/.gitignore +2 -0
- machineconfig/settings/linters/.ruff_cache/CACHEDIR.TAG +1 -0
- machineconfig/settings/lvim/windows/archive/config_additional.lua +1 -1
- machineconfig/settings/shells/ipy/profiles/default/startup/playext.py +71 -71
- machineconfig/settings/shells/wt/settings.json +8 -8
- machineconfig/settings/svim/linux/init.toml +1 -1
- machineconfig/settings/svim/windows/init.toml +1 -1
- machineconfig/setup_linux/web_shortcuts/croshell.sh +0 -54
- machineconfig/setup_linux/web_shortcuts/interactive.sh +6 -6
- machineconfig/setup_linux/web_shortcuts/tmp.sh +2 -0
- machineconfig/setup_windows/web_shortcuts/all.ps1 +2 -2
- machineconfig/setup_windows/web_shortcuts/ascii_art.ps1 +1 -1
- machineconfig/setup_windows/web_shortcuts/croshell.ps1 +1 -1
- machineconfig/setup_windows/web_shortcuts/interactive.ps1 +5 -5
- machineconfig/setup_windows/wt_and_pwsh/install_fonts.ps1 +51 -15
- machineconfig/setup_windows/wt_and_pwsh/set_pwsh_theme.py +75 -18
- machineconfig/setup_windows/wt_and_pwsh/set_wt_settings.py +52 -42
- machineconfig/utils/ai/browser_user_wrapper.py +5 -5
- machineconfig/utils/ai/generate_file_checklist.py +19 -22
- machineconfig/utils/ai/url2md.py +5 -3
- machineconfig/utils/cloud/onedrive/setup_oauth.py +5 -4
- machineconfig/utils/cloud/onedrive/transaction.py +192 -227
- machineconfig/utils/code.py +71 -43
- machineconfig/utils/installer.py +77 -85
- machineconfig/utils/installer_utils/installer_abc.py +29 -17
- machineconfig/utils/installer_utils/installer_class.py +188 -83
- machineconfig/utils/io_save.py +3 -15
- machineconfig/utils/links.py +22 -11
- machineconfig/utils/notifications.py +197 -0
- machineconfig/utils/options.py +38 -25
- machineconfig/utils/path.py +18 -6
- machineconfig/utils/path_reduced.py +637 -316
- machineconfig/utils/procs.py +69 -63
- machineconfig/utils/scheduling.py +11 -13
- machineconfig/utils/ssh.py +351 -0
- machineconfig/utils/terminal.py +225 -0
- machineconfig/utils/utils.py +13 -12
- machineconfig/utils/utils2.py +43 -10
- machineconfig/utils/utils5.py +242 -46
- machineconfig/utils/ve.py +11 -6
- {machineconfig-1.97.dist-info → machineconfig-2.1.dist-info}/METADATA +15 -9
- {machineconfig-1.97.dist-info → machineconfig-2.1.dist-info}/RECORD +232 -235
- machineconfig/cluster/self_ssh.py +0 -57
- machineconfig/jobs/__pycache__/__init__.cpython-311.pyc +0 -0
- machineconfig/jobs/python/__pycache__/__init__.cpython-311.pyc +0 -0
- machineconfig/jobs/python/archive/python_tools.txt +0 -12
- machineconfig/jobs/python/vscode/__pycache__/select_interpreter.cpython-311.pyc +0 -0
- machineconfig/jobs/python_custom_installers/__pycache__/__init__.cpython-311.pyc +0 -0
- machineconfig/jobs/python_generic_installers/__pycache__/__init__.cpython-311.pyc +0 -0
- machineconfig/jobs/python_generic_installers/update.py +0 -3
- machineconfig/jobs/python_linux_installers/__pycache__/__init__.cpython-311.pyc +0 -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/scripts/__pycache__/__init__.cpython-311.pyc +0 -0
- machineconfig/scripts/linux/activate_ve +0 -87
- 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_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_agents.cpython-311.pyc +0 -0
- machineconfig/scripts/python/__pycache__/fire_jobs.cpython-311.pyc +0 -0
- machineconfig/scripts/python/__pycache__/get_zellij_cmd.cpython-311.pyc +0 -0
- machineconfig/scripts/python/__pycache__/repos.cpython-311.pyc +0 -0
- machineconfig/scripts/python/ai/__pycache__/init.cpython-311.pyc +0 -0
- machineconfig/scripts/python/ai/init.py +0 -56
- machineconfig/scripts/python/ai/rules/python/dev.md +0 -31
- 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/__pycache__/repo_sync_helpers.cpython-311.pyc +0 -0
- machineconfig/scripts/windows/activate_ve.ps1 +0 -54
- {machineconfig-1.97.dist-info → machineconfig-2.1.dist-info}/WHEEL +0 -0
- {machineconfig-1.97.dist-info → machineconfig-2.1.dist-info}/top_level.txt +0 -0
|
@@ -6,10 +6,7 @@ if (Test-Path $op_script ) {
|
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
# . $PSScriptRoot/activate_ve.ps1 've'
|
|
11
|
-
# . "$HOME\scripts\activate_ve.ps1" ve
|
|
12
|
-
. "$HOME\venvs\ve\Scripts\activate.ps1"
|
|
9
|
+
. "$HOME\code\machineconfig\.venv\Scripts\activate.ps1"
|
|
13
10
|
|
|
14
11
|
# Locate the python script to run relative to the current directory (which might be a symlink)
|
|
15
12
|
$script_root = (Get-Item $PSScriptRoot).Target # resolves symlink if any
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
3
|
-
#~/venvs/ve/Scripts/Activate.ps1
|
|
4
|
-
. "$HOME\scripts\activate_ve.ps1" ve
|
|
2
|
+
. "$HOME\code\machineconfig\.venv\Scripts\activate.ps1"
|
|
5
3
|
|
|
6
4
|
# python $PSScriptRoot/../python/dotfile.py $args
|
|
7
5
|
python -m machineconfig.scripts.python.dotfile $args
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
#~/
|
|
3
|
-
. $
|
|
2
|
+
#~/code/machineconfig/.venv/Scripts/Activate.ps1
|
|
3
|
+
. "$HOME\code\machineconfig\.venv\Scripts\activate.ps1"
|
|
4
4
|
python $PSScriptRoot/../python/ftpx.py $args
|
|
5
5
|
deactivate -ErrorAction SilentlyContinue
|
|
@@ -18,7 +18,7 @@ $driveLetter=''
|
|
|
18
18
|
$options = "rw,sec=sys,no_subtree_check"
|
|
19
19
|
|
|
20
20
|
# . activate_ve
|
|
21
|
-
. $HOME/
|
|
21
|
+
. $HOME/code/machineconfig/.venv/Scripts/activate.ps1
|
|
22
22
|
|
|
23
23
|
python -m machineconfig.scripts.python.mount_nfs
|
|
24
24
|
. $HOME/tmp_results/shells/python_return_command.ps1
|
|
@@ -8,7 +8,7 @@ $sharePath = ''
|
|
|
8
8
|
$driveLetter = ''
|
|
9
9
|
|
|
10
10
|
# . activate_ve
|
|
11
|
-
. $HOME/
|
|
11
|
+
. $HOME/code/machineconfig/.venv/Scripts/activate.ps1
|
|
12
12
|
|
|
13
13
|
python -m machineconfig.scripts.python.mount_ssh
|
|
14
14
|
. $HOME/tmp_results/shells/python_return_command.ps1
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
# . $PSScriptRoot/activate_ve.ps1
|
|
3
|
-
|
|
3
|
+
. "$HOME\code\machineconfig\.venv\Scripts\activate.ps1"
|
|
4
4
|
|
|
5
5
|
# python -m fire $PSScriptRoot/../python/pomodoro.py pomodoro $args
|
|
6
6
|
python -m fire machineconfig.scripts.python.pomodoro pomodoro $args
|
|
@@ -12,7 +12,7 @@ if (Test-Path $op_script ) {
|
|
|
12
12
|
# if ( $script_root -eq $null) { # this does happen if a virtual enviroment is activated before running this script (don't know why)
|
|
13
13
|
# $script_root = $PSScriptRoot
|
|
14
14
|
# }
|
|
15
|
-
.
|
|
15
|
+
. "$HOME\code\machineconfig\.venv\Scripts\activate.ps1"
|
|
16
16
|
|
|
17
17
|
# python $script_root/../python/repos.py $args
|
|
18
18
|
python -m machineconfig.scripts.python.repos $args
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
3
|
-
. $PSScriptRoot/activate_ve.ps1 've'
|
|
4
|
-
# python $PSScriptRoot/../python/wsl_windows_transfer.py $args
|
|
2
|
+
. "$HOME\code\machineconfig\.venv\Scripts\activate.ps1"
|
|
5
3
|
python -m machineconfig.scripts.python.wsl_windows_transfer $args
|
|
6
4
|
deactivate -ErrorAction SilentlyContinue
|
|
7
5
|
|
|
@@ -33,8 +33,8 @@ exclude = [
|
|
|
33
33
|
line-length = 250
|
|
34
34
|
indent-width = 4
|
|
35
35
|
|
|
36
|
-
# Assume Python 3.
|
|
37
|
-
# target-version = "
|
|
36
|
+
# Assume Python 3.13
|
|
37
|
+
# target-version = "py313"
|
|
38
38
|
|
|
39
39
|
[lint]
|
|
40
40
|
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Signature: 8a477f597d28d172789f06886806bc55
|
|
@@ -33,7 +33,7 @@ require('dap').configurations.python = { {
|
|
|
33
33
|
local dap = require('dap')
|
|
34
34
|
dap.adapters.python = {
|
|
35
35
|
type = 'executable';
|
|
36
|
-
command = "C:/Users/alex/
|
|
36
|
+
command = "C:/Users/alex/code/machineconfig/.venv/Scripts/python.exe";
|
|
37
37
|
args = {"-i" };
|
|
38
38
|
}
|
|
39
39
|
|
|
@@ -1,84 +1,84 @@
|
|
|
1
|
-
"""G
|
|
1
|
+
# """G
|
|
2
2
|
|
|
3
|
-
"""
|
|
3
|
+
# """
|
|
4
4
|
|
|
5
|
-
from IPython.core.magic import register_line_magic
|
|
6
|
-
from machineconfig.utils.utils2 import randstr
|
|
7
|
-
from machineconfig.utils.path_reduced import P as PathExtended
|
|
8
|
-
from rich import inspect
|
|
9
|
-
from typing import Any
|
|
5
|
+
# from IPython.core.magic import register_line_magic
|
|
6
|
+
# from machineconfig.utils.utils2 import randstr
|
|
7
|
+
# from machineconfig.utils.path_reduced import P as PathExtended
|
|
8
|
+
# from rich import inspect
|
|
9
|
+
# from typing import Any
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
def get_names():
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
12
|
+
# def get_names():
|
|
13
|
+
# res: dict[str, list[str]] = {}
|
|
14
|
+
# for item in globals().keys():
|
|
15
|
+
# if item.startswith("_") or item in ("open", "In", "Out", "quit", "exit", "get_ipython"):
|
|
16
|
+
# continue
|
|
17
|
+
# if item in ("P", "randstr", "Struct", "print_code", "print_dir_func", "print_program_func", "run_python_file_in_this_namespace"):
|
|
18
|
+
# continue
|
|
19
|
+
# type_ = repr(type(eval(item))) # type: ignore # pylint: disable=eval-used
|
|
20
|
+
# if "typing." in type_: continue
|
|
21
|
+
# if type_ in res: res[type_].append(item)
|
|
22
|
+
# else: res[type_] = [item]
|
|
23
|
+
# return res
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
@register_line_magic("codei") # type: ignore
|
|
27
|
-
def print_code_interactive(_):
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
26
|
+
# @register_line_magic("codei") # type: ignore
|
|
27
|
+
# def print_code_interactive(_):
|
|
28
|
+
# res = get_names()
|
|
29
|
+
# from machineconfig.utils.utils import choose_one_option
|
|
30
|
+
# choice = choose_one_option(options=res["<class 'function'>"], msg="Choose a type to inspect", fzf=True)
|
|
31
|
+
# obj = eval(choice, globals(), locals()) # type: ignore # pylint: disable=eval-used
|
|
32
|
+
# from rich.syntax import Syntax
|
|
33
|
+
# import inspect
|
|
34
|
+
# q: str = inspect.getsource(obj)
|
|
35
|
+
# from rich import console
|
|
36
|
+
# console.Console().print(Syntax(code=q, lexer="python"))
|
|
37
37
|
|
|
38
38
|
|
|
39
|
-
@register_line_magic("print_dir") # type: ignore
|
|
40
|
-
def print_dir_func(line: Any):
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
📂 Objects Defined in Current Directory
|
|
46
|
-
=======================================
|
|
47
|
-
""")
|
|
39
|
+
# @register_line_magic("print_dir") # type: ignore
|
|
40
|
+
# def print_dir_func(line: Any):
|
|
41
|
+
# """Pretty print and categorize dir() output."""
|
|
42
|
+
# _ = line # ipython caller assumes there is at least one argument, an passes '' worstcase.
|
|
43
|
+
# res = get_names()
|
|
44
|
+
# inspect(res, value=False, title="""
|
|
45
|
+
# 📂 Objects Defined in Current Directory
|
|
46
|
+
# =======================================
|
|
47
|
+
# """)
|
|
48
48
|
|
|
49
49
|
|
|
50
|
-
@register_line_magic("code") # type: ignore
|
|
51
|
-
def print_program_func(obj_str: str):
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
50
|
+
# @register_line_magic("code") # type: ignore
|
|
51
|
+
# def print_program_func(obj_str: str):
|
|
52
|
+
# """Inspect the code of an object."""
|
|
53
|
+
# obj = eval(obj_str, globals(), locals()) # type: ignore # pylint: disable=eval-used
|
|
54
|
+
# from rich.syntax import Syntax
|
|
55
|
+
# import inspect
|
|
56
|
+
# q: str = inspect.getsource(obj)
|
|
57
|
+
# from rich import console
|
|
58
|
+
# console.Console().print(Syntax(code=q, lexer="python"))
|
|
59
59
|
|
|
60
60
|
|
|
61
|
-
@register_line_magic("play") # type: ignore
|
|
62
|
-
def run_python_file_in_this_namespace(a_path: str, module: bool=False):
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
61
|
+
# @register_line_magic("play") # type: ignore
|
|
62
|
+
# def run_python_file_in_this_namespace(a_path: str, module: bool=False):
|
|
63
|
+
# """Given a potentially dirty path of python file, run it in this namespace."""
|
|
64
|
+
# from machineconfig.utils.utils import match_file_name, sanitize_path
|
|
65
|
+
# path = sanitize_path(PathExtended(a_path))
|
|
66
|
+
# if not path.exists():
|
|
67
|
+
# path = match_file_name(a_path, search_root=PathExtended.cwd())
|
|
68
|
+
# from IPython import get_ipython # type: ignore # this gets the same instance, its in the namespace anyway even if not imported.
|
|
69
|
+
# if module:
|
|
70
|
+
# result = PathExtended.tmp().joinpath(f"tmp_scripts/python/{randstr()}.py")
|
|
71
|
+
# result.parent.mkdir(parents=True, exist_ok=True)
|
|
72
|
+
# result.write_text(f"""
|
|
73
|
+
# import sys
|
|
74
|
+
# sys.path.append(r'{path.parent}')
|
|
75
|
+
# from {path.stem} import *
|
|
76
|
+
# """, encoding="utf-8")
|
|
77
|
+
# print("""💡 IPyExtension: Remember that reload fails for imported modules that import other varying modules.""")
|
|
78
|
+
# get_ipython().run_line_magic(magic_name="load", line=result) # type: ignore
|
|
79
|
+
# return
|
|
75
80
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
result = path.as_posix()
|
|
82
|
-
print(f"➡️ Running magic: %run {result}")
|
|
83
|
-
get_ipython().run_line_magic(magic_name="run", line=result) # type: ignore
|
|
84
|
-
globals().update(locals())
|
|
81
|
+
# result = path.as_posix()
|
|
82
|
+
# print(f"➡️ Running magic: %run {result}")
|
|
83
|
+
# get_ipython().run_line_magic(magic_name="run", line=result) # type: ignore
|
|
84
|
+
# globals().update(locals())
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"copyOnSelect": true,
|
|
7
7
|
"defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
|
|
8
8
|
"focusFollowMouse": true,
|
|
9
|
-
"keybindings":
|
|
9
|
+
"keybindings":
|
|
10
10
|
[
|
|
11
11
|
{
|
|
12
12
|
"id": "Terminal.TogglePaneZoom",
|
|
@@ -38,27 +38,27 @@
|
|
|
38
38
|
}
|
|
39
39
|
],
|
|
40
40
|
"launchMode": "fullscreen",
|
|
41
|
-
"newTabMenu":
|
|
41
|
+
"newTabMenu":
|
|
42
42
|
[
|
|
43
43
|
{
|
|
44
44
|
"type": "remainingProfiles"
|
|
45
45
|
}
|
|
46
46
|
],
|
|
47
|
-
"profiles":
|
|
47
|
+
"profiles":
|
|
48
48
|
{
|
|
49
|
-
"defaults":
|
|
49
|
+
"defaults":
|
|
50
50
|
{
|
|
51
51
|
"colorScheme": "Campbell (modified)",
|
|
52
52
|
"padding": "0",
|
|
53
53
|
"useAcrylic": false
|
|
54
54
|
},
|
|
55
|
-
"list":
|
|
55
|
+
"list":
|
|
56
56
|
[
|
|
57
57
|
{
|
|
58
58
|
"commandline": "pwsh",
|
|
59
59
|
"cursorColor": "#D4D8E1",
|
|
60
60
|
"cursorShape": "filledBox",
|
|
61
|
-
"font":
|
|
61
|
+
"font":
|
|
62
62
|
{
|
|
63
63
|
"face": "CaskaydiaCove Nerd Font"
|
|
64
64
|
},
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
},
|
|
85
85
|
{
|
|
86
86
|
"commandline": "%SystemRoot%\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",
|
|
87
|
-
"font":
|
|
87
|
+
"font":
|
|
88
88
|
{
|
|
89
89
|
"face": "CaskaydiaCove Nerd Font"
|
|
90
90
|
},
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
}
|
|
143
143
|
]
|
|
144
144
|
},
|
|
145
|
-
"schemes":
|
|
145
|
+
"schemes":
|
|
146
146
|
[
|
|
147
147
|
{
|
|
148
148
|
"background": "#000000",
|
|
@@ -1,60 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/bash
|
|
2
|
-
#=======================================================================
|
|
3
|
-
# 🐊 CROCODILE SHELL SETUP SCRIPT
|
|
4
|
-
#=======================================================================
|
|
5
|
-
# This script sets up the crocodile shell environment with all dependencies
|
|
6
2
|
|
|
7
|
-
echo """#=======================================================================
|
|
8
|
-
🚀 ENVIRONMENT SETUP | Quick installation via URL shorteners
|
|
9
|
-
#=======================================================================
|
|
10
|
-
"""
|
|
11
|
-
|
|
12
|
-
echo """#=======================================================================
|
|
13
|
-
🐍 PYTHON ENVIRONMENT | Setting up Python virtual environment
|
|
14
|
-
#=======================================================================
|
|
15
|
-
|
|
16
|
-
Setting up Python virtual environment via bit.ly shortlink...
|
|
17
|
-
"""
|
|
18
|
-
# Alternative URL: curl https://raw.githubusercontent.com/thisismygitrepo/machineconfig/main/src/machineconfig/setup_linux/ve.sh | bash
|
|
19
3
|
curl bit.ly/cfgvelinux -L | bash
|
|
20
|
-
|
|
21
|
-
echo """#=======================================================================
|
|
22
|
-
📦 CODE REPOSITORIES | Cloning project repositories
|
|
23
|
-
#=======================================================================
|
|
24
|
-
|
|
25
|
-
Cloning essential repositories via bit.ly shortlink...
|
|
26
|
-
"""
|
|
27
|
-
# Alternative URL: curl https://raw.githubusercontent.com/thisismygitrepo/machineconfig/main/src/machineconfig/setup_linux/repos.sh | bash
|
|
28
4
|
curl bit.ly/cfgreposlinux -L | bash
|
|
29
|
-
|
|
30
|
-
echo """#=======================================================================
|
|
31
|
-
🔗 CONFIGURATION SETUP | Creating symbolic links
|
|
32
|
-
#=======================================================================
|
|
33
|
-
|
|
34
|
-
Setting up configuration symlinks...
|
|
35
|
-
Note: This may require sudo permissions for .ssh permissions
|
|
36
|
-
"""
|
|
37
5
|
source $HOME/code/machineconfig/src/machineconfig/setup_linux/symlinks.sh
|
|
38
|
-
|
|
39
|
-
echo """#=======================================================================
|
|
40
|
-
🔄 SHELL RELOADING | Refreshing shell configuration
|
|
41
|
-
#=======================================================================
|
|
42
|
-
|
|
43
|
-
Reloading bash configuration...
|
|
44
|
-
"""
|
|
45
6
|
. ~/.bashrc
|
|
46
|
-
|
|
47
|
-
echo """#=======================================================================
|
|
48
|
-
⚙️ DEVELOPMENT TOOLS | Developer applications
|
|
49
|
-
#=======================================================================
|
|
50
|
-
|
|
51
|
-
# To install development applications, run:
|
|
52
|
-
# source <(sudo cat ~/code/machineconfig/src/machineconfig/setup_linux/devapps.sh)
|
|
53
|
-
|
|
54
|
-
#=======================================================================
|
|
55
|
-
✅ SETUP COMPLETE | CroShell environment setup finished
|
|
56
|
-
#=======================================================================
|
|
57
|
-
|
|
58
|
-
🚀 Your CroShell development environment is ready to use!
|
|
59
|
-
"""
|
|
60
|
-
|
|
@@ -37,8 +37,8 @@ echo """#=======================================================================
|
|
|
37
37
|
🐍 PYTHON ENVIRONMENT | Virtual environment setup
|
|
38
38
|
#=======================================================================
|
|
39
39
|
"""
|
|
40
|
-
read -p "🐍 Install Python virtual environment '
|
|
41
|
-
export ve_name="
|
|
40
|
+
read -p "🐍 Install Python virtual environment '.venv' [y]/n? " choice
|
|
41
|
+
export ve_name=".venv"
|
|
42
42
|
if [[ "$choice" == "y" || "$choice" == "Y" ]]; then
|
|
43
43
|
echo """ 🔧 Setting up Python environment...
|
|
44
44
|
"""
|
|
@@ -102,7 +102,7 @@ choice=${choice:-y}
|
|
|
102
102
|
if [[ "$choice" == "y" || "$choice" == "Y" ]]; then
|
|
103
103
|
echo """ 🔧 Creating symlinks and setting permissions...
|
|
104
104
|
"""
|
|
105
|
-
source $HOME/
|
|
105
|
+
source $HOME/code/machineconfig/.venv/bin/activate
|
|
106
106
|
python -m fire machineconfig.profile.create main --choice=all
|
|
107
107
|
sudo chmod 600 $HOME/.ssh/*
|
|
108
108
|
sudo chmod 700 $HOME/.ssh
|
|
@@ -120,7 +120,7 @@ choice=${choice:-y}
|
|
|
120
120
|
if [[ "$choice" == "y" || "$choice" == "Y" ]]; then
|
|
121
121
|
echo """ 🔧 Installing CLI applications...
|
|
122
122
|
"""
|
|
123
|
-
. $HOME/
|
|
123
|
+
. $HOME/code/machineconfig/.venv/bin/activate
|
|
124
124
|
python -m fire machineconfig.scripts.python.devops_devapps_install main --which=AllEssentials
|
|
125
125
|
. $HOME/.bashrc
|
|
126
126
|
else
|
|
@@ -137,7 +137,7 @@ choice=${choice:-y}
|
|
|
137
137
|
if [[ "$choice" == "y" || "$choice" == "Y" ]]; then
|
|
138
138
|
echo """ 🔧 Installing development tools...
|
|
139
139
|
"""
|
|
140
|
-
. $HOME/
|
|
140
|
+
. $HOME/code/machineconfig/.venv/bin/activate
|
|
141
141
|
(curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh) || true
|
|
142
142
|
sudo nala install libssl-dev -y
|
|
143
143
|
sudo nala install ffmpeg -y
|
|
@@ -171,7 +171,7 @@ choice=${choice:-y}
|
|
|
171
171
|
if [[ "$choice" == "y" || "$choice" == "Y" ]]; then
|
|
172
172
|
echo """ 🔄 Retrieving data...
|
|
173
173
|
"""
|
|
174
|
-
. $HOME/
|
|
174
|
+
. $HOME/code/machineconfig/.venv/bin/activate
|
|
175
175
|
python -m fire machineconfig.scripts.python.devops_backup_retrieve main --direction=RETRIEVE
|
|
176
176
|
else
|
|
177
177
|
echo """ ⏭️ Skipping data retrieval
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
(iwr bit.ly/cfgvewindows).Content | iex
|
|
7
7
|
|
|
8
8
|
# pwsh profile
|
|
9
|
-
$machineconfig = (& "$HOME\
|
|
9
|
+
$machineconfig = (& "$HOME\code\machineconfig\.venv\Scripts\python.exe" -c "print(__import__('machineconfig').__file__[:-12])")
|
|
10
10
|
# . $machineconfig/setup_windows/wt_and_pwsh.ps1 # experimental
|
|
11
11
|
# OR: python -c "from machineconfig.setup_windows.wt_and_pwsh.setup_pwsh_theme import install_nerd_fonts; install_nerd_fonts()"
|
|
12
12
|
|
|
13
|
-
# & "$HOME\
|
|
13
|
+
# & "$HOME\code\machineconfig\.venv\Scripts\activate.ps1"
|
|
14
14
|
# python -m fire machineconfig.profile.create_hardlinks main --choice=all
|
|
15
15
|
# deactivate
|
|
16
16
|
|
|
@@ -30,7 +30,7 @@ if (Test-Path -Path "~/AppData/Roaming/npm/figlet") { # may be ensure that util
|
|
|
30
30
|
if (Test-Path -Path "~/AppData/Local/Microsoft/WindowsApps/boxes.exe") { # may be ensure that utility.cmd is available
|
|
31
31
|
Write-Output "boxes already installed ✅"
|
|
32
32
|
} else {
|
|
33
|
-
|
|
33
|
+
. "$env:USERPROFILE\code\machineconfig\.venv\Scripts\Activate.ps1"
|
|
34
34
|
python -m fire machineconfig.jobs.python_windows_installers.boxes main
|
|
35
35
|
deactivate
|
|
36
36
|
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
(iwr bit.ly/cfgreposwindows).Content | iex
|
|
11
11
|
|
|
12
12
|
# symlinks
|
|
13
|
-
.
|
|
13
|
+
. $HOME/code/machineconfig/src/machineconfig/setup_windows/symlinks.ps1
|
|
14
14
|
|
|
15
15
|
# windows terminal and powershell
|
|
16
16
|
(iwr bit.ly/cfgwt).Content | iex
|