Skip to content

Instantly share code, notes, and snippets.

View MansoorMajeed's full-sized avatar

Mansoor MansoorMajeed

View GitHub Profile
@MansoorMajeed
MansoorMajeed / ssh_into_wsl2.md
Last active October 25, 2026 21:10 — forked from ndraiman/ssh_into_wsl2.md
SSH Into WSL2

Guide: How to SSH Into WSL2

Install WSL2 SSH server

  1. Open your wsl ubuntu terminal

  2. install open-ssh server

    sudo apt update 
    sudo apt install openssh-server
@MansoorMajeed
MansoorMajeed / 00-Speedtest-over-VM-vs-direct.md
Last active June 22, 2025 22:17
Running speedtest from a client in Asia towards a US server via different routes

Running speedtest from a client in Asia towards a US server via different routes

I did this tests as an extension to the blog post about Plex 4k streaming across the continent. HERE

The Setup

  1. Client located in asia-south
  2. SpeedTest server hosted in my home network in us-east1. Running OpenSpeedTest on docker in home network
  3. VM1 in asia (speedtest-asia) (Linode VM)
  4. VM2 in us (speedtest-us) (Linode VM)

Keybase proof

I hereby claim:

  • I am mansoormajeed on github.
  • I am mansoor (https://keybase.io/mansoor) on keybase.
  • I have a public key ASC2P-PQ7Uerz0zN2dWghm4HQgE-TV7vDaef-RUBzLwuZQo

To claim this, I am signing this object:

###Some don't work yet.

Get the top request methods

varnishtop -i RxRequest

Top urls that missed the cache.

varnishtop -i TxURL

@MansoorMajeed
MansoorMajeed / mosquitto
Created February 4, 2018 06:42
Init script for mosquitto (Tested on Ubuntu 14.04)
#!/bin/bash
### BEGIN INIT INFO
# Provides: mosquitto
# Required-Start: $local_fs $remote_fs $network
# Required-Stop: $local_fs $remote_fs $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start or stop the mosquitto service
### END INIT INFO