Skip to content

Instantly share code, notes, and snippets.

View abhisekp's full-sized avatar
🏠
Working from home

Abhisek Pattnaik abhisekp

🏠
Working from home
View GitHub Profile
@abhisekp
abhisekp / # Mastering Go Series.md
Last active November 5, 2024 04:10
Mastering Go Series

MongoDB Setup

@abhisekp
abhisekp / Software Interview Prompt.md
Last active March 25, 2024 04:28
Prompt for Interview for Software Engineering

Prompt

Act as a expert in [programming_language] and become an interviewer. I have [X] yrs of experience in software engineering with [Y] yrs experience in [programming_language]. Ask me relevant questions in relation with my answers. Ask questions one by one. Analyse the answers i provide and correct me whenever i am incorrect. Ask various types of questions including theoretical, mcqs, practical, bug finding, output check, fill in the blanks, etc.

@abhisekp
abhisekp / # SaaS Prompt.md
Last active March 25, 2024 04:28
Prompt for building SaaS product

Prompt

<short_descriptive_product_name> System [description_of_product] using React, Typescript, Nodejs. Use AWS services or other OSS. Provide the outline and plantuml architecture diagram, dockercompose. Provide all the modules and features to be included. Frontend should have realtime data update capabilities. Technologies available: redis, kafka, emqx, fastify, tailwind, reactjs, typescript, nodejs, material-ui, daisy-ui, prisma, posgresql, neo4j, mongodb, cassandra, InfluxDB, docker


Replace the <short_descriptive_product_name> and optionally to add a longer description, replace [description_of_product]


Traefik Proxy

@abhisekp
abhisekp / # Posgresql DB.md
Last active January 26, 2024 08:53
Set up postgresql locally using docker

Postgresql DB

Add the following alias to .zshrc or .bashrc file.

alias psql="docker exec -it postgres psql -U abhisekp"
@abhisekp
abhisekp / # Redis Docker.md
Last active December 24, 2023 09:10
Redis Docker Setup

Redis Docker Setup

@abhisekp
abhisekp / # EMQX.md
Last active December 10, 2023 12:30
EMQX MQTT

EMQX

@abhisekp
abhisekp / #Compile and Run rust.md
Last active January 9, 2024 05:42
Compile and Run rust file provided either from file path or piped

Rust Compile, Run, and Clean Script

This Bash script provides a convenient way to compile, run, and optionally delete a Rust executable. It supports various options, including running in a temporary directory, watching for file changes, sending desktop notifications, and installing the script to the user's local ~/bin directory.

Features

Compile and Run

The script compiles and runs a given Rust file. If the compilation and execution are successful, it deletes the generated executable.

@abhisekp
abhisekp / # Portainer_Loki_Promtail_Grafana.md
Last active December 16, 2023 10:21
Setup Portainer + Loki + Promtail + Grafana

Setup Portainer + Loki + Promtail + Grafana in Docker