Skip to content

Instantly share code, notes, and snippets.

View LittleWat's full-sized avatar
🏠
Working from home

Kohei Watanabe LittleWat

🏠
Working from home
  • Tokyo
View GitHub Profile
@LittleWat
LittleWat / install_nvidia_driver.md
Created November 8, 2021 06:05 — 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 :

@LittleWat
LittleWat / head_nod_detection.py
Last active March 12, 2021 10:17 — forked from smeschke/head nod detection
Detection of Head Nods using OpenCV in Python
import cv2
import numpy as np
fourcc = cv2.VideoWriter_fourcc(*'MP4V')
out = cv2.VideoWriter('out.mp4',fourcc, 20.0, (640,480))
#dinstance function
def distance(x,y):
import math
return math.sqrt((x[0]-y[0])**2+(x[1]-y[1])**2)
@LittleWat
LittleWat / setup.sh
Created September 4, 2020 06:08 — forked from bradp/setup.sh
New Mac Setup Script
echo "Creating an SSH key for you..."
ssh-keygen -t rsa
echo "Please add this public key to Github \n"
echo "https://github.com/account/ssh \n"
read -p "Press [Enter] key after this..."
echo "Installing xcode-stuff"
xcode-select --install