Skip to content

Instantly share code, notes, and snippets.

View hamidrhashmi's full-sized avatar

Hamid R. Hashmi hamidrhashmi

View GitHub Profile
@hamidrhashmi
hamidrhashmi / docker_image_creation.md
Last active May 25, 2025 20:50
How to create a Docker image for Kamailio
docker build . -t hrhashmi/kamailio-for-kube:0.0.5
docker login
docker push hrhashmi/kamailio-for-kube:0.0.5
@hamidrhashmi
hamidrhashmi / kamailio_kube_cluster.md
Last active May 25, 2025 21:09
How to deploy kamailio in kubernetes cluster ?

Pre-Requisite

  1. MySQL Server is already deployed.
kubectl get pods -n kamailio

OUTPUT

NAME                     READY   STATUS    RESTARTS   AGE
mysql-5448dbc87f-5gm97   1/1     Running   0          9m2s
@hamidrhashmi
hamidrhashmi / AWS_VPC.md
Last active June 23, 2025 10:29
How to create EC2 instances in a AWS VPC?
@hamidrhashmi
hamidrhashmi / monitoring_kub_cluster.md
Last active May 23, 2025 12:55
How to deploy Grafana with Promethius datasource

Pre-Requisite

  1. kubernetes cluster is ready
kubectl get nodes -o wide

OUTPUT

NAME        STATUS   ROLES           AGE     VERSION    INTERNAL-IP    EXTERNAL-IP   OS-IMAGE                         KERNEL-VERSION         CONTAINER-RUNTIME
kubmaster   Ready    control-plane   5h26m   v1.28.15   192.168.10.6   <none>        Debian GNU/Linux 12 (bookworm)   6.1.0-32-cloud-amd64   containerd://1.7.27
kubnode1    Ready    <none>          5h3m    v1.28.15   192.168.10.5   <none>        Debian GNU/Linux 12 (bookworm)   6.1.0-35-cloud-amd64   containerd://1.7.27
@hamidrhashmi
hamidrhashmi / mysql_kubernetes_cluster.md
Last active June 10, 2025 07:43
How to deploy MySQL on Kubernetes Cluster

Pre-Requisite

  1. kubernetes cluster is ready if not Follow this blog.
kubectl get nodes -o wide

OUTPUT

NAME        STATUS   ROLES           AGE     VERSION    INTERNAL-IP    EXTERNAL-IP   OS-IMAGE                         KERNEL-VERSION         CONTAINER-RUNTIME
kubmaster   Ready    control-plane   5h26m   v1.28.15   192.168.10.6   <none>        Debian GNU/Linux 12 (bookworm)   6.1.0-32-cloud-amd64   containerd://1.7.27
kubnode1    Ready    <none>          5h3m    v1.28.15   192.168.10.5   <none>        Debian GNU/Linux 12 (bookworm)   6.1.0-35-cloud-amd64   containerd://1.7.27
@hamidrhashmi
hamidrhashmi / kubernetes_cluster.md
Last active June 10, 2025 07:56
How to configure a kubernetes cluster ?

image

Pre-Requisite

  1. Three Linux Machines/VMs (Minimum Specs: 2 cores, 4GB RAM, 16GB Hard Disk)
  2. Can communicate with each other (Preferred to be on Same LAN)
  3. Open ports: 22 (SSH), 6443 (Kubernetes API), 2379-2380 (etcd), 10250 (kubelet)

Linux Server Preparation for Kubernetest Cluster

@hamidrhashmi
hamidrhashmi / RTPengine_Installation_on_Rocky.md
Last active March 12, 2025 12:03
RTPengine Installation on Rocky Linux

First of all disable SELinux

setenforce 0

To permanantly disable selinux edit file vim /etc/selinux/config

SELINUX=disabled

Now enable the CodeReady Builder repository

@hamidrhashmi
hamidrhashmi / qryn.md
Created December 23, 2024 12:52
How to send data to qryn

https://gigapipe.com/docs.html

Pre-Requisite: Signup And you have created the Organization and a Project.

As the Project is created you will have two Stack already added to your project

Grafana

@hamidrhashmi
hamidrhashmi / iot_qryn.md
Last active January 3, 2025 12:32
IOT Device Monitoring with Qryn

Configuring your own MQTT broker with a database offers significant cost advantages over cloud IoT platforms like AWS or Azure. You eliminate recurring service fees, unpredictable pricing tiers, and data egress costs. Hosting on-premises or on a low-cost VPS ensures a predictable and lower total cost of ownership, especially for scaling needs.

Self-hosted solutions provide full customization, allowing you to optimize message retention, QoS, and security without premium charges. Direct integration with your database avoids extra pipeline costs, while local data control enhances privacy and compliance.

Unlike proprietary platforms, self-hosting prevents vendor lock-in, offering greater flexibility to adapt or migrate as needed. Open-source brokers like RabbitMQ deliver robust functionality for free, making this approach ideal for long-term, cost-effective IoT deployments.

Here is my little effort to create onsite or make your onw cloud solution for IOT using qryn.

![mqttArchitecture](https://gist.github.co

@hamidrhashmi
hamidrhashmi / ch_hosted.md
Created December 23, 2024 12:40
Clickhosue Hosted Services