A collection of scripts and tools to help with GCP configurations.
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 | |
# Script to create Docker volumes from .tar files | |
# It will list all .tar files in the current directory and allow the user to select the ones to import | |
# The script will create a Docker volume for each selected .tar file and populate it with the contents of the .tar file | |
# The volume will be named after the .tar file, with the .tar extension removed and any "_backup," "_tar," "_export," and "_volume" suffixes removed. | |
# ANSI color codes | |
RED='\033[1;31m' | |
YELLOW='\033[0;33m' |
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 | |
# Simple script to download files from a GitHub Gist. | |
# Script will prompt for a Gist URL (e.g. https://gist.github.com/username/gistId.git), then display the files available to download, alongside row numbers. | |
# NB: Multiple files can be downloaded at once by entering the row numbers separated by spaces. | |
# Get Gist URL from the user | |
echo "Enter the Gist URL:" | |
read gistUrl |
A collection of useful scripts for managing GCP Cloud Scheduler jobs.
- create_cloud_scheduler_job - Creates a Cloud Scheduler job.
- delete_cloud_scheduler_jobs - Deletes Cloud Scheduler jobs.
- decribe_cloud_scheduler_jobs - Describes Cloud Scheduler jobs.
- force_run_cloud_scheduler_job - Forces a Cloud Scheduler job to run.