Skip to content

Instantly share code, notes, and snippets.

View prashantsolanki3's full-sized avatar
🎯
Focusing

Prashant Solanki prashantsolanki3

🎯
Focusing
View GitHub Profile
@prashantsolanki3
prashantsolanki3 / create-cloud-template.sh
Created June 28, 2021 07:16 — forked from Oratorian/create-cloud-template.sh
This script will download a cloud image of many Linux distros and create a Proxmox 6 KVM template from it.
#!/bin/bash
set -o errexit
clear
printf "\n*** This script will download a cloud image and create a Proxmox VM template from it. ***\n\n"
### HOW TO USE
### Pre-req:
### - run on a Proxmox 6 server
### - a dhcp server should be active on vmbr1
@prashantsolanki3
prashantsolanki3 / CouchDB_Python.md
Created April 22, 2018 23:43 — forked from marians/CouchDB_Python.md
The missing Python couchdb tutorial

This is an unofficial manual for the couchdb Python module I wish I had had.

Installation

pip install couchdb

Importing the module

@prashantsolanki3
prashantsolanki3 / create_user.sh
Created July 16, 2016 16:07
Script to create a user if it does not already exist in Linux
USER_NAME="testing"
SUCCESS=0
PASSWORD="password"
SUDO=''
if [ "$EUID" -ne 0 ]; then
echo "The script needs root privileges"
SUDO='sudo'
fi
@prashantsolanki3
prashantsolanki3 / common.css
Created February 10, 2016 07:36
Common style for Web Engg lab
body{
text-align: center;
}
table{
border-collapse: collapse;
border : 2px solid black;
width: 50%;
margin: 0 auto;
}
@prashantsolanki3
prashantsolanki3 / FCFS.cpp
Created January 23, 2016 04:10
OS First Come First Serve Exp-1
#include<iostream.h>
#include<conio.h>
int main() {
int n,burst[20],wait[20],tat[20],avgwt=0,avgtat=0,i,j;
clrscr();
cout<<"Enter total number of processes(maximum 20):";