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
def licenseinfo(desc: str, year: str, *args) -> None: | |
""" | |
Print out program license info in GNU GPLv3 format to standard output. | |
### Parameters: | |
:param desc: Name and short description of program. | |
:param year: Year of copyright. | |
- args | |
- author(s): Names of authors that hold copyright on program. | |
""" |
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
import os | |
def versioninfo(name: str, year: str, show_w: str, show_c: str, *args, **kwargs) -> None: | |
""" | |
Print out program version info in GNU GPLv3 format to standard output. | |
### Parameters: | |
:param name: Name of program. | |
:param year: Year of copyright. |
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 | |
# Use this file if compiling with gcc version 8.3.1 or greater | |
VERSION=3.9.5 INSTALL_DIR=$HOME/sw && \ | |
wget https://www.python.org/ftp/python/$VERSION/Python-$VERSION.tgz -O - | tar -xzv && \ | |
cd Python-$VERSION && \ | |
./configure --enable-shared --enable-optimizations --prefix=$INSTALL_DIR/python-$VERSION && \ | |
make && make install && \ | |
cd .. && rm -rf Python-$VERSION Python-$VERSION.tgz && \ | |
cd $INSTALL_DIR/python-$VERSION/bin && \ |
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
import tarfile | |
from zipfile import ZipFile | |
from tqdm import tqdm | |
from ..filesystem import getpaths as gp | |
class Compression: | |
def __init__(self, directory: str, name: str) -> None: |
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
import os | |
from typing import List, Union | |
def getdirs(*paths) -> List: | |
""" | |
Get subdirectory structure of passed paths | |
### Parameters: | |
- args |
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 | |
sudo apt-get install $(grep Remove /var/log/apt/history.log | tail -1 | sed -e 's|Remove: ||g' -e 's|([^)]*)||g' -e 's|:[^ ]* ||g' -e 's|,||g') |
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 | |
######################################### | |
# | |
# Install Apptainer dependencies | |
# | |
######################################### | |
sudo apt-get update && sudo apt-get install -y \ | |
build-essential \ |
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 | |
echo "Begin environment relocation." | |
NEW_ENV_DIR=$1 | |
BASE_ENV=$(conda info --base) | |
######################################### | |
# | |
# Install jq locally | |
# |
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 | |
TARGET_USER=$1 | |
HOME_DIR=$2 | |
mkdir -p /opt/sw && cd /opt/sw | |
######################################### | |
# | |
# Author: Jason C. Nucciarone | |
# Last Revision: 6/14/22 @ 23:04 EST |
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
# Set up local environment for working with the OpenStack cluster | |
source ~/.novarc | |
# Install OpenStack CLI | |
sudo snap install openstackclients | |
# Create ssh key for access to Nova VMs | |
ssh-keygen -t rsa -b 4096 -q -N '' -f ~/cloud-keys/id_overcloud | |
openstack keypair create --public-key ~/cloud-keys/id_overcloud.pub overcloudkey |
OlderNewer