Skip to content

Instantly share code, notes, and snippets.

View whitebrandy's full-sized avatar

Bandan Das whitebrandy

View GitHub Profile
@whitebrandy
whitebrandy / rh_image_builder.sh
Last active January 20, 2023 12:16
Script to create a cloud image using the builder_image API
#!/usr/bin/env bash
GREEN='\033[0;32m'
RED='\033[0;31m'
NOCOLOR='\033[0m'
WARNMSG="Could not generate a valid access token, it happens... just rerun the command or get a new offline token"
warnmsg () {
printf "${RED} $1"
printf "${NOCOLOR}"
@whitebrandy
whitebrandy / createbackuptunnel.py
Last active December 26, 2022 06:48
Sample script to initiate backup tunnel
#/usr/bin/env python
import sys, errno
import select
import os
import urllib.request
import subprocess
from subprocess import Popen, PIPE
import time
import signal