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 | |
export FILE="cluster_list.txt" | |
arr_memory=() | |
arr_cpu=() | |
for i in $(cat ${FILE}); do | |
echo "Processing cluster: $i" |
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 | |
if [ $# -lt "4" ]; then | |
echo "Usage: $0 <add/delete> <users.csv> <gh-org> <gh-team-slug>" | |
exit 1 | |
fi | |
if [ $1 != "add" ] && [ $1 != "delete" ]; then | |
echo "'$1' is invalid: choose either 'add' or 'delete' as the first argument." | |
exit 1 |
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 remote add template https://github.com/carpentries/styles.git | |
git config --local remote.template.tagOpt --no-tags |
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 | |
# Run a Jupyter Notebook with RAPIDS on Baskerville | |
# Launch interactive session | |
salloc --time=1:00:00 --qos=arc | |
# Run interactive pseudo bash terminal | |
srun --pty /bin/bash -i |
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 -l | |
#SBATCH --output=/scratch/$USER/filename.out | |
echo "Hello, World! From $HOSTNAME" | |
sleep 15 | |
echo "Goodbye, World! From $HOSTNAME" |