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
# gist=<rawurl> | |
# curl -o fix-dslr-teams.sh $gist && chmod +x fix-dslr-teams.sh && sudo ./fix-dslr-teams.sh | |
#!/bin/bash | |
echo "Removing signatures" | |
sudo codesign --remove-signature "/Applications/Microsoft Teams.app" && \ | |
sudo codesign --remove-signature "/Applications/Microsoft Teams.app/Contents/MacOS/Teams" && \ | |
sudo codesign --remove-signature "/Applications/Microsoft Teams.app/Contents/Frameworks/Microsoft Teams Helper.app" && \ | |
sudo codesign --remove-signature "/Applications/Microsoft Teams.app/Contents/Frameworks/Microsoft Teams Helper (GPU).app" && \ | |
sudo codesign --remove-signature "/Applications/Microsoft Teams.app/Contents/Frameworks/Microsoft Teams Helper (Plugin).app" && \ | |
sudo codesign --remove-signature "/Applications/Microsoft Teams.app/Contents/Frameworks/Microsoft Teams Helper (Renderer).app" |
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
git checkout master | |
git fetch upstream | |
git merge upstream/master | |
git push |
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
LOCATION=eastus # the location of your cluster | |
RESOURCEGROUP=aro-rg # the name of the resource group where you want to create your cluster | |
CLUSTER=asabbour # the name of your cluster | |
az group create \ | |
--name $RESOURCEGROUP \ | |
--location $LOCATION | |
az network vnet create \ | |
--resource-group $RESOURCEGROUP \ |
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 | |
# Define Environment Variables | |
export RANDOM_STRING=$RANDOM | |
export RESOURCE_GROUP_NAME=rg-${RANDOM_STRING} | |
export RESOURCE_LOCATION=eastus | |
export AKS_CLUSTER_NAME=aks-${RANDOM_STRING} | |
export KEYVAULT_NAME=kv-${RANDOM_STRING} | |
export KEYVAULT_CERTIFICATE_NAME=myKvCertificate | |
export AZUREDNSZONE_NAME=contoso-${RANDOM_STRING}.com |
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 | |
# Get a list of all resource groups in the subscription | |
resource_groups=$(az group list --query '[].name' -o tsv) | |
# Loop through the list of resource groups | |
for rg in $resource_groups | |
do | |
# Check if the resource group has any resources | |
resources=$(az resource list --resource-group $rg --query '[].id' -o tsv) |
OlderNewer