Skip to content

Instantly share code, notes, and snippets.

View Elanza-48's full-sized avatar
🛰️
Happy Coding !

Rajarshi Kundu Elanza-48

🛰️
Happy Coding !
  • Bengaluru, India
  • 22:22 (UTC +05:30)
View GitHub Profile
@Elanza-48
Elanza-48 / kafka-docker-compose.yml
Created December 27, 2023 16:28
Kafka 3 Node Cluster with Conduktor UI
services:
zoo1:
image: confluentinc/cp-zookeeper:7.3.2
hostname: zoo1
container_name: zoo1
ports:
- "2181:2181"
environment:
ZOOKEEPER_CLIENT_PORT: 2181
@Elanza-48
Elanza-48 / nginx-tuning.md
Created October 5, 2023 11:40 — forked from denji/nginx-tuning.md
NGINX tuning for best performance

NGINX Tuning For Best Performance

For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.

Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon with HyperThreading enabled, but it can work without problem on slower machines.

You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.

@Elanza-48
Elanza-48 / cryptLib.browser.js
Created September 10, 2023 16:57
Web Crypto Lib for message (object) encryption & decryption using string key using AES.
'use strict';
class CryptLib {
constructor() {}
async arrayBufferToHexString(buffer) {
if (!(buffer instanceof ArrayBuffer)) throw "not an ArrayBuffer !";
let view = new DataView(buffer);
@Elanza-48
Elanza-48 / SpringSecurityTutorial.md
Created November 2, 2021 09:29
Spring Security Working Summary

spring-security-roles-hierarchy

Spring boot based roles hierarchy project with spring security

Spring Security

Spring Security is a security framework that provides declarative security for Spring-based applications.
Based on the Spring Framework, Spring Security takes full advantage of dependency injection (DI) and aspect-oriented techniques.

  • Spring Security is dedicated to providing a full array of security services to Java applications in a developer-friendly and flexible way.
@Elanza-48
Elanza-48 / TSM_PGSQL.sql
Last active August 31, 2021 14:30
Tourism management system PostgresSQL complex
CREATE SCHEMA IF NOT EXISTS tourism_management_system;
---------- ENTITY 1 ----------
CREATE SEQUENCE tourism_management_system.user_Account_id_seq
AS INTEGER MINVALUE 1 NO CYCLE;
CREATE TYPE tourism_management_system.uAcc_role_enum AS ENUM (
'USER',
'MANAGER',
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Elanza-48
Elanza-48 / HRDataset_v13.csv
Created April 10, 2020 14:49
[DATASET] For HR data analysis project.
We can make this file beautiful and searchable if this error is corrected: It looks like row 4 should actually have 35 columns, instead of 16 in line 3.
Employee_Name,EmpID,MarriedID,MaritalStatusID,GenderID,EmpStatusID,DeptID,PerfScoreID,FromDiversityJobFairID,PayRate,Termd,PositionID,Position,State,Zip,DOB,Sex,MaritalDesc,CitizenDesc,HispanicLatino,RaceDesc,DateofHire,DateofTermination,TermReason,EmploymentStatus,Department,ManagerName,ManagerID,RecruitmentSource,PerformanceScore,EngagementSurvey,EmpSatisfaction,SpecialProjectsCount,LastPerformanceReview_Date,DaysLateLast30
"Brown, Mia",1103024456,1,1,0,1,1,3,1,28.5,0,1,Accountant I,MA,1450,11/24/1987,F,Married,US Citizen,No,Black or African American,10/27/2008,,N/A - still employed,Active,Admin Offices,Brandon R. LeBlanc,1,Diversity Job Fair,Fully Meets,2.04,2,6,1/15/2019,0
"LaRotonda, William ",1106026572,0,2,1,1,1,3,0,23,0,1,Accountant I,MA,1460,4/26/1984,M ,Divorced,US Citizen,No,Black or African American,1/6/2014,,N/A - still employed,Active,Admin Offices,Brandon R. LeBlanc,1,Website Banner Ads,Fully Meets,5,4,4,1/17/2019,0
"Steans, Tyrone ",1302053333,0,0,1,1,1,3,0,29,0,1,Accountant I,MA,2703,9/1/19