Skip to content

Instantly share code, notes, and snippets.

View muhammadddev's full-sized avatar
🎯
Focusing

Muhammad muhammadddev

🎯
Focusing
View GitHub Profile
@jkreps
jkreps / benchmark-commands.txt
Last active June 17, 2024 03:54
Kafka Benchmark Commands
Producer
Setup
bin/kafka-topics.sh --zookeeper esv4-hcl197.grid.linkedin.com:2181 --create --topic test-rep-one --partitions 6 --replication-factor 1
bin/kafka-topics.sh --zookeeper esv4-hcl197.grid.linkedin.com:2181 --create --topic test --partitions 6 --replication-factor 3
Single thread, no replication
bin/kafka-run-class.sh org.apache.kafka.clients.tools.ProducerPerformance test7 50000000 100 -1 acks=1 bootstrap.servers=esv4-hcl198.grid.linkedin.com:9092 buffer.memory=67108864 batch.size=8196
@jainxy
jainxy / Useful Links on Tech
Last active January 28, 2024 11:29
Good resources over web on variety of tech topics
@Z4HRA-S
Z4HRA-S / profiler.py
Created July 16, 2021 07:20
Here is a module for profiling CPU and memory usage in python.The CumulativeProfile class is used as a decorator for monitoring CPU Consumption and RAM Utilization of a function.
from datetime import datetime
import cProfile
import time
import logging
import multiprocessing as mp
import psutil
class CumulativeProfile:
def __init__(self, func, v=0):
self.__name__ = func.__name__
@soof-golan
soof-golan / Dockerfile
Last active July 9, 2024 10:16
Python + Poetry + Docker Example
FROM python:3.10 as python-base
# https://python-poetry.org/docs#ci-recommendations
ENV POETRY_VERSION=1.2.0
ENV POETRY_HOME=/opt/poetry
ENV POETRY_VENV=/opt/poetry-venv
# Tell Poetry where to place its cache and virtual environment
ENV POETRY_CACHE_DIR=/opt/.cache
@AdamISZ
AdamISZ / chaumian.md
Last active July 17, 2024 02:08
Chaumian ecash designs, notes

Chaumian cash in a Bitcoin world - cashu, Fedimint

What's this for?

  • More scalable/faster than a blockchain (not enough utxos)
  • Much better privacy security model than a blockchain
  • Same or better theft security model than TTP but much worse than a blockchain

If it's so great, why hasn't it been done yet?

@mahmoud-eskandari
mahmoud-eskandari / README.md
Last active July 4, 2024 21:53
Install v2ray on Bridge:(Ubuntu +18 via systemd) - Upstream (Ubuntu +18/CentOS +7 via docker)

پنل x-ui

پنل تحت وب مدیریت V2ray و ساخت کاربر و مدیریت سرور

mkdir x-ui && cd x-ui
docker run -itd --network=host \
    -v $PWD/db/:/etc/x-ui/ \
 -v $PWD/cert/:/root/cert/ \