Skip to content

Instantly share code, notes, and snippets.

View doogle-oss's full-sized avatar

Debabrata Patnaik doogle-oss

  • JP MORGAN CHASE N.A.
  • Bengaluru
  • 10:09 (UTC +05:30)
  • X @i_m_debu
View GitHub Profile
@doogle-oss
doogle-oss / 01.MONGO DB SCHEMA DESIGN.md
Last active April 6, 2025 12:07
Learn Mongo DB - Various Notes

In MongoDB, we have to base our modeling on our application-specific data access patterns. Finding out the questions that our users will have is paramount to designing our entities. In contrast to an RDBMS, data duplication and denormalization are used far more frequently, for good reason.

Supported Data Types

The sorting order of different types of data, from highest to lowest, is as follows:
Max. key/Regular expression/Timestamp/Date/Boolean/ObjectID/Binary data/Array/string/Numbers/Null/Min. key

Screenshot 2023-01-16 at 8 00 07 AM

Schema Design

  • Index early and often
package com.example.codecs;
import io.quarkus.kafka.client.serialization.ObjectMapperDeserializer;
import org.kie.kogito.event.process.ProcessInstanceDataEvent;
public class ProcessInstanceDataEventDeserializer extends ObjectMapperDeserializer<ProcessInstanceDataEvent> {
public ProcessInstanceDataEventDeserializer() {
super(ProcessInstanceDataEvent.class);
}
}
@doogle-oss
doogle-oss / ckad_exam.md
Last active May 27, 2025 15:51
CKAD Exam

===========================================================================================

get contexts

alias k=kubectl
k config get-context
k config current-context
echo " k config current-context" > /opt/course/1/context_default_kubectl.sh
chmod +x /opt/course/1/context_default_kubectl.sh
bash /opt/course/1/context_default_kubectl.sh
cat .kube/config | grep current
@doogle-oss
doogle-oss / 4. MONGODB CRUD OPERATIONS.md
Last active May 25, 2023 04:16
MongoDB Crud Operations

Create a new db via mongosh or change to exisiting db.

use oreillylearning
switched to db oreillylearning
db
oreillylearning

db.books.insertOne({title: 'mastering oreilly mongoDB', isbn: 101})
db.books.find()
[filter "lfs"]
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
[user]
name = DDDD PPPP
email = [email protected]
[core]
autocrlf = Input
@doogle-oss
doogle-oss / 1.README.MD
Created May 29, 2023 16:52
QUARKUS VSCODE CMDER AKA CONEMU

If using cmder do use a custom shell executable to run tasks else you might find source file not found issue.

"windows": {
    "options": {
      "shell": {
        "executable": "cmd.exe",
        "args": [
          "/d", "/c", "[cmder_root]\\vendor\\init.bat", "&&"
 ]
@doogle-oss
doogle-oss / App.java
Last active September 2, 2024 13:34
Rest API university student Max per city for hacker rank
/*
* University Data App
* Description: This Java program retrieves university data from a REST API, performs analysis, and prints results.
* Author: Your Name
*/
package org.doogle;
import java.io.BufferedReader;
import java.io.IOException;