Alejandro Ciuba, alc307@pitt.edu
This repository contains a collection of various bash
and shell
scripts I've written that i think could be useful to other people. There will be general instructions on how to use them below.
This script is for mass-installing useful Python packages (ideally in an Anaconda/Miniconda environment). To do this, download the file and follow these instructions:
- type
sudo bash <FILEPATH>/python-installs.sh
- Select which groups of packages you wish to install
To change or add package groups, go into the python-installs.sh
file itself and change the following:
# Things to download
essentials=("numpy" "pandas" "matplotlib" "seaborn" "jupyter" "PyPDF2" "requests")
machine_learning=("sklearn" "transformers" "datasets" "evaluate" "torchmetrics")
natural_language_processing=("nltk" "bs4" "jiwer")
wave_files=("wave" "PyDub")
YOUR_GROUP=("PACKAGE01" "PACKAGE02" "PACKAGE03")
To contain more packages, if you wish to add more groups:
- Copy one of the previously shown lines
- Update
display_package_set()
accordingly - Change add the following line just before
exit
at approximately line 89:
### NEW LINE FOR ADDITIONAL PACKAGE GROUPS
if ((${option} == <NEW_NUMBER> || ${option} == 1)); then
download ${<PACKAGE_NAME>[@]}
fi
This script is to make mass-checking git repositories easier. With the alias command (I usually use check
), you can:
- See which repositories need to be committed
- Automatically commit all non-committed repositories with the same message (
check -m "<message"
) - Automatically push all non-committed repositories to their upstreams (
check -pm "<message>"
) - Automatically pull from all committed repositories' upstreams to update them (
check -b
)
The script takes a given list of repositories to check with check -l "<repository_list>"
as a .txt
file.
To use, please download the script and follow these instructions:
- Create a
repository_list.txt
file to store all the repositories you want to check:
repo1
repo2
...
NOTE: Leave a blank space at the end of the file so the script can correctly parse it. Otherwise, the last repository will not be read into the check loop. Also DO NOT include home/<USERNAME>/
, start immediately after that.
- Create a
.bash_aliases
file in your home directory with the following:
alias check="<FILEPATH>/git_checker.sh -l '<FILEPATH>/repository_list.txt'"
NOTE: This should be the ABSOLUTE PATH fully written out (no ~/
), example: -l '/home/${USERNAME}/lists/repository_list.txt