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 | |
imageName=$1 | |
interactiveAndTerminalMode=$2 | |
function checkIfImageExistsOnRepo() { | |
echo $(curl -o /dev/null -s -w "%{http_code}\n" "https://hub.docker.com/_/$imageName/") | |
} | |
function pullAndStartPlainImage() { |
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
#to check which one is the USB | |
sudo fdisk -l | |
#replace of=*name of USB device* | |
sudo dd if=/dev/zero of=*usb* bs=4M status=progress conv=fdatasync | |
#replace if=*distribution iso file* and of=*name of USB device* | |
sudo dd if=*distribution iso file* of=*usb-device* bs=4M status=progress conv=fdatasync |
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/sh | |
# THIS SCRIPT STOPS ALL YOUR DOCKER CONTAINERS , DOWNLOADS MINIKUBE AND KUBECTL . | |
# author : Bilal Asif ( bilal.asif.97@gmail.com ) | |
echo "============================================" | |
echo "DELETING MINIKUBE AND KUBECTL" | |
echo "============================================" | |
docker stop $(docker ps -aq) | |
docker ps -a |