Skip to content

Instantly share code, notes, and snippets.

@mehdihasan
mehdihasan / mamp.md
Created October 17, 2017 15:28 — forked from jfloff/mamp.md
How to get MAMP to work with SSL ... Yes really.

First of all you need to be able to run MAMP in port 80. This is a "heat check" if you don't have any process jamming http ports. You can check it like this:

sudo lsof | grep LISTEN

If you do happen to have any process with something like this *:http (LISTEN), you are in trouble. Before with adventure check if it isn't MAMP itself (yeah, you should close that beforehand)

ps <pid of that process>

If you don't see MAMP, you are in good hands, I have just the thing for you:

@mehdihasan
mehdihasan / AdbCommands
Created March 12, 2019 08:32 — forked from Pulimet/AdbCommands
Adb useful commands list
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
== Shell
@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
@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 / 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 / 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 \

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 / 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:

@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 / 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