Skip to content

Instantly share code, notes, and snippets.

View cd-stephen's full-sized avatar

stephen cd-stephen

  • Colorado
View GitHub Profile
@cd-stephen
cd-stephen / args_script_template.sh
Created December 21, 2022 21:08 — forked from rragundez/args_script_template.sh
Template of bash script with mandatory and optional arguments
#!/bin/bash
set -e
usage="$(basename "$0") [-h] [-i PROJECT] [-v VM] [-p PYTHON] [-d NOTEBOOKS]
Make a user provide SSH key and jupyter notebooks (in roles/bootstrap/files/notebooks) to each user listed in var/common.yml
where:
-h show this help text
-i google cloud project id
-v name of instance/virtual machine
-p python path