Skip to content

Instantly share code, notes, and snippets.

View arsho's full-sized avatar

Ahmedur Rahman Shovon arsho

View GitHub Profile
@arsho
arsho / fix_cuda_12_2_ubuntu_23_10.md
Last active March 29, 2024 08:08
Install CUDA 12.0 or CUDA 11.4 in Ubuntu 23.04
  • Check versions of gcc, g++, and nvcc:
gcc --version
gcc (Ubuntu 13.2.0-4ubuntu3) 13.2.0
g++ --version
g++ (Ubuntu 13.2.0-4ubuntu3) 13.2.0
nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2023 NVIDIA Corporation
Built on Tue_Aug_15_22:02:13_PDT_2023

Here are some steps to try if you're getting an error mounting /dev/nvme0n1p6 in Ubuntu 23.10:

  • Open the Disks program
  • Select the disk that doesn't mount
  • Click the Gears icon or Additional Partition Options button
  • Select Edit Mount Options
  • Disable User Session Defaults
  • Click OK in the Mount Options dialog box
  • Repeat for each drive that gives an error message
@arsho
arsho / Add SSH Key to Bitbucket OR Github in Ubuntu 16.04.md
Last active February 15, 2024 04:43
Step by step instructions to add SSH key files in Bitbucket or Github

Add SSH Key to Bitbucket / Github in Ubuntu 16.04

What does SSH Keys do in Github / Bitbucket?

Set up SSH to reduce the risk of exposing your username and password. Some reasons you might want to use SSH key base authentication:

  • Is more effective if you push and pull from Bitbucket many times a day.
  • Removes the need to enter a password each time you connect.
@arsho
arsho / update_pypi_package.md
Last active February 11, 2024 10:39
Update existing Python package in Pypi

Update PyPI package (Tested on 12/31/2023)

I updated my package autolike today using the following steps:

Update the project locally

  • Changed the version number in setup.py and modify package as necessary.

Test in development

Assuming you’re in the root of your project directory, then run:

pip install -e .

Created a build

@arsho
arsho / fix_ethernet.md
Created January 18, 2021 18:10
Fixed unmanaged ethernet connection in Ubuntu 20.10

Scenario

  • In Ubuntu the Ethernet connection was shown as unmanaged wired connection.
  • This happened after using sudo pppoeconf to configure a pppoeconfiguration.

Solution

  • Open /etc/NetworkManager/NetworkManager.conf with sudo previlege:
sudo gedit /etc/NetworkManager/NetworkManager.conf
  • Change the line managed=false to managed=true
@arsho
arsho / add_ssh_github.md
Created June 27, 2022 17:29
Add SSH key to Github from Ubuntu 22.04 LTS
  • Generate SSH key with passphrase and the filename:
ssh-keygen -t ed25519 -C "your_email@example.com"
cat ~/.ssh/id_ed25519.pub
@arsho
arsho / Changing_Remote_URL.md
Last active November 16, 2023 03:53
Git workflow , git conflict , merging repository , git remote

Switching remote URLs from HTTPS to SSH

  • Open Terminal.
  • Change the current working directory to your local project.
  • List your existing remotes in order to get the name of the remote you want to change.
    $ git remote -v
    > origin  https://github.com/USERNAME/REPOSITORY.git (fetch)
    > origin  https://github.com/USERNAME/REPOSITORY.git (push)
    
@arsho
arsho / connect_huawei_ubuntu.md
Created August 22, 2018 14:42
Connect Huawei mobile to Ubuntu 16.04. Transfer files between Huawei mobile and Ubuntu machine.

Connect Huawei Mobile to Ubuntu 16.04

Connect Huawei mobile to Ubuntu 16.04

  • Install the tool
     sudo apt-get install mtp-tools mtpfs
    
  • Create directory
     sudo mkdir /media/mtp
    
@arsho
arsho / Install Openshift Client Tool in Ubuntu 16.04.md
Created January 19, 2018 10:56
Install Openshift Client Tool (oc) in Ubuntu 16.04

Install Openshift OC Tool in Ubuntu 16.04

What is OC Tool?

OC tool stands for OpenShift Origin Client Tools

Environment

  • Operating System : Ubuntu 16.04 LTS (64-bit)
@arsho
arsho / Selenium_Python_Ubuntu.md
Last active October 24, 2023 10:57
Use Selenium in Ubuntu machine. Tested using Python 3 and Ubuntu 18.04 LTS.

(Optional) Create new envirnoment using Conda

conda create --name myprofile_auto python=3.7
source activate myprofile_auto

(Optional) Create new envirnoment using Virtual environment

python3 -m venv venv
source venv/bin/activate