Skip to content

Instantly share code, notes, and snippets.

View khansun's full-sized avatar

Mahamudur Rahaman Khan khansun

View GitHub Profile
@khansun
khansun / docker.md
Last active September 26, 2022 10:23
Useful docker commands

Useful Docker Commands

Docker Run:

  • Pull image from DockerHub: docker pull [imageID]
  • Run image in detached mode along with a command: docker run -d [imageID] [command]
  • Attatch a running container: docker attatch [containerID]
  • Show Running Containers: docker ps
  • Show All Containers: docker ps -a
  • Kill running container: docker stop [ContainerID/Name]
  • Remove container: docker rm [ContainerID/Name]
@khansun
khansun / NginxRevProxy.md
Created July 15, 2022 17:25
Enable HTTPS to your domain with Nginx

Requirements:

  • Ubuntu 18.04 LTS or higher
  • Nginx
  • App running on a specified port: i.e. 9001
  • DNS entry for the domain: i.e. app.example.com
  • SSL certificate for the domain: i.e. app.example.com

Make a new configuration file: app.example.com

  • sudo touch /etc/nginx/sites-avaialable/app.example.com
@khansun
khansun / LinuxCUDAtoolkits.md
Last active April 9, 2024 15:37
Multiple versions of CUDA toolkit and CUDNN installation guide for Linux and WSL2

Solve python environment related issues to utilize CUDA enabled GPUs

NVIDIA GPU Driver

  • Check status from terminal: nvidia-smi.

  • Skip this step if you have the following output:


+-----------------------------------------------------------------------------+
@khansun
khansun / bufferOverflow.md
Last active July 11, 2021 17:15
An approach for Buffer Overflow Attack .

Buffer Overflow Exploit for Linux

Getting things ready for linux terminal with GCC compiler:

Start by updating the packages list:

sudo apt update

Install the build-essential package by typing: