You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Instantly share code, notes, and snippets.
Linda Sheard
lindacmsheard
Mostly here to tinker with graph data and geospatial data - not here in an official capacity, but always happy to help with AI & Analytics on Azure too.
Dealing with merge conflicts in Git - the short and simple explanation
Dealing with merge conflicts
Merge conflicts are not scary. Any good text editor like VSCode for example will help with buttons and visualisations of what you need to do. But here's the gist...
When a merge conflict occurs, git will actually insert some lines in the file to mark the spot and show both versions of lines that are conflicting:
Note: these are tested on WSLv2 - add them to ~/.bash_aliases or other bash profile file.
Open sites in browser
alias newgist='wslview https://gist.github.com'alias newgit='wslview https://github.com'alias ap='wslview https://portal.azure.com'# go to current repo web page - requires cli.github.com (ref [1])alias gg='gh repo view --web'
Azure ML Management: use the Azure cli to check for running AML compute instances
This file contains 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
Using Device Login with Azure ML when working with multiple tenants.
The Device login routine used by the AML Python SDK uses the default tenant associated with the login account. This can create issues when working with AML instances in other tenants.
Use the simple login if your AML workspace is within your default tenant. Use the alternative login to force login into a specific tenant.
Simple login to workspace:
This uses the config.json file in the directory structure of the local system. For an AML-provisioned compute VM, this file is located at the root /config.json. If you get an error here as a result of logging into the wrong tenant, use the alternative below.
from azureml.core import Workspace
ws.Workspace.from_config()
Conda helps you manage python environments on your local machine, keeping your system python free of packages that you may need for your python experiments.
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh
# yes yessource~/.bashrc
rm Miniconda3-latest-Linux-x86_64.sh
# to ensure WSL can start normally without an active conda env