Skip to content

Instantly share code, notes, and snippets.

View ngadhvi's full-sized avatar
💭
I am open to stories

Nishant ngadhvi

💭
I am open to stories
  • Los Angeles
View GitHub Profile
@ngadhvi
ngadhvi / install_nvidia_driver.md
Created June 24, 2021 06:10 — 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:

@ngadhvi
ngadhvi / tmux-cheatsheet.markdown
Created January 31, 2019 00:08 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@ngadhvi
ngadhvi / plate-snitch.js
Created May 29, 2018 23:23 — forked from taitems/plate-snitch.js
(Extract) Check the status of a vehicle registration and scrape results.
// Open form and submit enquire for `rego`
function getInfo(rego) {
horseman
.userAgent('Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0')
.open(url)
.type('#registration-number-ctrl input[type=text]', rego)
.click('.btn-holder input')
.waitForSelector('.ctrl-holder.ctrl-readonly')
.html()
.then(function(body) {
@ngadhvi
ngadhvi / installing_caffe.md
Last active March 31, 2018 03:25 — forked from nikitametha/installing_caffe.md
Installing Caffe on Ubuntu 17.10 and above (CPU ONLY, WITHOUT CUDA OR GPU SUPPORT)

This is a guide on how to install Caffe for Ubuntu 17.10 and above, without GPU support (No CUDA required).

Prerequisites:

OpenCV

sudo apt-get install libopencv-dev python-opencv

OpenBLAS OR Atlas