Skip to content

Instantly share code, notes, and snippets.

View rahduro's full-sized avatar

Chitradeep Dutta Roy rahduro

  • University of Utah
  • Salt Lake City, USA
View GitHub Profile

Keybase proof

I hereby claim:

  • I am rahduro on github.
  • I am rahduro (https://keybase.io/rahduro) on keybase.
  • I have a public key ASBqFOrIOD6NUh3PQD8yqqVdYw7wWoCtALNDlwJfKjSEhgo

To claim this, I am signing this object:

@rahduro
rahduro / prime-offloading.md
Last active November 11, 2019 18:11
Nvidia prime offloading ubuntu

Source

__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia glxgears -info

@rahduro
rahduro / manjaro-commands.md
Last active November 7, 2019 18:02
Some shell commands for cuda and other things in manjaro

optirun -b none python/jupyter # for running python or jupyter notebook with cuda support when bumblebee drivers are in use

DISPLAY=:8 glxgears -info # this is for hdmi plugged to nvidia card

rfkill unblock bluetooth # if bluetooth is not active and not showing up

some basic setup after 18.04.2 install

sudo apt-get install build-essential cmake git unzip zip python-dev python3-dev python-pip python3-pip

sudo apt-get install linux-headers-$(uname -r)

for dropbox installation required

sudo apt install python-gpg

install dropbox, foxitreader, dropbox, spotify

@rahduro
rahduro / system-setup.md
Last active April 20, 2017 10:05
desktop setup settings
  1. Download all directories and files recursively from a hyperlink stackoverflow

    wget -r --no-parent --reject "index.html*" <URL>

  2. Change virtualbox shared folder permission

sudo usermod -aG vboxsf $(whoami)

@rahduro
rahduro / snippets.py
Created March 7, 2017 22:13
some python snippets
# 4 digits binary numbers in increasing order
from itertools import product
map(lambda i: '{}{}{}{}'.format(i[0], i[1], i[2], i[3]), product(range(2), repeat=4))
# learned from https://medium.com/@Tiagojdferreira/how-i-set-up-my-git-in-a-new-computer-85bb461b089f#.9u0csujzb
[user]
name = Name
email = Email
[alias]
co = checkout
b = branch
pu = push -u origin HEAD
ci = commit
st = status