Skip to content

Instantly share code, notes, and snippets.

View aroraayush's full-sized avatar

Ayush Arora aroraayush

View GitHub Profile
Kafka:
Messaging Queue with File System
Developed in Java
Every partition replicated 3 times [1 replica is leader]
Replicas live on separate brokers
If leader goes down, other partition becomes leader
Actors:
Producers
@aroraayush
aroraayush / redis_monitoring.txt
Last active July 18, 2020 22:44
Redis Monitoring
redis-cli -h 10.0.1.252 -p 6379 info
redis-benchmark -h 10.0.1.252 -p 6379 -q -n 100000
redis-cli monitor
redis-cli info Complete info about the redis-instance
redis-cli info server Server Information, cersions, configs, binary
redis-cli info clients Connected clients
redis-cli info memory Statistics about memory usage and limits
@aroraayush
aroraayush / compile-nfs-ganesha-ubuntu-18.04_20.04.md
Last active July 22, 2022 02:47 — forked from cy-lee/compile-nfs-ganesha-ubuntu-16.04
Install / Compile and Build nfs-ganesha under Ubuntu-18.04/20.04
@aroraayush
aroraayush / c_cpp_properties.json
Created June 23, 2020 17:30
VS Code - C++ Mac Setup
{
"configurations": [
{
"name": "Mac",
"includePath": [
"${workspaceFolder}/**",
"/usr/bin/",
"/usr/local/include",
"/Library/Developer/CommandLineTools/usr/include/c++/v1/",
"/Library/Developer/CommandLineTools/usr/lib/clang/11.0.3/include",
@aroraayush
aroraayush / csfbc_sqlalchemy.md
Last active March 2, 2019 08:40
SQLAlchemy MySQL Cheat Sheet

Easy readable md file for sqlalchemy.py based on kenial/csfbc_sqlalchemy.py [https://gist.github.com/kenial/db76f51f4d05e6f0bb67]

Cheat Sheet For Busy Coders: SQLAlchemy #SQL #mysql

#! /usr/bin/python
import sqlalchemy as sa
sa.__version__  # '0.9.4' for me

Sample DB connection string

@aroraayush
aroraayush / pipenv_cheat_sheet.md
Last active September 14, 2019 18:47 — forked from bradtraversy/pipenv_cheat_sheet.md
Pipenv cheat sheet for common commands
@aroraayush
aroraayush / intellij_live_templates.md
Last active September 15, 2018 09:40
Intellij Live Templates
LIVE TEMPLATE SURROUND TEMPLATE - Ctrl+Alt+J
(Alt-CMD-J macOS)
PHP PHP
### vardump($variable);
@aroraayush
aroraayush / .bashrc
Created August 4, 2018 13:57
Strsudo vi ~/.bashrc
alias redis='cd ~/redis-4.0.10/src/ && ./redis-server ../redis.conf'
alias rcli='cd ~/redis-4.0.10/src/ && ./redis-cli'
# source ~/.bashrc
@aroraayush
aroraayush / keybindings.json
Last active August 2, 2018 06:41
vs_code_keybindings
// Place your key bindings in this file to overwrite the defaults
[
{ // console.log(#cursor)
"key": "alt+c",
"command": "editor.action.insertSnippet",
"args": {
"snippet": "console.log(${0:}$SELECTION);"
}
},
{ // alert(#cursor)