Skip to content

Instantly share code, notes, and snippets.

View prateek-code-22's full-sized avatar
🎯
Focusing

Prateek Singh prateek-code-22

🎯
Focusing
View GitHub Profile
@prateek-code-22
prateek-code-22 / install_kind.sh
Created August 5, 2025 11:05
Install KIND Cluster on ubuntu
#!/bin/bash
[ $(uname -m) = x86_64 ] && curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.27.0/kind-linux-amd64
chmod +x ./kind
sudo mv ./kind /usr/local/bin/kind
VERSION="v1.30.0"
URL="https://dl.k8s.io/release/${VERSION}/bin/linux/amd64/kubectl"
INSTALL_DIR="/usr/local/bin"
@prateek-code-22
prateek-code-22 / install_docker.sh
Created August 5, 2025 11:00
Install docker on ubuntu
sudo apt-get update
sudo apt-get install docker.io
sudo usermod -aG docker $USER && newgrp docker
sudo systemctl status docker
@prateek-code-22
prateek-code-22 / install_jenkins.sh
Created August 5, 2025 09:12
Install jenkins on ubuntu machine
sudo apt update && sudo apt upgrade -y
sudo apt install openjdk-21-jdk -y
curl -fsSL https://pkg.jenkins.io/debian-stable/jenkins.io-2023.key | sudo tee /usr/share/keyrings/jenkins-keyring.asc > /dev/null
echo "deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc] https://pkg.jenkins.io/debian-stable binary/" | sudo tee /etc/apt/sources.list.d/jenkins.list > /dev/null
sudo apt update && sudo apt install jenkins -y
sudo systemctl enable jenkins
sudo systemctl start jenkins
sudo systemctl status jenkins
sudo cat /var/lib/jenkins/secrets/initialAdminPassword
@prateek-code-22
prateek-code-22 / LoginPage.dart
Created June 3, 2021 14:55
Clearing the text field after returning from home page.
import 'package:catalog_app/utils/route.dart';
import 'package:flutter/material.dart';
import 'package:velocity_x/velocity_x.dart';
class LoginPage extends StatefulWidget {
@override
_LoginPageState createState() => _LoginPageState();
}
class _LoginPageState extends State<LoginPage> {