Skip to content

Instantly share code, notes, and snippets.

View VisionOra's full-sized avatar
:octocat:
Always Up to Help you , Reach me out

Master X VisionOra

:octocat:
Always Up to Help you , Reach me out
View GitHub Profile
@VisionOra
VisionOra / retrive_emails.py
Last active June 20, 2022 02:11
Retrive You mails from your mailbox automatically
import email
import imaplib
EMAIL = 'sohaib.anwar@******.com'
PASSWORD = '*********'
SERVER = 'imap.gmail.com'
# connect to the server and go to its inbox
mail = imaplib.IMAP4_SSL(SERVER)
mail.login(EMAIL, PASSWORD)
#!/usr/bin/env python
# coding: utf-8
# Here's a small python task for you to solve. These are the instructions to write your code. Feel free to use google, but please be prepared to discuss the solution with me:
#
# By running your code, the input file my-test-data.json will be read
# and then ask the user to insert a sku code in order to find its closest similar skus.
#
# It will check for irregularities in the format of the inserted sku code and throw an exception if one was found.
#
@VisionOra
VisionOra / install_nvidia_driver.md
Created September 22, 2021 18:08 — forked from espoirMur/install_nvidia_driver.md
How I fix this issue NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running

I had many driver installed I my virtual machine , so It was actually the reason why I was having the error.

To fix it I had first to remove all driver I have installed before using :

  • sudo apt-get purge nvidia-*
  • sudo apt-get update -sudo apt-get autoremove

After that I when a head and installed the latest version of it nvidia driver:

I did :

Solution :
you have to add you ssh key in your git-hub profile. Follow steps to solve this problem
1. Right Click Folder you want to push in git
2. Select git-bash here problem
3. Write command ssh-keygen by this command your key is generated
4. Copy the key from cmd or go to (C:/User/your_user/.ssh/)
5. open id.rsa with notepad.
6. Copy your key
7. Now go to your git-hub profile