Skip to content

Instantly share code, notes, and snippets.

View mgpradeepa's full-sized avatar
:octocat:

mgpradeepa mgpradeepa

:octocat:
View GitHub Profile
@mgpradeepa
mgpradeepa / Terraform vs Helm.md
Last active June 14, 2024 05:01
Terraform vs Helm

Create Cloud Infra, maintain, monitor. Also create virtual env for Apps to execute.

For Devops one of the primary focus is to manage the deployment environments. However with so much of varieties devops needs a way to ease it out. Devops team has more responsibility to create and monitor the entire Cloud infra and also create env for the applications to run.

We observe Terraform and Helm are two such ways technologies available to get utilized from. Terraform helps the engineer to direct the need by using HCL files instead of obtaining each cloud components to get the setup done. Terraform needs the requirement of the cloud to be clear and direct it usig HCL (Hashicorp Configuration Language). However Terraform depends on many thirdparty plugins for enabling the cloud infra

HELM

@mgpradeepa
mgpradeepa / boot_directory_fullpop.md
Last active May 13, 2022 11:47
Its obvious to encounter boot space filled. Steps to clear it

** /boot folder gets filled up as and when upgrades are done. How to free it up **

Lets check by auto remove

sudo apt autoremove If the above does not remove old ones lets first check the current kernel thats being used

uname -r

Lists the current used kernel version. Lets remove the earlier versions of the kernel upgrades

@mgpradeepa
mgpradeepa / kafka_handson.md
Last active July 7, 2023 05:59
understanding about Kafka

Apache kafka

Platform for real-time distributed streaming which just behaves like any other MESSAGING system

Design goals

  • Scalability
  • High Volume
  • Data Transformations
  • Low Latency
  • Fault Tolerant
In WINDOWS machines use the following steps
Start putty gen tool in windows
Look at ACTIONS section and choose "Load" button
Browse through the folders to pull the ppk file fo which you need to create a pem file
Key passphrase is optional and cick YES to ignore
From the menu , choose Conversions --> Drop down --> Export OpenSSH Key.
Just say 'Yes' for warning of not entering passphrase
Save the file as <xyz>.pem
The docker system in which docker is installed or running can run into dangling state.
To check whats the disk consumption due to Docker
docker system df
Primarily the issues comes up is with low disk space. Of course this is re-claimable.
Cause for Low disk space are
(a) docker images created during build could be in dangling state
or would have been stored or persisted for a longer time.
Single responsibility to single method
No more than 10 lines of code in a method.
when ever you see extract it right away
have your code comments on the way
use shortcuts on your side
IntelliJ is the best ide to slide
move the responsibility to the classes of its own
@mgpradeepa
mgpradeepa / install_monaco_font.sh
Created April 14, 2019 08:15 — forked from rogerleite/install_monaco_font.sh
Install Monaco font in Linux
#!/bin/bash
#script extraido de: http://paulocassiano.wordpress.com/2008/08/29/deixando-o-gedit-com-a-cara-do-textmate/
#tip for better "resolution" here: http://blog.siverti.com.br/2008/05/22/fonte-monaco-no-ubuntugedit/
cd /usr/share/fonts/truetype/
#TODO: put validation if folder already exists
sudo mkdir ttf-monaco
@mgpradeepa
mgpradeepa / Kafka_setup_debug
Last active March 14, 2023 08:22
Kafka how to configure and debug when in need what to use to check.
OS: Centos
Requisite: JAVA 7+8
sudo vi /etc/profile
export JAVA_HOME=/usr/lib/jvm/jre-1.8.0-openjdk
export JRE_HOME=/usr/lib/jvm/jre
Download Kafka from any of the given website: the one use here is kafka_2.11-0.10.1.1.tgz
Untar: tar -xvf kafka_2.11-0.10.1.1.tgz
sudo mv kafka_2.11-0.10.1.1.tgz /opt
Create user
Login as root
$ sudo su -
$ useradd -m <userName> -p <password>
Add to the group
$ usermod -aG <someGroup> <userName>
For granting sudo or root access
visudo
@mgpradeepa
mgpradeepa / Spring_Integration_handbook.md
Created October 10, 2016 06:58
Spring Integration handbook from ref manual

Spring Integration framework.

Mainly focusses on the Enterprise Integration Application Framework. Design patterns are obtained and utilized as a integration solution from those.

One of the component is Message

Message is a generic wrapper for a java object combined with the metadata used by the framework. Payload & Headers are the key components of a message. Payload:- Can be of anything and any type data. Headers:-
Holds commonly required information like id, time_stamp, correlation_id and return address.