Skip to content

Instantly share code, notes, and snippets.

@mehdihasan
mehdihasan / install-oc-client-ubuntu.md
Last active February 2, 2024 12:51
Install OC client in Ubuntu/Debian
@mehdihasan
mehdihasan / install-minishift-ubuntu.md
Last active June 17, 2023 12:04
minishft installationin ubuntu

Install minishift in Ubuntu

OS: Ubuntu 19.10

Install libvirt and qemu-kvm on the system

sudo apt install qemu-kvm libvirt-daemon libvirt-daemon-system
@mehdihasan
mehdihasan / Kafka commands.md
Last active October 23, 2020 05:12 — forked from vkroz/Kafka commands.md
Kafka frequent commands

Kafka frequent commands

Assuming that the following environment variables are set:

  • KAFKA_HOME where Kafka is installed on local machine (e.g. /opt/kafka)
  • ZK_HOSTS identifies running zookeeper ensemble, e.g. ZK_HOSTS=192.168.0.99:2181
  • KAFKA_BROKERS identifies running Kafka brokers, e.g. KAFKA_BROKERS=192.168.0.99:9092

Server

Start Zookepper and Kafka servers

@mehdihasan
mehdihasan / install-ansible-in-ubuntu.md
Last active July 19, 2020 22:11
install-ansible-in-ubuntu
sudo apt install software-properties-common
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update
sudo apt install python3.8
python --version
python3 --version
sudo apt update
sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev wget
sudo apt install python3-pip
@mehdihasan
mehdihasan / gcp-app-engine-deployment.md
Created July 19, 2020 11:21
gcp-app-engine-deployment

How to deploy application in GCP: App Engine

Handy Commands

You can list the active account name with this command:

gcloud auth list

You can list the project ID with this command:

Application Deployment and Scale in Kubernetes Engine (GCP)

PREPARING THE ENVIRONMENT

  1. In GCP console, on the top right toolbar, click the Open Cloud Shell button.

  2. Click Continue.

  3. For convenience, place the zone that Qwiklabs assigned you to into an environment variable called MY_ZONE. At the Cloud Shell prompt, type this partial command:

@mehdihasan
mehdihasan / benchmark-commands.md
Created May 19, 2020 06:19 — forked from ueokande/benchmark-commands.md
Kafka Benchmark Commands

Benchmark commands

Producer

Setup

bin/kafka-topics.sh \
  --zookeeper zookeeper.example.com:2181 \
  --create \
@mehdihasan
mehdihasan / kafka-in-openshift-in-ubuntu.md
Last active April 28, 2020 11:59
kafka in openshift in ubuntu

Kafka in Openshift in Ubuntu

Installing Docker

install docker

wget -qO- https://get.docker.com/ | sh

adding your user to the "docker" group:

@mehdihasan
mehdihasan / linux-system-info.md
Created April 18, 2020 08:46
Basic Linux commands

Displaying Basic System Information on Linux Shell

uname

Output:

Result of uname command

@mehdihasan
mehdihasan / 00.howto_install_phantomjs.md
Created October 23, 2019 14:14 — forked from julionc/00.howto_install_phantomjs.md
How to install PhantomJS on Debian/Ubuntu

How to install PhantomJS on Ubuntu

Version: 1.9.8

Platform: x86_64

First, install or update to the latest system software.

sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev