This is great when testing a local version of something like a client library and you need to test your changes and not import the globally installed version.
import sys
sys.path.insert(0, "/path/to/your/package_or_module")
import my_module
#!/bin/bash | |
# Copy a set of files to each repo in a dir, create a branch, and push to origin | |
# Requires GitHub CLI: `brew install gh` and must be logged in with `gh auth login` | |
# GitHub CLI Docs: https://cli.github.com/manual/ | |
MAIN_BRANCH="master" | |
BRANCH_NAME="ignore_cassette_diffs" | |
COMMIT_MESSAGE="chore: ignore cassette diffs via gitattributes" | |
PR_TITLE="$COMMIT_MESSAGE" |
Frameworks such as Laravel will no longer work with the native mysql passwords when upgraded. Follow these steps to correct:
docker exec -it database_container bash
mysql -u root -p
ALTER USER username IDENTIFIED WITH caching_sha2_password BY 'MYPASSWORDHERE';
Guide to migrating Google Drives across domains.
Have you ever needed to migrate files or an entire drive structure from one domain to another? Many people have. Whether you rebrand or just want to share some files with another company quickly, there is a growing need to do this; however, Google does not provide a way to automatically migrate files across domains. I spent the last two years brainstorming and testing methods to do this after the company I worked for rebranded and we suddenly had a need to move 4+ terrabytes of data and thousands of folders across domains. Here is the journey we took to get there.
Have you ever pushed something you wish you hadn't? There is a simple solution to this problem. You can reset your latest commit and then push that to remote as if the commit never happened.
Warning: Doing so will remove that commit. This is detremental to repos that have collaborators on them. Only use these on branches only you have access to (feature branches) or on private repos. Using this method on the master/develop branch is highly discouraged.
# Roll us back to the last commit
Use the following commands to setup Hombrew as a standard user getting around needing sudo access for most packages.
NOTE: This still requires an admin to install Homebrew initially. After the ownership change, the standard user can use Homebrew moving forward.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"