Skip to content

Instantly share code, notes, and snippets.

View prasanjit-'s full-sized avatar
🇮🇳

Prasanjit Singh prasanjit-

🇮🇳
View GitHub Profile
@prasanjit-
prasanjit- / JAVA BUILD AUTOMATION
Created June 28, 2017 02:58
JAVA BUILD AUTOMATION using Javac | Maven | Ant
'''''''''''''''''''''''''''''''''
JAVA BUILD AUTOMATION
'''''''''''''''''''''''''''''''''
Interpreted --
Input in High Level Language > Interpreter > Converts to Machine Lang > CPU
Examples: shell scripts, php
@prasanjit-
prasanjit- / devops_tools_index.md
Last active July 9, 2017 21:13
DevOps Tools Index
@prasanjit-
prasanjit- / MongoDB.md
Last active July 9, 2017 21:11
MongoDB Essentials

MongoDB with Mongo Express

The following commands will run MongoDB in docker with a MongoDB frontend called Mongo Express:

docker run -d -p 27017:27017 --name mongo-db mongo:3.2.12

docker run -d -p 8081:8081 --name mongo-express \
--link mongo-db:mongo  mongo-express
@prasanjit-
prasanjit- / guestbook_example_k8s.yaml
Created July 26, 2017 20:14
Kubernetes Guest Book Example
apiVersion: v1
kind: Service
metadata:
name: redis-master
labels:
app: redis
tier: backend
role: master
spec:
ports:
@prasanjit-
prasanjit- / kubernetes.txt
Created July 27, 2017 02:38
Kubernetes Fundamentals
::KUBERNETES::
Why do we need Orchestration?
- To start a container cluster with simple commands.
- To auto-scale
- To maintain cluster state
Orchestration Tools for Docker:
@prasanjit-
prasanjit- / migrate-redis.py
Created November 20, 2017 20:39 — forked from thomasst/migrate-redis.py
Migrate Redis data on Amazon ElastiCache
"""
Copies all keys from the source Redis host to the destination Redis host.
Useful to migrate Redis instances where commands like SLAVEOF and MIGRATE are
restricted (e.g. on Amazon ElastiCache).
The script scans through the keyspace of the given database number and uses
a pipeline of DUMP and RESTORE commands to migrate the keys.
Requires Redis 2.8.0 or higher.
@prasanjit-
prasanjit- / docker-cleanup-resources.md
Created January 25, 2018 14:10 — forked from bastman/docker-cleanup-resources.md
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

$ docker volume rm $(docker volume ls -qf dangling=true)

$ docker volume ls -qf dangling=true | xargs -r docker volume rm

@prasanjit-
prasanjit- / Interview Questions
Created August 9, 2018 22:08
DevOps Interview Questions
# Technical Questions [DevOps|System Administration|Mesosphere|Docker]
1. Have you worked with containers? What is a docker basically?
Docker container is an open source software development platform. Its main benefit is to package applications in “containers,” allowing them to be portable among any system running the Linux operating system (OS).
2. What is orchestration in cloud computing?
In most situations, cloud automation describes a task or function accomplished without human intervention. Cloud orchestration describes the arranging and coordination of automated tasks, ultimately resulting in a consolidated process or workflow. It is simplest to see this in an example.
@prasanjit-
prasanjit- / proxmox-private-cloud.md
Created February 4, 2019 07:04
Proxmox Private Cloud

You've probably heard of terms such as KVM and OpenVZ, but until now, large data center virtualization operations were beyond the reach of most individuals or small organizations. In addition, many individuals and organizations face challenges with data privacy relating to having personal or customer data in a public cloud. A relatively simple and inexpensive solution is to run your own private cloud infrastructure inside your firewall.

Proxmox Virtual Environment (PVE) is based on Kernel-based Virtual Machine (KVM) hypervisor and OpenVZ, a solution for container based virtualization. PVE is easy to install and configure. Using its wizard installation and configuration and web-based management interface and consoles, you can have an easy-to-use virtualization environment in under an hour even if you have little experience in virtualization. PVE is made by Proxmox Server Solutions GmbH is a privately held corporation based in Vienna, Austria.

Once installed and configured, you can choose from a variety of ea

@prasanjit-
prasanjit- / vtiger_installation.sh
Last active April 4, 2021 16:38
Install Vtiger 7.1 on CentOS7
#!/bin/bash
#....................................................................#
# Script: Installs LAMP, PhpMyadmin & Vtiger 7.1 on a fresh CentOS-7
# Author: Prasanjit Singh
#....................................................................#
# INSTALL LAMP
cd /tmp/
yum install wget vim telnet systemd -y
yum -y update