Skip to content

Instantly share code, notes, and snippets.

View AkashRajvanshi's full-sized avatar
😎
DevOps

Akash Rajvanshi AkashRajvanshi

😎
DevOps
View GitHub Profile
@AkashRajvanshi
AkashRajvanshi / docker_interview_question.md
Created May 12, 2022 05:47 — forked from bansalankit92/docker_interview_question.md
Docker interview questions and answers all level

What is Hypervisor?

A hypervisor is a software that makes virtualization possible. It is also called Virtual Machine Monitor. It divides the host system and allocates the resources to each divided virtual environment. You can basically have multiple OS on a single host system. There are two types of Hypervisors:

  • Type 1: It’s also called Native Hypervisor or Bare metal Hypervisor. It runs directly on the underlying host system. It has direct access to your host’s system hardware and hence does not require a base server operating system.
  • Type 2: This kind of hypervisor makes use of the underlying host operating system. It’s also called Hosted Hypervisor.

What is virtualization?

Virtualization is the process of creating a software-based, virtual version of something(compute storage, servers, application, etc.). These virtual versions or environments are created from a single physical hardware system. Virtualization lets you split one system into many different sections which act like separ

Questions are not from any actual exam!!!
Q: Create a job that calculates pi to 2000 decimal points using the container with the image named perl
and the following commands issued to the container: ["perl", "-Mbignum=bpi", "-wle", "print bpi(2000)"]
Once the job has completed, check the logs to and export the result to pi-result.txt.
Solution:
{"keys":[{"kty":"RSA","e":"AQAB","n":"ALspOgJc9TixISGrf8m3FbRRMJ0EZNcgJSVb-ELyRMHbtLyG92bHPclIt6JrvORSIuEz1G7rBogtVeBMe65MIem9T-_1Yf2u3fUYEm-kSRnMqMMEJSZ9zVZRdPLDbhfhr4F7EnYGup49EU7jfmXGM9B2zkGzqh7MJKgENXlGIJ-XK71aWJEa7ciFJomUuineOVGGjtLtZPLXAKmC3Wtmj9xbaMEkdEUaCJqnnnq5HISdKK_c6GThCsQR_RF63_ICQ5vG58_UO8l5IEFv2QfmU_7l_3sMruKosdjLh90kHaSqToYdUEt0q_SvRdM0bx5n_TmzXkNys0gihfh4qn-QQvk="}]}
{"keys":[{"kty":"RSA","e":"AQAB","n":"AMMTOEJrpclG10hcGx7qvnMxcLisIN_eeX1nyZhaNBCi8MHjpHGMZ2EvhCbzY0I6zENT0KHZ9H6f6niVQslj0F7Ds2f0rrd-EdgQwluvxY6zY2o0_UZ0r3_oL9gf4jbrs98eLj9lXM8XJpBnbhC6uFLsAMtSGDiU6fA1Bl0JTtUmKBERVrxeoeho_2PKkBNzRslct9fvprOtGLnTHkwxaE3RFr4b3RtPfJh9qdDHYfwuXQjZtk6mcnAouqx7Kx9oRA6IXI0ZK64mNlbgObZ-y7eFiHjobJpiQ3Fun_im66Q4sgKQda4tqb1e6zOFEE67BmBwaGk6MHWN3SV_Fd5NEh0="}]}
@AkashRajvanshi
AkashRajvanshi / generate-ssh-key.sh
Created March 28, 2021 07:13 — forked from grenade/01-generate-ed25519-ssh-key.sh
Correct file permissions for ssh keys and config.
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/id_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/github_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/mozilla_rsa

Keybase proof

I hereby claim:

  • I am akashrajvanshi on github.
  • I am hacstac (https://keybase.io/hacstac) on keybase.
  • I have a public key ASD7dJJ47sRzrg_JqmN3EK_JhC1USIKIT3BkK6AnmSKNLgo

To claim this, I am signing this object:

@AkashRajvanshi
AkashRajvanshi / multiple_ssh_setting.md
Created March 5, 2021 11:15 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "[email protected]"
# Check for turnkey templates, if not shows : Go to Proxmox Server Console -> `$ pveam update`
# Select turnkey-core ( It is optimized debian Container Image by turnkey project )
# Note - Uncheck the priviledged container option
# Add resources and bootup container
# Install docker as per debian ( It uses very minimal reosurce, You can setup two three docker container in less then a 1 GB Ram)
# Extra Tip: Select the ID Criteria for Containers & VM's:
- VMS: 100-199
# Setup Influx DB on any server ( as per os )
# Edit /etc/influxdb/influxdb.conf
[[udp]]
enabled = true
bind-address = "0.0.0.0:8089"
database = "proxmox"
batch-size = 1000
batch-timeout = "1s"