Skip to content

Instantly share code, notes, and snippets.

View ashupednekar's full-sized avatar
:octocat:
git push before everything ;)

Ashu Pednekar ashupednekar

:octocat:
git push before everything ;)
View GitHub Profile
use std::{io::BufReader, time::Duration};
use deadpool::managed::{Pool, PoolConfig};
use tokio::{
io::{self, AsyncBufReadExt, AsyncWriteExt},
net::TcpStream,
sync::broadcast,
};
#[derive(Debug)]
enum Error {
@ashupednekar
ashupednekar / k8s.sh
Last active November 29, 2023 12:04
Kubeadm setup
#!/bin/bash
# Function to print messages with emojis
print_message() {
echo -e "$1 $2"
}
# Take input for fresh install or reset
read -p "Is this a fresh install or reset? (fresh/reset): " install_type