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
#!/bin/bash | |
set -x | |
# Set your ACR name and resource variables | |
ACR_NAME="" | |
SOURCE_RG_C1="<source-resource-group>" | |
MyRegC1="<my-registry>" | |
MyPipelineC1="<my-pipeline>" | |
MyPipelineC1Run="<my-pipeline-run>" | |
MyBlob="<my-storage-blob>" |
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
#!/bin/env bash | |
# shfmt -i 2 -ci -w | |
set -eox | |
wget https://registrationcenter-download.intel.com/akdlm/IRC_NAS/d461a695-6481-426f-a22f-b5644cd1fa8b/l_HPCKit_p_2024.2.1.79_offline.sh | |
sh ./l_HPCKit_p_2024.2.1.79_offline.sh -a --silent --cli --eula accept | |
# pre-requisites | |
apt update && apt install -y \ |
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
# to run podman in a pod | |
# create a priviledge pod | |
cat <<EOF | kubectl apply -f - | |
kind: Pod | |
apiVersion: v1 | |
metadata: | |
name: adcirc-debug | |
spec: | |
containers: |
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
#!/usr/bin/env bash | |
set -x | |
export TORCH_CPP_LOG_LEVEL=INFO | |
export TORCH_DISTRIBUTED_DEBUG=DETAIL | |
export LOGLEVEL=DEBUG | |
export NCCL_DEBUG=warn | |
export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/:/usr/local/nccl-rdma-sharp-plugins/lib:$LD_LIBRARY_PATH | |
export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libnccl.so | |
export NCCL_IB_PCI_RELAXED_ORDERING=1 |
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
AzureDiagnostics | |
| where ResourceType == "AZUREFIREWALLS" | |
| extend | |
proto = extract(@"^([A-Z]+) ",1,msg_s) | |
,src_host = extract(@"request from ([\d\.]*)",1,msg_s) | |
,src_port = extract(@"request from [\d\.]*:(\d+)",1,msg_s) | |
,dest_host = extract(@" to ([-\w\.]+)(:|\. |\.$)",1,msg_s) | |
,dest_port = extract(@" to [-\w\.]+:(\d+)",1,msg_s) | |
,action = iif( | |
msg_s has "was denied" |
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
# when creating a tarball on macOS you might want to exclude the | |
# AppleDouble files and xattr in your tarball | |
# | |
# here is an example: | |
tar --disable-copyfile --no-xattrs -cvzf capsh-0.1.1.tar.gz . |
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
# These steps are known to work on a rpi1,2 and 3. | |
# tested with the Samsung SCX-3400 are needed | |
sudo apt install avahi-daemon cups printer-driver-splix | |
sudo usermod -a -G lpadmin pi | |
sudo cupsctl --remote-any | |
# enable the daemons | |
sudo systemctl enable cups | |
sudo systemctl enable avahi-daemon |
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
#remove the azure cli if installed via apt: | |
sudo apt remove azure-cli | |
#install the azure cli with pip: | |
sudo python3 -m pip install msrest==0.6.21 | |
sudo python3 -m pip install azure.cli |
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
tested on Fedora release 34 (Thirty Four): | |
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc | |
echo -e "[azure-cli] | |
name=Azure CLI | |
baseurl=https://packages.microsoft.com/yumrepos/azure-cli | |
enabled=1 | |
gpgcheck=1 | |
gpgkey=https://packages.microsoft.com/keys/microsoft.asc" | sudo tee /etc/yum.repos.d/azure-cli.repo" |
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
# Use these steps to clear out Github's commit history. | |
# Useful when moving a repo from private to public | |
git checkout --orphan newBranch | |
git add -A # Add all files and commit them | |
git commit | |
git branch -D main # Deletes the main branch | |
git branch -m main # Rename the current branch to main | |
git push -f origin main # Force push master branch to github | |
git gc --aggressive --prune=all # remove the old files |
NewerOlder