Skip to content

Instantly share code, notes, and snippets.

View akjprajapaty's full-sized avatar
🇮🇳
Linux, AWS, GCP, Azure, Ansible, Jenkins, Bash & Python, Docker, Kubernetes.

ASHISH KUMAR akjprajapaty

🇮🇳
Linux, AWS, GCP, Azure, Ansible, Jenkins, Bash & Python, Docker, Kubernetes.
View GitHub Profile
@akjprajapaty
akjprajapaty / multipass.txt
Created January 26, 2023 20:06
multipass commands
multipass find
multipass launch jammy --name ak-vm
multipass launch jammy --cpus 1 --mem 2G --disk 8G --name ubuntu22lts
multipass stop my-vm
multipass set local.my-vm.cpus=2
multipass set local.my-vm.disk=10G
multipass set local.my-vm.memory=4G
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu_jammy_jellyfish.box"
config.vm.provision "shell", inline: <<-SHELL
apt-get update
apt-get install -y apache2 vim git net-tools
SHELL
config.vm.provision "shell", inline: <<-JEKYLL
apt-get update
apt-get install -y apache2 vim git net-tools
;; Package setup
(require 'package)
(package-initialize)
(add-to-list 'package-archives
'("melpa" . "http://melpa.milkbox.net/packages/") t)
(defvar local-packages '(projectile auto-complete epc jedi))
(defun uninstalled-packages (packages)
update-alternatives --install /usr/bin/python python /usr/bin/python3 10
update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 10
# Install ec2-instance-connect
apt-get install ec2-instance-connect
#Create an IAM user with below policy.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect":"Allow",
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCpqHU8X2ZR3k0UpZex9ZWyel7lBBjNkgYEXqCcLMlYNR5Fs1LTtTE7S16t8flncVn1lTgP+zyknZRG3/p576c0bR9Y7bIFGzUp6LBhrs8dzHx0F9rChgDm2i324YDQwGQHFPifTr7tPV5sPJXq4SE63AEBbG6BR76BTKBANuIFeW3+9Ls1BRBTCug64Kk
f40NU5w+tiVrcgwmdyp3flWv1kdS1/ikfH4KYSdbO3YlHLZKeiFuDJsjbRxvZrcyoVLzpXSukWjNlvC5dg/hLbSvWelJWw2Dt+J5HFl8/tJ6sWQ28edF2QuJKWJ5A/lNO5dMk0flGFAggnWKw3it+eic88i4zv3UvmL0ZRiI1C9uB7bqxU/G7aPJPVafgaBUXJsrPQ3brw9rYolQJrxi1JJH3I1Ytlnq/4u
0+geOjh1q2j8vdaXAy87meXUHd5PGdBHZUVF1jypWXbOf3q67H+yDj2j6Z0fftI8FZkHo5OVPFsf16s7si9OTrJqkJJvayGx6wczbnroDvsuet84/rAh6dhWg2X9R7t6vw3E/2uDE4GsqmnCl3JOTU1g27o4bhC+qq3g8SPqEyPNgmy3HrGK4HNOXjtsw1urUbrcEBSKZphcjHX0tqbcSmT4FQWrQIIDohh
AC/Yv9nhN9A1jhVsR9cVJfpyW9oMzQ2TsU26lIGQw== akjprajapati
https://github.com/paradoxxxzero/butterfly
https://www.npmjs.com/package/web-terminal
http://web-console.org/
https://xtermjs.org/
https://github.com/liftoff/GateOne/
echo "test"