machineconfig 1.7__py3-none-any.whl → 1.9__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 (72) hide show
  1. machineconfig/__init__.py +4 -2
  2. machineconfig/jobs/python/check_installations.py +38 -32
  3. machineconfig/jobs/python/create_bootable_media.py +4 -4
  4. machineconfig/jobs/python/create_zellij_template.py +3 -2
  5. machineconfig/jobs/python/python_cargo_build_share.py +14 -9
  6. machineconfig/jobs/python/python_ve_symlink.py +6 -6
  7. machineconfig/jobs/python_custom_installers/azuredatastudio.py +36 -0
  8. machineconfig/jobs/python_custom_installers/bypass_paywall.py +30 -0
  9. machineconfig/jobs/{python_linux_installers/dev → python_custom_installers}/docker_desktop.py +15 -4
  10. machineconfig/jobs/python_custom_installers/gh.py +53 -0
  11. machineconfig/jobs/python_custom_installers/goes.py +35 -0
  12. machineconfig/jobs/python_custom_installers/helix.py +43 -0
  13. machineconfig/jobs/python_custom_installers/lvim.py +48 -0
  14. machineconfig/jobs/python_custom_installers/ngrok.py +39 -0
  15. machineconfig/jobs/python_custom_installers/nvim.py +48 -0
  16. machineconfig/jobs/python_custom_installers/vscode.py +45 -0
  17. machineconfig/jobs/python_custom_installers/wezterm.py +41 -0
  18. machineconfig/profile/create.py +12 -7
  19. machineconfig/profile/shell.py +15 -13
  20. machineconfig/scripts/python/choose_wezterm_theme.py +96 -0
  21. machineconfig/scripts/python/cloud_copy.py +18 -13
  22. machineconfig/scripts/python/cloud_mount.py +41 -15
  23. machineconfig/scripts/python/cloud_repo_sync.py +57 -31
  24. machineconfig/scripts/python/cloud_sync.py +13 -15
  25. machineconfig/scripts/python/croshell.py +19 -10
  26. machineconfig/scripts/python/devops.py +22 -6
  27. machineconfig/scripts/python/devops_add_identity.py +7 -6
  28. machineconfig/scripts/python/devops_add_ssh_key.py +10 -9
  29. machineconfig/scripts/python/devops_backup_retrieve.py +5 -5
  30. machineconfig/scripts/python/devops_devapps_install.py +24 -19
  31. machineconfig/scripts/python/devops_update_repos.py +5 -4
  32. machineconfig/scripts/python/dotfile.py +8 -4
  33. machineconfig/scripts/python/fire_jobs.py +165 -55
  34. machineconfig/scripts/python/ftpx.py +18 -8
  35. machineconfig/scripts/python/mount_nfs.py +13 -10
  36. machineconfig/scripts/python/mount_nw_drive.py +4 -3
  37. machineconfig/scripts/python/mount_ssh.py +8 -5
  38. machineconfig/scripts/python/repos.py +26 -21
  39. machineconfig/scripts/python/snapshot.py +2 -2
  40. machineconfig/scripts/python/start_slidev.py +104 -0
  41. machineconfig/scripts/python/start_terminals.py +1 -1
  42. machineconfig/setup_windows/wt_and_pwsh/set_pwsh_theme.py +20 -34
  43. machineconfig/setup_windows/wt_and_pwsh/set_wt_settings.py +11 -12
  44. machineconfig/utils/installer.py +177 -217
  45. machineconfig/utils/scheduling.py +1 -1
  46. machineconfig/utils/utils.py +107 -54
  47. machineconfig/utils/ve.py +120 -16
  48. machineconfig-1.9.dist-info/LICENSE +201 -0
  49. {machineconfig-1.7.dist-info → machineconfig-1.9.dist-info}/METADATA +155 -140
  50. machineconfig-1.9.dist-info/RECORD +76 -0
  51. {machineconfig-1.7.dist-info → machineconfig-1.9.dist-info}/WHEEL +1 -1
  52. machineconfig/jobs/python_generic_installers/archive/gopass.py +0 -18
  53. machineconfig/jobs/python_generic_installers/archive/nvim.py +0 -20
  54. machineconfig/jobs/python_generic_installers/archive/opencommit.py +0 -25
  55. machineconfig/jobs/python_generic_installers/archive/strongbox.py +0 -33
  56. machineconfig/jobs/python_generic_installers/dev/__init__.py +0 -0
  57. machineconfig/jobs/python_linux_installers/archive/__init__.py +0 -0
  58. machineconfig/jobs/python_linux_installers/archive/bandwhich.py +0 -14
  59. machineconfig/jobs/python_linux_installers/archive/ranger.py +0 -19
  60. machineconfig/jobs/python_linux_installers/dev/azure_data_studio.py +0 -21
  61. machineconfig/jobs/python_linux_installers/dev/bytehound.py +0 -20
  62. machineconfig/jobs/python_linux_installers/dev/nnn.py +0 -22
  63. machineconfig/jobs/python_windows_installers/archive/ntop.py +0 -21
  64. machineconfig/jobs/python_windows_installers/dev/bypass_paywall.py +0 -22
  65. machineconfig/jobs/python_windows_installers/dev/obs_background_removal_plugin.py +0 -22
  66. machineconfig/scripts/python/choose_ohmybash_theme.py +0 -31
  67. machineconfig/scripts/python/choose_ohmyposh_theme.py +0 -57
  68. machineconfig/utils/pandas_type.py +0 -37
  69. machineconfig/utils/to_exe.py +0 -7
  70. machineconfig-1.7.dist-info/RECORD +0 -81
  71. /machineconfig/jobs/{python_generic_installers/archive → python_custom_installers}/__init__.py +0 -0
  72. {machineconfig-1.7.dist-info → machineconfig-1.9.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -1,140 +1,155 @@
1
- Metadata-Version: 2.1
2
- Name: machineconfig
3
- Version: 1.7
4
- Summary: Dotfiles management package
5
- Home-page: https://github.com/thisismygitrepo/machineconfig
6
- Author: Alex Al-Saffar
7
- Author-email: programmer@usa.com
8
- Project-URL: Bug Tracker, https://github.com/thisismygitrepo/machineconfig/issues
9
- Classifier: Programming Language :: Python :: 3
10
- Classifier: License :: OSI Approved :: MIT License
11
- Classifier: Operating System :: OS Independent
12
- Requires-Python: >=3.9
13
- Description-Content-Type: text/markdown
14
- Requires-Dist: rich
15
- Requires-Dist: paramiko
16
- Requires-Dist: gitpython
17
- Requires-Dist: pudb
18
- Requires-Dist: pyfzf
19
- Requires-Dist: clipboard
20
- Requires-Dist: psutil
21
- Requires-Dist: pydantic
22
-
23
-
24
- <p align="center">
25
-
26
- <a href="https://github.com/thisismygitrepo/machineconfig/commits">
27
- <img src="https://img.shields.io/github/commit-activity/m/thisismygitrepo/machineconfig" />
28
- </a>
29
-
30
- </p>
31
-
32
-
33
- # Welcome to machineconfig
34
-
35
- # Shortcuts
36
- * `bit.ly/cfgroot` is a shortcut to this repo.
37
- * `curl bit.ly/cfgread -L | bat -l md --style="header"` to get the readme file.
38
-
39
- Machineconfig is a package for managing configuration files (aka dotfiles). The idea is to collect those critical, time-consuming-files-to-setup in one directory and reference them via symbolic links from their original locations. Thus, when a new machine is to be setup, all that is required is to clone the repo in that machine and create the symbolic links.
40
- Dotfiles include, but are not limited to:
41
- * `~/.gitconfig`
42
- * `~/.ssh`
43
- * `~/.aws`
44
- * `~/.bash_profile`
45
- * `~/.bashrc`
46
- * `~/.config`
47
- * `$profile` in Windows Powershell
48
- * etc
49
-
50
-
51
- Additionally, files that contain data, sensitive information that should not be pushed to a repository are contained in a directory `~/dotfiles`. The files therein are encrypted before backedup.
52
-
53
-
54
- ## Windows Setup
55
- With elevated `PowerShell`, run the following: (short `curl bit.ly/cfgallwindows -L | iex`)
56
- ```shell
57
- # apps # short: `(iwr bit.ly/cfgappswindows).Content | iex`
58
- Invoke-WebRequest https://raw.githubusercontent.com/thisismygitrepo/machineconfig/main/src/machineconfig/setup_windows/apps.ps1 | Invoke-Expression
59
- # virtual enviornment # short (iwr bit.ly/cfgvewindows).Content | iex OR `curl bit.ly/cfgvewindows -L | iex`
60
- Invoke-WebRequest https://raw.githubusercontent.com/thisismygitrepo/machineconfig/main/src/machineconfig/setup_windows/ve.ps1 | Invoke-Expression
61
- # dev repos # short `(iwr bit.ly/cfgreposwindows).Content | iex` OR `curl bit.ly/cfgreposwindows -L | iex`
62
- Invoke-WebRequest https://raw.githubusercontent.com/thisismygitrepo/machineconfig/main/src/machineconfig/setup_windows/repos.ps1 | Invoke-Expression
63
- # symlinks: locally, run: `ftpsx username@hostname[:port] ~/dotfiles -z`, then, on the remote:
64
- . ~/code/machineconfig/src/machineconfig/setup_windows/symlinks.ps1
65
- # devapps:
66
- ~/code/machineconfig/src/machineconfig/setup_windows/devapps.ps1
67
- # pwsh and wt settings: (iwr bit.ly/cfgwt).Content | iex
68
- iwr https://raw.githubusercontent.com/thisismygitrepo/machineconfig/main/src/machineconfig/setup_windows/wt_and_pwsh.ps1 | iex
69
-
70
- ```
71
-
72
- ```shell
73
- (iwr bit.ly/cfgappswindows).Content | iex
74
- (iwr bit.ly/cfgvewindows).Content | iex
75
- (iwr bit.ly/cfgreposwindows).Content | iex
76
- . ~/code/machineconfig/src/machineconfig/setup_windows/devapps.ps1
77
- (iwr bit.ly/cfgwt).Content | iex
78
- . ~/code/machineconfig/src/machineconfig/setup_windows/symlinks.ps1
79
- ```
80
-
81
- ###### Setup SSH connection:
82
- ```shell
83
- # CHANGE pubkey_string APPROPRIATELY
84
- $pubkey_string=(Invoke-WebRequest 'https://github.com/thisismygitrepo.keys').Content
85
- Invoke-WebRequest https://raw.githubusercontent.com/thisismygitrepo/machineconfig/main/src/machineconfig/setup_windows/openssh_all.ps1 | Invoke-Expression
86
- ```
87
- short `(iwr bit.ly/cfgsshwindows).Content | iex` OR `curl bit.ly/cfgsshwindows -L | iex`
88
-
89
- ###### Install Croshell Terminal Directly,
90
- ```shell
91
- Invoke-WebRequest https://raw.githubusercontent.com/thisismygitrepo/machineconfig/main/src/machineconfig/setup_windows/web_shortcuts/croshell.ps1 | Invoke-Expression
92
- ```
93
- short: `curl bit.ly/cfgcroshellwindows -L | iex` OR `(iwr bit.ly/cfgcroshellwindows).Content | iex`
94
-
95
-
96
- # Linux Setup
97
- With `sudo` access, run the following: (short `curl bit.ly/cfgalllinux -L | bash`)
98
- ```bash
99
- # export package_manager="apt"
100
- # export package_manager="nix"
101
-
102
- # apps # short: `curl bit.ly/cfgappslinux -L | bash`
103
- curl https://raw.githubusercontent.com/thisismygitrepo/machineconfig/main/src/machineconfig/setup_linux/apps.sh | bash
104
- # Optionally: curl https://raw.githubusercontent.com/thisismygitrepo/machineconfig/main/src/machineconfig/setup_linux/apps_dev.sh | bash
105
- # virtual enviornment # short `curl bit.ly/cfgvelinux -L | bash`
106
- curl https://raw.githubusercontent.com/thisismygitrepo/machineconfig/main/src/machineconfig/setup_linux/ve.sh | bash
107
- # repos # short `curl bit.ly/cfgreposlinux -L | bash`
108
- curl https://raw.githubusercontent.com/thisismygitrepo/machineconfig/main/src/machineconfig/setup_linux/repos.sh | bash
109
- # symlinks and bash profile.
110
-
111
- # locally, run: `ftpsx username@hostname[:port] ~/dotfiles -z`
112
- # for wsl: wsl_server.ps1; ftpsx $env:USERNAME@localhost:2222 ~/dotfiles -z # OR: ln -s /mnt/c/Users/$(whoami)/dotfiles ~/dotfiles
113
- source ~/code/machineconfig/src/machineconfig/setup_linux/symlinks.sh # requires sudo since it invloves chmod of dotfiles/.ssh, however sudo doesn't work with source. best to have sudo -s earlier.
114
- # devapps
115
- source <(sudo cat ~/code/machineconfig/src/machineconfig/setup_linux/devapps.sh)
116
- ```
117
-
118
- ###### Setup SSH connection:
119
- ```bash
120
- pubkey_url='https://github.com/thisismygitrepo.keys' # (CHANGE APPROPRIATELY)
121
- export pubkey_string=$(curl --silent $pubkey_url)
122
- curl https://raw.githubusercontent.com/thisismygitrepo/machineconfig/main/src/machineconfig/setup_linux/openssh_all.sh | sudo bash
123
- # For WSL only, also run the following:
124
- export port=2223
125
- curl https://raw.githubusercontent.com/thisismygitrepo/machineconfig/main/src/machineconfig/setup_linux/openssh_wsl.sh | sudo bash
126
- # don't forget to run `wsl_ssh_windows_port_forwarding -p 2223` from Windows using the designated port with
127
- ```
128
- short `curl bit.ly/cfgsshlinux -L | bash`
129
-
130
-
131
- ###### Install Croshell Terminal Directly
132
- ```bash
133
- curl https://raw.githubusercontent.com/thisismygitrepo/machineconfig/main/src/machineconfig/setup_linux/web_shortcuts/croshell.sh | sudo bash
134
- ```
135
- short `curl bit.ly/cfgcroshelllinux -L | bash`
136
-
137
-
138
- # Author
139
- Alex Al-Saffar. [email](mailto:programmer@usa.com)
140
-
1
+ Metadata-Version: 2.1
2
+ Name: machineconfig
3
+ Version: 1.9
4
+ Summary: Dotfiles management package
5
+ Home-page: https://github.com/thisismygitrepo/machineconfig
6
+ Author: Alex Al-Saffar
7
+ Author-email: programmer@usa.com
8
+ Project-URL: Bug Tracker, https://github.com/thisismygitrepo/machineconfig/issues
9
+ Classifier: Programming Language :: Python :: 3
10
+ Classifier: License :: OSI Approved :: MIT License
11
+ Classifier: Operating System :: OS Independent
12
+ Requires-Python: >=3.9
13
+ Description-Content-Type: text/markdown
14
+ License-File: LICENSE
15
+ Requires-Dist: rich
16
+ Requires-Dist: paramiko
17
+ Requires-Dist: gitpython
18
+ Requires-Dist: pudb
19
+ Requires-Dist: pyfzf
20
+ Requires-Dist: clipboard
21
+ Requires-Dist: psutil
22
+ Requires-Dist: pydantic
23
+ Requires-Dist: fire
24
+
25
+
26
+ <p align="center">
27
+
28
+ <a href="https://github.com/thisismygitrepo/machineconfig/commits">
29
+ <img src="https://img.shields.io/github/commit-activity/m/thisismygitrepo/machineconfig" />
30
+ </a>
31
+
32
+ </p>
33
+
34
+
35
+ # Welcome to machineconfig
36
+
37
+ # Shortcuts
38
+ * `bit.ly/cfgroot` is a shortcut to this repo.
39
+ * `glow https://bit.ly/cfgread` OR `curl bit.ly/cfgread -L | bat -l md --style="header"` to get the readme file.
40
+
41
+ Machineconfig is a package for managing configuration files (aka dotfiles). The idea is to collect those critical, time-consuming-files-to-setup in one directory and reference them via symbolic links from their original locations. Thus, when a new machine is to be setup, all that is required is to clone the repo in that machine and create the symbolic links.
42
+ Dotfiles include, but are not limited to:
43
+ * `~/.gitconfig`
44
+ * `~/.ssh`
45
+ * `~/.aws`
46
+ * `~/.bash_profile`
47
+ * `~/.bashrc`
48
+ * `~/.config`
49
+ * `$profile` in Windows Powershell
50
+ * etc
51
+
52
+
53
+ Additionally, files that contain data, sensitive information that should not be pushed to a repository are contained in a directory `~/dotfiles`. The files therein are encrypted before backedup.
54
+
55
+
56
+ ## Windows Setup
57
+ With elevated `PowerShell`, run the following: (short `curl bit.ly/cfgallwindows -L | iex`)
58
+
59
+ **You have to have `winget` first. If its not available in the your terminal, try those resources:**
60
+
61
+ * https://github.com/asheroto/winget-install
62
+ * https://github.com/microsoft/winget-cli
63
+ * https://github.com/microsoft/winget-cli/discussions/3258
64
+
65
+
66
+ ```shell
67
+ # apps # short: `(iwr bit.ly/cfgappswindows).Content | iex`
68
+ Invoke-WebRequest https://raw.githubusercontent.com/thisismygitrepo/machineconfig/main/src/machineconfig/setup_windows/apps.ps1 | Invoke-Expression
69
+ # virtual enviornment # short (iwr bit.ly/cfgvewindows).Content | iex OR `curl bit.ly/cfgvewindows -L | iex`
70
+ Invoke-WebRequest https://raw.githubusercontent.com/thisismygitrepo/machineconfig/main/src/machineconfig/setup_windows/ve.ps1 | Invoke-Expression
71
+ # dev repos # short `(iwr bit.ly/cfgreposwindows).Content | iex` OR `curl bit.ly/cfgreposwindows -L | iex`
72
+ Invoke-WebRequest https://raw.githubusercontent.com/thisismygitrepo/machineconfig/main/src/machineconfig/setup_windows/repos.ps1 | Invoke-Expression
73
+ # symlinks # short `(iwr bit.ly/cfgsymlinkswindows).Content | iex` OR `curl bit.ly/cfgsymlinkswindows -L | iex`
74
+ . ~/code/machineconfig/src/machineconfig/setup_windows/symlinks.ps1
75
+ # devapps:
76
+ ~/code/machineconfig/src/machineconfig/setup_windows/devapps.ps1
77
+ # pwsh and wt settings: (iwr bit.ly/cfgwt).Content | iex
78
+ iwr https://raw.githubusercontent.com/thisismygitrepo/machineconfig/main/src/machineconfig/setup_windows/wt_and_pwsh.ps1 | iex
79
+
80
+ ```
81
+
82
+ ```shell
83
+ (iwr bit.ly/cfgappswindows).Content | iex
84
+ (iwr bit.ly/cfgvewindows).Content | iex
85
+ (iwr bit.ly/cfgreposwindows).Content | iex
86
+ . ~/code/machineconfig/src/machineconfig/setup_windows/devapps.ps1
87
+ (iwr bit.ly/cfgwt).Content | iex
88
+ . ~/code/machineconfig/src/machineconfig/setup_windows/symlinks.ps1
89
+ ```
90
+
91
+ ###### Setup SSH connection:
92
+ ```shell
93
+ # CHANGE pubkey_string APPROPRIATELY
94
+ $pubkey_string=(Invoke-WebRequest 'https://github.com/thisismygitrepo.keys').Content
95
+ Invoke-WebRequest https://raw.githubusercontent.com/thisismygitrepo/machineconfig/main/src/machineconfig/setup_windows/openssh_all.ps1 | Invoke-Expression
96
+ ```
97
+ short `(iwr bit.ly/cfgsshwindows).Content | iex` OR `curl bit.ly/cfgsshwindows -L | iex`
98
+
99
+ ###### Install Croshell Terminal Directly,
100
+ ```shell
101
+ Invoke-WebRequest https://raw.githubusercontent.com/thisismygitrepo/machineconfig/main/src/machineconfig/setup_windows/web_shortcuts/croshell.ps1 | Invoke-Expression
102
+ ```
103
+ short: `curl bit.ly/cfgcroshellwindows -L | iex` OR `(iwr bit.ly/cfgcroshellwindows).Content | iex`
104
+
105
+
106
+ # Linux Setup
107
+ With `sudo` access, run the following: (short `curl bit.ly/cfgalllinux -L | bash`)
108
+ ```bash
109
+ export package_manager="apt"
110
+ export package_manager="nix"
111
+
112
+ # apps # short: `curl bit.ly/cfgappslinux -L | bash`
113
+ curl https://raw.githubusercontent.com/thisismygitrepo/machineconfig/main/src/machineconfig/setup_linux/apps.sh | bash
114
+ # Optionally: curl https://raw.githubusercontent.com/thisismygitrepo/machineconfig/main/src/machineconfig/setup_linux/apps_dev.sh | bash
115
+
116
+ # virtual enviornment # short `curl bit.ly/cfgvelinux -L | bash`
117
+ curl https://raw.githubusercontent.com/thisismygitrepo/machineconfig/main/src/machineconfig/setup_linux/ve.sh | bash
118
+
119
+ # repos # short `curl bit.ly/cfgreposlinux -L | bash`
120
+ curl https://raw.githubusercontent.com/thisismygitrepo/machineconfig/main/src/machineconfig/setup_linux/repos.sh | bash
121
+ # symlinks and bash profile: # short `curl bit.ly/cfgsymlinkslinux -L | bash`
122
+ source ~/code/machineconfig/src/machineconfig/setup_linux/symlinks.sh # requires sudo since it invloves chmod of dotfiles/.ssh, however sudo doesn't work with source. best to have sudo -s earlier.
123
+
124
+ # devapps
125
+ source <(sudo cat ~/code/machineconfig/src/machineconfig/setup_linux/devapps.sh)
126
+ ```
127
+
128
+ ###### Setup SSH connection:
129
+ ```bash
130
+ pubkey_url='https://github.com/thisismygitrepo.keys' # (CHANGE APPROPRIATELY)
131
+ export pubkey_string=$(curl --silent $pubkey_url)
132
+ curl https://raw.githubusercontent.com/thisismygitrepo/machineconfig/main/src/machineconfig/setup_linux/openssh_all.sh | sudo bash
133
+ # For WSL only, also run the following:
134
+ export port=2223
135
+ curl https://raw.githubusercontent.com/thisismygitrepo/machineconfig/main/src/machineconfig/setup_linux/openssh_wsl.sh | sudo bash
136
+ # don't forget to run `wsl_ssh_windows_port_forwarding -p 2223` from Windows using the designated port with
137
+ ```
138
+ short `curl bit.ly/cfgsshlinux -L | bash`
139
+
140
+
141
+ ###### Install Croshell Terminal Directly
142
+
143
+ ```bash
144
+
145
+ curl https://raw.githubusercontent.com/thisismygitrepo/machineconfig/main/src/machineconfig/setup_linux/web_shortcuts/croshell.sh | sudo bash
146
+
147
+ ```
148
+ short `curl bit.ly/cfgcroshelllinux -L | bash`
149
+
150
+
151
+ # Author
152
+ Alex Al-Saffar. [email](mailto:programmer@usa.com)
153
+
154
+ [![Alex's github activity graph](https://github-readme-activity-graph.vercel.app/graph?username=thisismygitrepo)](https://github.com/ashutosh00710/github-readme-activity-graph)
155
+
@@ -0,0 +1,76 @@
1
+ machineconfig/__init__.py,sha256=pqYfEucI3yxmMj4QagEtw-SsPc8rml4VU63cPfSVVy4,78
2
+ machineconfig/jobs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ machineconfig/jobs/python/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ machineconfig/jobs/python/check_installations.py,sha256=8ad08MWaIlGsi6NAJkC6fQzinn2EyQZJHbdHW-auqxc,7772
5
+ machineconfig/jobs/python/checkout_version.py,sha256=nrjpz6mK8T7XS1VArFi7slnKKPNlZw0zMr6V2_JeNic,5042
6
+ machineconfig/jobs/python/create_bootable_media.py,sha256=De1_DUXt5oE7PvNY5P9oIdqxD51qZLJjOfB-XMayVKg,585
7
+ machineconfig/jobs/python/create_zellij_template.py,sha256=tIGieeq2n21B_dpgkXiR_Zh2q4xUPG3QhqCwLKCkhog,1301
8
+ machineconfig/jobs/python/python_cargo_build_share.py,sha256=I-xhOKB4Sw0aaPnfk9Ip5Nmu2TOZITsZ_okGrd8deiM,1746
9
+ machineconfig/jobs/python/python_ve_symlink.py,sha256=ZdXuTfEBkO1uYc6F-xg_bWF46ScQ9Xaj3b2dDqO1BL4,837
10
+ machineconfig/jobs/python/tasks.py,sha256=1px4SuPYbcmCTGARxUaKvTx4Hza3yurVWEOqNevbaaM,119
11
+ machineconfig/jobs/python_custom_installers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
+ machineconfig/jobs/python_custom_installers/azuredatastudio.py,sha256=6N8ymUYM1q2T5VKckT8zLwxyDSh2gM33yoIvUovhtsU,1111
13
+ machineconfig/jobs/python_custom_installers/bypass_paywall.py,sha256=NHt1906iUzRtPheKeBZD1Z6Zj3qj7vG75Q0NV3N9NkQ,825
14
+ machineconfig/jobs/python_custom_installers/docker_desktop.py,sha256=IDiAomtf6sjoLMI3meQ_l5cR7kiPGQpfAJl5rYnOyqg,1662
15
+ machineconfig/jobs/python_custom_installers/gh.py,sha256=4XRUUuT5b29V5WAPgJMGqxLqQ9-wbBv-mAisIxUNubQ,1433
16
+ machineconfig/jobs/python_custom_installers/goes.py,sha256=XbUvVqSHwpF7kg2LU5RT3anzznUZHnGUSs9n-I7WadU,876
17
+ machineconfig/jobs/python_custom_installers/helix.py,sha256=OOulJN5k0FTRtQsmaplsT19hFoSeCne24IAb57XOzok,1465
18
+ machineconfig/jobs/python_custom_installers/lvim.py,sha256=NdYjEJhI2q45IhnQutb8XYJKHm11JtEly44NMhCm-zg,1339
19
+ machineconfig/jobs/python_custom_installers/ngrok.py,sha256=6NgHpnsR1kSoG-BBDt2n5Sea-1_SnIx23pRDS1l09tI,1069
20
+ machineconfig/jobs/python_custom_installers/nvim.py,sha256=ZMzzEsql--u0wZYVmP0nGQxOySNTgbbJ9B7kyx__VjQ,1207
21
+ machineconfig/jobs/python_custom_installers/vscode.py,sha256=uV15ABRfK-H4ChsHUj-Al3R6_CHMNpaIaFspzV9vc5I,1322
22
+ machineconfig/jobs/python_custom_installers/wezterm.py,sha256=2VNNNm7RuMApUK7FDhn-IWTv4MpZp7-5P-kDj2IjZv0,1226
23
+ machineconfig/jobs/python_generic_installers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
24
+ machineconfig/jobs/python_linux_installers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
25
+ machineconfig/jobs/python_linux_installers/dev/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
26
+ machineconfig/jobs/python_windows_installers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
27
+ machineconfig/jobs/python_windows_installers/archive/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
28
+ machineconfig/jobs/python_windows_installers/dev/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
29
+ machineconfig/profile/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
30
+ machineconfig/profile/create.py,sha256=aitg44-mDP92p2VnFSJVRJsHW9pjcs7tikVLHoYX84I,5063
31
+ machineconfig/profile/shell.py,sha256=oo40fnLvxcS2K6wvjN4ITVefhkvIW_VbP8Tua_9mqm0,6129
32
+ machineconfig/scripts/__init__.py,sha256=8aZPVoch_gcI0Ihcr30zQcPjRQMWiWzDnQXnOm7spzo,73
33
+ machineconfig/scripts/python/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
34
+ machineconfig/scripts/python/choose_wezterm_theme.py,sha256=2nQ9ruqYENQXYepFTocjeIS03P3mFdUNN8zJxCMA6r4,2697
35
+ machineconfig/scripts/python/cloud_copy.py,sha256=LCbPDuIfvn5tnGlkd4cYABSSgYhu4Kyf2_JcAaoaO8A,4983
36
+ machineconfig/scripts/python/cloud_manager.py,sha256=qfmO63t1LQxO6QHhz3qxePQnas4RsNOjLV1cGK8xK8I,1639
37
+ machineconfig/scripts/python/cloud_mount.py,sha256=7ygg8tu-L-N0Q4KYcV7X2oxQgj6aEF9uIC8YWzdPioc,4882
38
+ machineconfig/scripts/python/cloud_repo_sync.py,sha256=72daMqxkFoplusxkCbgDrR1Il-hBs2BH29QzZi0bJuA,8135
39
+ machineconfig/scripts/python/cloud_sync.py,sha256=iHK-XypTmWxUtVmEeJUHI9AIY1XLzqVrGH3FAxPyaQI,11209
40
+ machineconfig/scripts/python/croshell.py,sha256=JNxEhq_pMyTja08bkZnWa7dtvgbOo4nWlu6epmndViQ,6450
41
+ machineconfig/scripts/python/devops.py,sha256=imvtmo1PRcP-SlGgPK_Eeghd-ZtHWwV30vx6zyG8lps,5363
42
+ machineconfig/scripts/python/devops_add_identity.py,sha256=q0DjXowg0dr5nDVrMdyViF_OQdeTN_fDXTVcVPgddfk,1549
43
+ machineconfig/scripts/python/devops_add_ssh_key.py,sha256=RoHO_lP1DuyKrPl_wYfAJuliRP7CVKssygy3cK2eJXo,3308
44
+ machineconfig/scripts/python/devops_backup_retrieve.py,sha256=sH3a5Uvz5SDhiypP_KIJR1-RiZT-IU8IOJjpvC1UeGk,2443
45
+ machineconfig/scripts/python/devops_devapps_install.py,sha256=c-Qr9L7bt9iflB6k-d3QVs_0fHp-b0FvqOptnk5s7qo,5611
46
+ machineconfig/scripts/python/devops_update_repos.py,sha256=ZW_jI1oNlus929Y2ErXhDWDr6A4SSbTxrutn-__AdI4,2809
47
+ machineconfig/scripts/python/dotfile.py,sha256=1zPwDgCjwsAFNBJ6h9qCTqpPPDpZzjdDkq6rFVlhvdo,1564
48
+ machineconfig/scripts/python/fire_jobs.py,sha256=UnprBED1i4KFh72-Igcg5z-Z4JHA9fulmMqRmP8bQis,19761
49
+ machineconfig/scripts/python/ftpx.py,sha256=PQ7ktw6O4Y9Mv3rdRy8rBPDQQLoEafojTBr5IpLDXW8,4643
50
+ machineconfig/scripts/python/mount_nfs.py,sha256=MLEZ2IjXPLuWqOwzzWhiV8nxcULS32JHzNnrwulmp4I,2485
51
+ machineconfig/scripts/python/mount_nw_drive.py,sha256=2AwmOF1IHI_ET9BBjhgMQ9AGn8uj6zoCC7Rg8Iy0G1A,1005
52
+ machineconfig/scripts/python/mount_ssh.py,sha256=R557UOF3uChH2Mf_eWgSu7GVyzcfNPSaFudn42n51oM,1406
53
+ machineconfig/scripts/python/onetimeshare.py,sha256=tveeuE_PmRuk7hwJy5c53b2eL0lvxR_MACX5X_4syy8,1881
54
+ machineconfig/scripts/python/pomodoro.py,sha256=-ag26tR7dre1Zw4xfKkPERDRvn7xSJkWfBpem8VjJzE,1974
55
+ machineconfig/scripts/python/repos.py,sha256=BsZ4GHaVVou9XlwGidxIcZwghoXOUHZBCiVAmJgkcdw,10412
56
+ machineconfig/scripts/python/scheduler.py,sha256=PN-_GzkcMCAIdxWj_gQQIFR5OKs8pa3aeXn7Bn4YnEM,2305
57
+ machineconfig/scripts/python/snapshot.py,sha256=XxnGc8bOb7vgx-TpJVBzgkzQf9Fcz6VyQ3LH7sOsLDI,622
58
+ machineconfig/scripts/python/start_slidev.py,sha256=mhcXz6LcogTPU1CEGPRzFj8yC_w6ey1k-FeNEfOEiqk,4359
59
+ machineconfig/scripts/python/start_terminals.py,sha256=1BVf6Yrlz3hDZmPS_og4HKfl0Rdcsd-I7JkoNgvpDqs,5442
60
+ machineconfig/scripts/python/wifi_conn.py,sha256=XABEqc_TNdKa-I3J2DmDgEtT5Xt95fcqjNJ9W9MsEPA,2916
61
+ machineconfig/scripts/python/wsl_windows_transfer.py,sha256=YDmN3bjz-auWktIlhkj4pEFykysXtMnpjZobhXJ69d4,2198
62
+ machineconfig/setup_windows/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
63
+ machineconfig/setup_windows/wt_and_pwsh/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
64
+ machineconfig/setup_windows/wt_and_pwsh/set_pwsh_theme.py,sha256=bwOvQ8Lcmxy8Mds3pPR7itZA_8FUMOD5RzGZgrnzDlM,1611
65
+ machineconfig/setup_windows/wt_and_pwsh/set_wt_settings.py,sha256=WgJ9JkrjOZZW8JPw5wdkEIlE7Z4VDkDOXuag1qsqLlo,6242
66
+ machineconfig/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
67
+ machineconfig/utils/installer.py,sha256=LHK2AXDfFi0vs9MP-XorL38hFWMeRyIKq4ZvE2IVgyQ,17952
68
+ machineconfig/utils/procs.py,sha256=GCdvGvowFm-GZe6PLcRe7yaWiBr6QFnSc_lAVWQDKo8,5146
69
+ machineconfig/utils/scheduling.py,sha256=PGSmJPjDN5ZP5pLzzV4aXCRaB71OlMSiEljRkzMWSX8,7341
70
+ machineconfig/utils/utils.py,sha256=aKI0WWN637p_r_x_I4JJMyHSRPTkjX9u0Hse8Z3NkL8,18881
71
+ machineconfig/utils/ve.py,sha256=RC9RGozHJ8qINvfERIInX4eYHVg-RmYUd-UvjBlMRtc,10025
72
+ machineconfig-1.9.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
73
+ machineconfig-1.9.dist-info/METADATA,sha256=fcBtPK9pEK-qDvczTHaeVVW621vtdlMOJ2NsE0M_9Cw,6918
74
+ machineconfig-1.9.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
75
+ machineconfig-1.9.dist-info/top_level.txt,sha256=porRtB8qms8fOIUJgK-tO83_FeH6Bpe12oUVC670teA,14
76
+ machineconfig-1.9.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.41.3)
2
+ Generator: bdist_wheel (0.43.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,18 +0,0 @@
1
- from machineconfig.utils.installer import get_latest_release
2
- from platform import system
3
- # import crocodile.toolbox as tb
4
- from typing import Optional
5
-
6
-
7
- url = r"https://github.com/gopasspw/gopass"
8
- __doc__ = """cli password manager"""
9
-
10
-
11
- def main(version: Optional[str] = None) -> None:
12
- if system() == "Windows": get_latest_release(url, exe_name="gopass", suffix="windows-amd64", download_n_extract=True, strip_v=True, tool_name="gopass", delete=False, version=version)
13
- elif system() == "Linux": get_latest_release(url, exe_name="gopass", suffix="linux-amd64", download_n_extract=True, compression="tar.gz", strip_v=True, tool_name="gopass", delete=False, version=version)
14
- else: raise NotImplementedError(f"System {system()} is not supported")
15
-
16
-
17
- if __name__ == '__main__':
18
- main()
@@ -1,20 +0,0 @@
1
-
2
- """nvim
3
- """
4
-
5
- from machineconfig.utils.installer import get_latest_release
6
- from platform import system
7
- import crocodile.toolbox as tb
8
-
9
- repo_url = tb.P(r"https://github.com/neovim/neovim")
10
- release = get_latest_release(repo_url.as_url_str(), exe_name="nvim", download_n_extract=False)
11
-
12
- if isinstance(release, tb.P):
13
- if system() == 'Windows':
14
- release.joinpath("nvim-win64.msi").download()()
15
- else:
16
- release.joinpath("nvim-linux64.tar.gz").download().ungz_untar(inplace=True)
17
-
18
-
19
- if __name__ == '__main__':
20
- pass