Skip to content

Instantly share code, notes, and snippets.

View BilalAM's full-sized avatar
🚃
hi

Bilal Asif Mirza BilalAM

🚃
hi
  • Munich , Germany.
View GitHub Profile
@BilalAM
BilalAM / install-minikube-complete.sh
Created May 25, 2020 11:56
A script to install minikube and kubectl on your machine
#!/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
@BilalAM
BilalAM / distri-boot.sh
Created August 10, 2019 08:05
Creating BOOTABLE USB from an ISO file
#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
@BilalAM
BilalAM / bash for docker
Created November 17, 2018 20:25
Script for quick docker access (obviously this gist is highly subjected to changes)
#!/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() {