Skip to content

Instantly share code, notes, and snippets.

@ajanderson1
ajanderson1 / create_docker_volmes.sh
Last active December 18, 2023 08:58
Useful Scripts for working with Docker
#!/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'
@ajanderson1
ajanderson1 / _README.md
Last active August 23, 2023 08:09
GCP Configurations

Working with GCP Configuations

A collection of scripts and tools to help with GCP configurations.

@ajanderson1
ajanderson1 / download_files_from_gist.sh
Last active July 12, 2023 09:52
Download files from GitHub Gist
#!/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
@ajanderson1
ajanderson1 / _README.md
Last active July 25, 2023 23:54
Cloud Scheduler Scripts