Skip to content

Instantly share code, notes, and snippets.

View KarthickSudhakar's full-sized avatar

Karthick KarthickSudhakar

View GitHub Profile
@KarthickSudhakar
KarthickSudhakar / bootstrap.py
Last active August 11, 2023 18:20
Python based ubuntu bootstrap
#!/usr/bin/env python3
from pathlib import Path
import subprocess
import os
import sys
print(
"""
_ _ _ _ _ _ _ _ _
@KarthickSudhakar
KarthickSudhakar / Vagrantfile
Created April 27, 2023 10:38
KIND - k8s cluster with vagrant and virtualbox as provider
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
# Inline variables
$UBUNTU = <<-'UB1'
sudo sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config
sudo systemctl restart sshd
@KarthickSudhakar
KarthickSudhakar / bootstrap.sh
Last active April 27, 2023 10:48
PoP!_OS Bootstrap Script
#!/usr/bin/env bash
# ____ ____ ____ _______ _____ _______ _____ _____
# | _ \ / __ \ / __ \__ __/ ____|__ __| __ \ /\ | __ \
# | |_) | | | | | | | | | | (___ | | | |__) | / \ | |__) |
# | _ <| | | | | | | | | \___ \ | | | _ / / /\ \ | ___/
# | |_) | |__| | |__| | | | ____) | | | | | \ \ / ____ \| |
# |____/ \____/ \____/ |_| |_____/ |_| |_| \_\/_/ \_\_|
@KarthickSudhakar
KarthickSudhakar / kvm_export_import.sh
Last active March 14, 2024 05:45
Bash script to import and export KVM virtual machine
#!/usr/bin/env bash
# ----------------------------------------------------------------------------------------------------
# AUTHOR : KARTHICK S
# PURPOSE : THIS SCRIPT WILL EXPORT/IMPORT THE CONFIG AND VM DISK.
#
# usage:
# export function will take care of exporting the necessary for all VM. Run as "<scriptname.sh> export"
# import function will take care of importing the necessary for all VM. Run as "<scriptname.sh> import"
#