Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Md Mahedi Hasan Mahedi-61

🏠
Working from home
View GitHub Profile
@Mahedi-61
Mahedi-61 / cuda_11.2_installation_on_Ubuntu_20.04
Last active Oct 12, 2021
CUDA 11.2 Installation on Ubuntu 20.04
View cuda_11.2_installation_on_Ubuntu_20.04
#!/bin/bash
## This gist contains instructions about cuda v11.2 and cudnn8.1 installation in Ubuntu 20.04 for Pytorch 1.8
### steps ####
# verify the system has a cuda-capable gpu
# download and install the nvidia cuda toolkit and cudnn
# setup environmental variables
# verify the installation
###
@Mahedi-61
Mahedi-61 / installing_opencv_from_source_in_Ubuntu_1804.sh
Last active Sep 8, 2021
Installing OpenCV from source on Ubuntu 18.04 machine
View installing_opencv_from_source_in_Ubuntu_1804.sh
#!/bin/bash
# This gist is a step by step instructions to build and install OpenCV from source on ubuntu 18.04 LTS
# note: The easy and quick way to install is
# sudo pip3 install opencv-python
# sudo pip3 install opencv-contrib-python
# But this easy pypi installation can’t open video files on GNU/Linux distribution or on mac OS X system.
# And on some system opencv binaries provided packages are not compiled.
# Therefor we have no way rather than build it from source.
@Mahedi-61
Mahedi-61 / AlgorithmForBDGovt.py
Last active Aug 19, 2021
how BD government find Abrar Murderer
View AlgorithmForBDGovt.py
"""
Author: A cup of Tea
Description: Algorithm about how BD government is going to find Abrar Murderer
"""
def findGuiltyToAbrarMurder():
if(guilty == activistOfBCL):
victim = activistOfShibir
silenceLikeHell()
useBruteForceToRemoveMovement(BCLGang, BDPolice)
@Mahedi-61
Mahedi-61 / cuda_setup.sh
Created Dec 6, 2017
Installing CUDA toolkit v8..0 and cuDNN 6.0 on Ubuntu 16.04
View cuda_setup.sh
#!/bin/bash
## This gist is a step by step instructions to install cuda v8.0 and cudnn 6.0 on ubuntu 16.04
## official guide: http://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html
### steps ####
# verify the system has a cuda-capable gpu
# verify the system has gcc installed
# download and install the nvidia cuda toolkit
# download cudnn
# setup environment variables
@Mahedi-61
Mahedi-61 / net_config.sh
Created Sep 14, 2018
Instructions for installing static and dynamic IP address in Arch Linux
View net_config.sh
# first, install netctl if not already installed.
sudo pacman -S netctl
# to find out network card name; check
ip link
### configuring Static IP address
# my network card name is enp0s3. Now, copy the sample network card profile
sudo cp /etc/netctl/examples/ethernet-static /etc/netctl/enp0s3
@Mahedi-61
Mahedi-61 / installing_opencv_3.45_in_CentOS-7.sh
Last active May 30, 2021
Step by step instructions to build and install OpenCV from source on CentOS 7
View installing_opencv_3.45_in_CentOS-7.sh
#!/bin/bash
# This gist is a step by step instructions to build and install OpenCV from source on CentOS 7
# note: The easy and quick way to install is
# sudo yum install opencv opencv-devel opencv-python
# But this easy pypi installation can’t open video files on GNU/Linux distribution or on mac OS X system.
# And on some system opencv binaries provided packages are not compiled.
# Therefor we have no way rather than build it from source.
### first update and upgrade pre-install yum packages.
@Mahedi-61
Mahedi-61 / CUDA_Toolkit_10.0_installation_on_CentOS_7.sh
Last active Feb 23, 2021
Step by step instructions for installing CUDA Toolkit 10.0 CentOS 7 Server machine for running Deep Learning projects
View CUDA_Toolkit_10.0_installation_on_CentOS_7.sh
#!/bin/bash
## This gist contains step by step instructions to install cuda v10.1 and cudnn 7.6 in CentOS 7
### steps ####
# verify the system has a cuda-capable gpu
# download and install the nvidia cuda toolkit and cudnn
# setup environmental variables
# verify the installation
###
### to verify your gpu is cuda enable check
@Mahedi-61
Mahedi-61 / pdftk_commands.sh
Last active Nov 2, 2020
useful commands of shell script pdftk
View pdftk_commands.sh
# Replacing few page from a pdf file using another pdf file
pdftk A=first.pdf B=second.pdf cat A1 B1 A3-end output out.pdf
# Above code means second page of first.pdf is replaced by the first page of second PDF
# merging multiple files into one file
pdftk file1.pdf file2.pdf cat output mergedfile.pdf
@Mahedi-61
Mahedi-61 / install_canon_printer.sh
Last active Sep 2, 2020
canon_LBP3300_printer_driver_installation_on_ubuntu_18.04
View install_canon_printer.sh
## This gist contains step by step instructions of installing canon LBP3300 printer driver on ubuntu 18.04 machine
## After a couple of months painful trying, i finally got it successfully installed on my 18.04 ubuntu machine.
## Here is the requirement
# 1) For 64 bit linux version install necessary the libraries
# 2) install the official CAPT drivers
# 3) register the printer with lpadmin
# 4) register the printer with the ccpd daemon
@Mahedi-61
Mahedi-61 / bslr.ipynb
Last active Mar 24, 2020
Notebook for running openpose for my Bangla Sign Language Project in Google Colaboratory
View bslr.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.