This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # alias_python.sh | |
| # | |
| # Purpose: | |
| # This script is designed to save effort when setting up and running Python utilities. It centralizes the process by allowing you to create simple aliases in your .bashrc, so you don't have to remember where each script is located. It also automates the creation of a Python virtual environment, upgrades pip, and installs any requirements listed in a requirements.txt file alongside your script. This makes it easy to keep your Python utilities isolated, up-to-date, and easy to run from anywhere. | |
| # | |
| # Usage: create an alias for this script, add the following line to your ~/.bashrc: | |
| # alias runmyscript='~/scripts/alias_python.sh <venv_path> <script_path>' | |
| # Replace <venv_path> and <script_path> as needed, or call the script directly with your parameters. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # | |
| # ============================================================================== | |
| # WSL aware VSCode (flavor) launcher | |
| # ============================================================================== | |
| # | |
| # This resolves a very disruptive workflow issue where, even when using a WSL terminal directly, VScode projects open in a windows | |
| # environment by default. Making it necessary to use the --remote flag, and to | |
| # specify the remote, or to click through the menus to reopen the project in WSL. | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # purge-git-path-history.sh | |
| # Purges all git history of a file or folder, but keeps its current state in the latest commit. | |
| # Useful for when you've accidentally commited sensitive or confidential information and must purge it from commmit history | |
| # with post-operation guidance, safety checks, and logging. | |
| set -e | |
| usage() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| vagrant : INFO global: Vagrant version: 2.2.9 | |
| At line:1 char:1 | |
| + vagrant up --debug 2>&1 | Tee-Object -FilePath ".\vagrant_clean.log" | |
| + ~~~~~~~~~~~~~~~~~~~~~~~ | |
| + CategoryInfo : NotSpecified: ( INFO global: Vagrant version: 2.2.9:String) [], RemoteException | |
| + FullyQualifiedErrorId : NativeCommandError | |
| INFO global: Ruby version: 2.6.6 | |
| INFO global: RubyGems version: 3.0.3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- https://practicalcoder.com/life.html --> | |
| <html> | |
| <head> | |
| <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> | |
| <style> | |
| .finger-onDiv {cursor: pointer; cursor: hand;} | |
| #msgg {font-size: 18pt} | |
| </style> |