machineconfig 5.37__py3-none-any.whl → 5.39__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/remote/script_execution.py +0 -1
- machineconfig/cluster/sessions_managers/zellij_utils/process_monitor.py +2 -4
- machineconfig/jobs/installer/check_installations.py +2 -2
- machineconfig/jobs/installer/custom_dev/nerfont_windows_helper.py +12 -12
- machineconfig/jobs/installer/installer_data.json +53 -2
- machineconfig/jobs/windows/archive/archive_pygraphviz.ps1 +1 -3
- machineconfig/profile/create_helper.py +26 -0
- machineconfig/profile/{create.py → create_links.py} +6 -6
- machineconfig/profile/{create_frontend.py → create_links_export.py} +6 -10
- machineconfig/profile/{shell.py → create_shell_profile.py} +12 -37
- machineconfig/scripts/linux/{share_cloud.sh → other/share_cloud.sh} +3 -0
- machineconfig/scripts/linux/z_ls +2 -2
- machineconfig/scripts/python/agents.py +0 -1
- machineconfig/scripts/python/ai/initai.py +3 -4
- machineconfig/scripts/python/ai/scripts/lint_and_type_check.ps1 +0 -1
- machineconfig/scripts/python/ai/scripts/lint_and_type_check.sh +0 -1
- machineconfig/scripts/python/ai/solutions/generic.py +1 -0
- machineconfig/scripts/python/croshell.py +12 -2
- machineconfig/scripts/python/croshell_helpers/start_slidev.py +2 -2
- machineconfig/scripts/python/devops.py +4 -21
- machineconfig/scripts/python/devops_helpers/cli_config.py +8 -8
- machineconfig/scripts/python/devops_helpers/cli_config_dotfile.py +3 -3
- machineconfig/scripts/python/devops_helpers/cli_nw.py +2 -1
- machineconfig/scripts/python/devops_helpers/cli_repos.py +1 -3
- machineconfig/scripts/python/devops_helpers/cli_self.py +22 -9
- machineconfig/scripts/python/devops_helpers/cli_share_server.py +109 -0
- machineconfig/scripts/python/devops_helpers/cli_terminal.py +35 -23
- machineconfig/scripts/python/devops_helpers/devops_status.py +7 -80
- machineconfig/scripts/python/devops_helpers/devops_update_repos.py +64 -45
- machineconfig/scripts/python/devops_helpers/themes/choose_pwsh_theme.ps1 +16 -15
- machineconfig/scripts/python/devops_navigator.py +183 -80
- machineconfig/scripts/python/fire_jobs.py +4 -1
- machineconfig/scripts/python/ftpx.py +0 -1
- machineconfig/scripts/python/helpers_fire/{fire_gemini.py → agentic_frameworks/fire_gemini.py} +12 -9
- machineconfig/scripts/python/helpers_fire/agentic_frameworks/fire_qwen.py +43 -0
- machineconfig/scripts/python/helpers_fire/fire_agents_help_launch.py +4 -4
- machineconfig/scripts/python/helpers_fire/template.ps1 +29 -0
- machineconfig/scripts/python/helpers_fire/template.sh +1 -1
- machineconfig/scripts/python/helpers_repos/cloud_repo_sync.py +3 -3
- machineconfig/scripts/python/interactive.py +5 -4
- machineconfig/scripts/python/nw/mount_nfs +1 -1
- machineconfig/scripts/python/nw/mount_nw_drive +1 -2
- machineconfig/scripts/python/repos_helpers/count_lines_frontend.py +1 -1
- machineconfig/scripts/python/repos_helpers/entrypoint.py +2 -2
- machineconfig/scripts/python/repos_helpers/record.py +2 -2
- machineconfig/scripts/python/sessions_helpers/sessions_multiprocess.py +3 -1
- machineconfig/scripts/windows/{mount_nfs.ps1 → mounts/mount_nfs.ps1} +1 -3
- machineconfig/scripts/windows/{mount_ssh.ps1 → mounts/mount_ssh.ps1} +1 -1
- machineconfig/settings/lf/linux/lfrc +4 -7
- machineconfig/settings/lf/windows/lfrc +4 -22
- machineconfig/settings/lvim/windows/archive/config_additional.lua +0 -6
- machineconfig/settings/pistol/pistol.conf +1 -1
- machineconfig/settings/shells/bash/init.sh +9 -8
- machineconfig/settings/shells/pwsh/init.ps1 +10 -4
- machineconfig/settings/svim/linux/init.toml +0 -4
- machineconfig/settings/svim/windows/init.toml +0 -3
- machineconfig/setup_linux/web_shortcuts/interactive.sh +22 -0
- machineconfig/setup_windows/web_shortcuts/interactive.ps1 +34 -1
- machineconfig/utils/files/dbms.py +4 -1
- machineconfig/utils/installer_utils/installer.py +12 -0
- machineconfig/utils/installer_utils/installer_abc.py +26 -9
- machineconfig/utils/installer_utils/installer_class.py +1 -1
- machineconfig/utils/io.py +0 -18
- machineconfig/utils/scheduler.py +3 -4
- machineconfig/utils/source_of_truth.py +2 -4
- machineconfig/utils/ssh.py +1 -1
- {machineconfig-5.37.dist-info → machineconfig-5.39.dist-info}/METADATA +8 -4
- {machineconfig-5.37.dist-info → machineconfig-5.39.dist-info}/RECORD +84 -114
- machineconfig/jobs/windows/start_terminal.ps1 +0 -6
- machineconfig/jobs/windows/startup_file.cmd +0 -2
- machineconfig/scripts/cloud/init.sh +0 -105
- machineconfig/scripts/linux/agents +0 -2
- machineconfig/scripts/linux/cloud +0 -2
- machineconfig/scripts/linux/croshell +0 -3
- machineconfig/scripts/linux/devops +0 -2
- machineconfig/scripts/linux/fire +0 -2
- machineconfig/scripts/linux/ftpx +0 -2
- machineconfig/scripts/linux/kill_process +0 -2
- machineconfig/scripts/linux/sessions +0 -2
- machineconfig/scripts/linux/start_terminals +0 -3
- machineconfig/scripts/windows/agents.ps1 +0 -1
- machineconfig/scripts/windows/cloud.ps1 +0 -1
- machineconfig/scripts/windows/croshell.ps1 +0 -1
- machineconfig/scripts/windows/devops.ps1 +0 -1
- machineconfig/scripts/windows/fire.ps1 +0 -1
- machineconfig/scripts/windows/ftpx.ps1 +0 -1
- machineconfig/scripts/windows/gpt.ps1 +0 -1
- machineconfig/scripts/windows/grep.ps1 +0 -2
- machineconfig/scripts/windows/kill_process.ps1 +0 -1
- machineconfig/scripts/windows/nano.ps1 +0 -3
- machineconfig/scripts/windows/pomodoro.ps1 +0 -1
- machineconfig/scripts/windows/reload_path.ps1 +0 -3
- machineconfig/scripts/windows/scheduler.ps1 +0 -1
- machineconfig/scripts/windows/sessions.ps1 +0 -1
- machineconfig/scripts/windows/snapshot.ps1 +0 -1
- machineconfig/scripts/windows/start_slidev.ps1 +0 -1
- machineconfig/scripts/windows/start_terminals.ps1 +0 -1
- machineconfig/scripts/windows/wsl_rdp_windows_port_forwarding.ps1 +0 -46
- machineconfig/scripts/windows/wsl_ssh_windows_port_forwarding.ps1 +0 -76
- machineconfig/setup_linux/machineconfig.sh +0 -20
- machineconfig/setup_windows/machineconfig.ps1 +0 -27
- /machineconfig/scripts/linux/{share_nfs → other/share_nfs} +0 -0
- /machineconfig/scripts/linux/{share_smb → other/share_smb} +0 -0
- /machineconfig/scripts/linux/{start_docker → other/start_docker} +0 -0
- /machineconfig/scripts/linux/{switch_ip → other/switch_ip} +0 -0
- /machineconfig/scripts/{windows/share_nfs.ps1 → python/helpers_fire/agentic_frameworks/__init__.py} +0 -0
- /machineconfig/scripts/python/helpers_fire/{fire_crush.json → agentic_frameworks/fire_crush.json} +0 -0
- /machineconfig/scripts/python/helpers_fire/{fire_crush.py → agentic_frameworks/fire_crush.py} +0 -0
- /machineconfig/scripts/python/helpers_fire/{fire_cursor_agents.py → agentic_frameworks/fire_cursor_agents.py} +0 -0
- /machineconfig/scripts/windows/{mount_nw.ps1 → mounts/mount_nw.ps1} +0 -0
- /machineconfig/scripts/windows/{mount_smb.ps1 → mounts/mount_smb.ps1} +0 -0
- /machineconfig/scripts/windows/{share_cloud.cmd → mounts/share_cloud.cmd} +0 -0
- /machineconfig/scripts/windows/{share_smb.ps1 → mounts/share_smb.ps1} +0 -0
- /machineconfig/scripts/windows/{unlock_bitlocker.ps1 → mounts/unlock_bitlocker.ps1} +0 -0
- {machineconfig-5.37.dist-info → machineconfig-5.39.dist-info}/WHEEL +0 -0
- {machineconfig-5.37.dist-info → machineconfig-5.39.dist-info}/entry_points.txt +0 -0
- {machineconfig-5.37.dist-info → machineconfig-5.39.dist-info}/top_level.txt +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
uv run --python 3.13 --no-dev --project $HOME/code/machineconfig kill_process $args
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
uv run --python 3.13 --no-dev --project $HOME/code/machineconfig pomodoro $args
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
uv run --python 3.13 --no-dev --project $HOME/code/machineconfig scheduler $Args
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
uv run --python 3.13 --no-dev --project $HOME/code/machineconfig sessions $args
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
uv run --python 3.13 --no-dev --project $HOME/code/machineconfig snapshot $args
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
uv run --python 3.13 --no-dev --project $HOME/code/machineconfig start_slidev $args
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
uv run --python 3.13 --no-dev --project $HOME/code/machineconfig start_terminals $args
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
$port_num = 3391
|
|
4
|
-
wsl.exe -u root service xrdp start # added by me, to ensure sshd is fired.
|
|
5
|
-
wsl.exe -u root service xrdp status
|
|
6
|
-
# If elevation needed, start new process
|
|
7
|
-
If (-NOT ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator))
|
|
8
|
-
{
|
|
9
|
-
# Relaunch as an elevated process:
|
|
10
|
-
Start-Process powershell.exe "-File",('"{0}"' -f $MyInvocation.MyCommand.Path),"$Args runas" -Verb RunAs
|
|
11
|
-
exit
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
# Check WSL ip address
|
|
16
|
-
wsl hostname -I | Set-Variable -Name "WSL"
|
|
17
|
-
$found = $WSL -match '\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}';
|
|
18
|
-
if (-not $found) {
|
|
19
|
-
echo "WSL2 cannot be found. Terminate script.";
|
|
20
|
-
exit;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
# Remove and Create NetFireWallRule
|
|
25
|
-
Remove-NetFireWallRule -DisplayName 'WSL 2 Firewall Unlock';
|
|
26
|
-
if ($Args[0] -ne "delete") {
|
|
27
|
-
New-NetFirewallRule -DisplayName 'WSL 2 Firewall Unlock2' -Direction Outbound -LocalPort ($port_num) -Action Allow -Protocol TCP;
|
|
28
|
-
New-NetFirewallRule -DisplayName 'WSL 2 Firewall Unlock2' -Direction Inbound -LocalPort ($port_num) -Action Allow -Protocol TCP;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
# Add each port into portproxy
|
|
32
|
-
$Addr = "0.0.0.0"
|
|
33
|
-
iex "netsh interface portproxy delete v4tov4 listenaddress=$Addr listenport=$port_num | Out-Null";
|
|
34
|
-
if ($Args[0] -ne "delete") {
|
|
35
|
-
iex "netsh interface portproxy add v4tov4 listenaddress=$Addr listenport=$port_num connectaddress=$WSL connectport=$port_num | Out-Null";
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
# Display all portproxy information
|
|
40
|
-
netsh interface portproxy show v4tov4;
|
|
41
|
-
|
|
42
|
-
# Give user to chance to see above list when relaunched start
|
|
43
|
-
If ($Args[0] -eq "runas" -Or $Args[1] -eq "runas") {
|
|
44
|
-
Write-Host -NoNewLine 'Press any key to close! ';
|
|
45
|
-
$null = $Host.UI.RawUI.ReadKey('NoEcho,IncludeKeyDown');
|
|
46
|
-
}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# https://gist.github.com/daehahn/497fa04c0156b1a762c70ff3f9f7edae?WT.mc_id=-blog-scottha
|
|
3
|
-
# https://www.hanselman.com/blog/how-to-ssh-into-wsl2-on-windows-10-from-an-external-machine
|
|
4
|
-
# https://learn.microsoft.com/en-us/windows/wsl/networking#accessing-a-wsl-2-distribution-from-your-local-area-network-lan
|
|
5
|
-
# https://www.youtube.com/watch?v=PFI0IQZ9Z2I
|
|
6
|
-
|
|
7
|
-
# WSL2 network port forwarding script v1
|
|
8
|
-
# for enable script, 'Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope CurrentUser' in Powershell,
|
|
9
|
-
# for delete exist rules and ports use 'delete' as parameter, for show ports use 'list' as parameter.
|
|
10
|
-
# written by Daehyuk Ahn, Aug-1-2020
|
|
11
|
-
|
|
12
|
-
Param($p = 2223)
|
|
13
|
-
$port_num = $p
|
|
14
|
-
|
|
15
|
-
#If ($Args[0] -eq $null) {
|
|
16
|
-
# $port_num = 2222;
|
|
17
|
-
# exit;
|
|
18
|
-
#}
|
|
19
|
-
#else {
|
|
20
|
-
# $port_num = $Args[0];
|
|
21
|
-
#}
|
|
22
|
-
# Display all portproxy information
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
If ($Args[0] -eq "list") {
|
|
26
|
-
netsh interface portproxy show v4tov4;
|
|
27
|
-
exit;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
wsl.exe -u root service ssh start # added by me, to ensure sshd is fired.
|
|
31
|
-
wsl.exe -u root service ssh status
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
# If elevation needed, start new process
|
|
35
|
-
If (-NOT ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator))
|
|
36
|
-
{
|
|
37
|
-
# Relaunch as an elevated process:
|
|
38
|
-
Start-Process powershell.exe "-File",('"{0}"' -f $MyInvocation.MyCommand.Path),"$Args runas" -Verb RunAs
|
|
39
|
-
exit
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
# You should modify '$Ports' for your applications
|
|
43
|
-
$Ports = ($port_num) # (22,80,443,8080)
|
|
44
|
-
|
|
45
|
-
# Check WSL ip address
|
|
46
|
-
wsl hostname -I | Set-Variable -Name "WSL"
|
|
47
|
-
$found = $WSL -match '\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}';
|
|
48
|
-
if (-not $found) {
|
|
49
|
-
echo "WSL2 cannot be found. Terminate script.";
|
|
50
|
-
exit;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
# Remove and Create NetFireWallRule
|
|
54
|
-
Remove-NetFireWallRule -DisplayName 'WSL 2 Firewall Unlock';
|
|
55
|
-
if ($Args[0] -ne "delete") {
|
|
56
|
-
New-NetFirewallRule -DisplayName 'WSL 2 Firewall Unlock' -Direction Outbound -LocalPort $Ports -Action Allow -Protocol TCP;
|
|
57
|
-
New-NetFirewallRule -DisplayName 'WSL 2 Firewall Unlock' -Direction Inbound -LocalPort $Ports -Action Allow -Protocol TCP;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
# Add each port into portproxy
|
|
61
|
-
$Addr = "0.0.0.0"
|
|
62
|
-
Foreach ($Port in $Ports) {
|
|
63
|
-
iex "netsh interface portproxy delete v4tov4 listenaddress=$Addr listenport=$Port | Out-Null";
|
|
64
|
-
if ($Args[0] -ne "delete") {
|
|
65
|
-
iex "netsh interface portproxy add v4tov4 listenaddress=$Addr listenport=$Port connectaddress=$WSL connectport=$Port | Out-Null";
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
# Display all portproxy information
|
|
70
|
-
netsh interface portproxy show v4tov4;
|
|
71
|
-
|
|
72
|
-
# Give user to chance to see above list when relaunched start
|
|
73
|
-
If ($Args[0] -eq "runas" -Or $Args[1] -eq "runas") {
|
|
74
|
-
Write-Host -NoNewLine 'Press any key to close! ';
|
|
75
|
-
$null = $Host.UI.RawUI.ReadKey('NoEcho,IncludeKeyDown');
|
|
76
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/bash
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
cd $HOME/code
|
|
5
|
-
if [ -d "machineconfig" ]; then
|
|
6
|
-
echo """🔄 machineconfig directory exists, updating...
|
|
7
|
-
"""
|
|
8
|
-
cd machineconfig
|
|
9
|
-
git reset --hard
|
|
10
|
-
git pull
|
|
11
|
-
cd ..
|
|
12
|
-
else
|
|
13
|
-
echo """⏳ Cloning machineconfig repository...
|
|
14
|
-
"""
|
|
15
|
-
git clone https://github.com/thisismygitrepo/machineconfig --depth 4 # Choose browser-based authentication.
|
|
16
|
-
fi
|
|
17
|
-
|
|
18
|
-
cd $HOME/code/machineconfig
|
|
19
|
-
$HOME/.local/bin/uv sync --no-dev
|
|
20
|
-
# $HOME/.local/bin/uv cache clean
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
cd ~
|
|
3
|
-
mkdir code -ErrorAction SilentlyContinue
|
|
4
|
-
cd ~\code
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
if (-not (Get-Command git.exe -ErrorAction SilentlyContinue)) {
|
|
8
|
-
winget install --no-upgrade --name "Git" --Id Git.Git --source winget --accept-package-agreements --accept-source-agreements --scope user
|
|
9
|
-
$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
# Setup machineconfig repository
|
|
13
|
-
if (Test-Path "machineconfig") {
|
|
14
|
-
Write-Host "🔄 machineconfig directory exists, updating..."
|
|
15
|
-
Set-Location machineconfig
|
|
16
|
-
git reset --hard
|
|
17
|
-
git pull
|
|
18
|
-
Set-Location ..
|
|
19
|
-
} else {
|
|
20
|
-
Write-Host "⏳ Cloning machineconfig repository..."
|
|
21
|
-
git clone https://github.com/thisismygitrepo/machineconfig --depth 4 # Choose browser-based authentication.
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
cd $HOME\code\machineconfig
|
|
26
|
-
& "$HOME\.local\bin\uv.exe" sync --no-dev
|
|
27
|
-
echo "Finished setting up repos"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/machineconfig/scripts/{windows/share_nfs.ps1 → python/helpers_fire/agentic_frameworks/__init__.py}
RENAMED
|
File without changes
|
/machineconfig/scripts/python/helpers_fire/{fire_crush.json → agentic_frameworks/fire_crush.json}
RENAMED
|
File without changes
|
/machineconfig/scripts/python/helpers_fire/{fire_crush.py → agentic_frameworks/fire_crush.py}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|