Skip to content

Instantly share code, notes, and snippets.

View ezwiefel's full-sized avatar

Erik Zwiefel ezwiefel

View GitHub Profile
@ezwiefel
ezwiefel / enable-swap.sh
Last active June 17, 2021 19:57
AML Compute Instance - Enable Swap Space setup script
#!/bin/bash
# Copyright (c) 2021 Microsoft
#
# This software is released under the MIT License.
# https://opensource.org/licenses/MIT
# ============================================
# AZURE ML COMPUTE INSTANCE - ENABLE SWAP FILE
# ============================================
@ezwiefel
ezwiefel / get-user-ids.sh
Created April 1, 2021 19:23
Get a list of AD Object IDs for a text file with email addresses
filename="attendee-emails.txt"
lines=$(cat $FILENAME)
for user in $lines
do
az ad user show --id $user --query objectId -o tsv >> user_ids.txt
done
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ezwiefel
ezwiefel / AML Environment as Conda kernel.ipynb
Last active May 6, 2024 12:02
Azure Machine Learning environment as Conda kernel in Jupyter / Jupyterlab
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ezwiefel
ezwiefel / Configure AML Widgets for JupyterLab.ipynb
Last active June 27, 2019 20:06
A notebook to configure JupyterLab on an AML Notebook VM to display the AML Widgets
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ezwiefel
ezwiefel / databricks_numpy_uninstall.sh
Last active June 24, 2019 20:52
Databricks init script to uninstall and reinstall Numpy. It uses the 'nuclear' option - of double uninstalling and then removing the site-package from the file system.
/databricks/python3/bin/pip3 uninstall -y numpy pandas
/databricks/python3/bin/pip3 uninstall -y numpy || echo "Numpy uninstalled"
rm -R /databricks/python3/lib/python3.5/site-packages/numpy || echo "/databricks/python3/lib/python3.5/site-packages/numpy Not Found"
/databricks/python3/bin/pip3 install numpy pandas