Skip to content

Instantly share code, notes, and snippets.

View vivekkhandelwal1's full-sized avatar

Vivek Khandelwal vivekkhandelwal1

View GitHub Profile
@dan-garvey
dan-garvey / start_instance.sh
Created August 12, 2023 02:30
Script to keep retrying a gcp instance until it starts
#!/bin/bash
# Set the project
PROJECT="nod-cloud"
# Maximum number of attempts before giving up
MAX_ATTEMPTS=50
# Delay between attempts (in seconds)
ATTEMPT_DELAY=15