Skip to content

Instantly share code, notes, and snippets.

View deshmukhrajvardhan's full-sized avatar
🦊

Rajvardhan S Deshmukh (he/him) deshmukhrajvardhan

🦊
  • San Jose
View GitHub Profile
@deshmukhrajvardhan
deshmukhrajvardhan / steps.txt
Created April 26, 2020 04:14
Install cuda and tensorflow-gpu (with conda)
sudo apt-get install --no-install-recommends \
cuda-10-0 \
libcudnn7=7.6.5.32-1+cuda10.0 \
libcudnn7-dev=7.6.5.32-1+cuda10.0
sudo apt-get install cuda-toolkit-10-0
conda config --set allow_conda_downgrades true;conda install conda=4.6.14
conda install tensorflow-gpu -y
conda update tensorflow-gpu -y
conda install -c conda-forge opencv
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
#open new terminal
nvm install --lts #v10.15.3
ng serve
@deshmukhrajvardhan
deshmukhrajvardhan / VNC
Last active March 21, 2019 22:32
get vnc running
Server: (tigervnc)
vncserver
(assign a pwd)
(get the url) dieter-iot-test-lnx
Client: (realvnc)
(get a realvnc client (1st create an account on realvnc site))
(port forwarding tunnel from machine that runs the client)
"The 5903:.... arg says map 5901 on the ssh server system to 5903 on the local system
@deshmukhrajvardhan
deshmukhrajvardhan / instructions.md
Last active March 12, 2019 23:39
Saide webpage edit

Local copy

  1. open git bash
  2. cd <path>/saide-koolivand.github.io
  3. git pull

Image and video files

  1. cd saide-koolivand.github.io/assets/images/work/<project folder>/
  2. insert images and video corresponing to the project

Display image/video on webpage

#conda support
https://docs.continuum.io/anaconda/install/linux/
# update
sudo apt-get update; sudo apt-get upgrade
# editors
sudo apt-get install geany emacs -y
# Wireshark
sudo apt-get install wireshark
# Zsh support
sudo apt-get install zsh

Dual boot Ubuntu 18.10 in Dell G5 15

Preparing windows for installation

  1. open msconfig.exe and set safeboot minimal
  2. Reboot and hit F2 to enter the BIOS.
  3. Change the SATA mode to AHCI.;
  4. Disable Secure Boot; Save and reboot
  5. After Windows successfully boots into Safe Mode, disable Safe Mode with msconfig.exe

Things to do in Ubuntu during installation

https://stackoverflow.com/questions/375913/how-can-i-profile-c-code-running-on-linux/378024#378024
valgrind --tool=callgrind ./libcurl_get_url_http2.o
git clone https://github.com/jrfonseca/gprof2dot.git
sudo apt-get install graphviz
python3 gprof2dot.py -f callgrind ../callgrind.out.17513 | dot -Tsvg -o ../get_url_ipc_output.svg
@deshmukhrajvardhan
deshmukhrajvardhan / install_modules_in_pycharm.md
Last active May 2, 2023 09:01
Install pandas_datareader

GNU/LINUX

  1. update to pycharm's pip version 18

  2. open the Terminal in pycharm and run: pip install pandas_datareader

(If it doesn't work try pip install pandas-datareader)

(If you can't see the terminal install pycharm community edition)

(If you are unable to install packages run pycharm as administrator(sudo) and re-try)

#Q2
# to denote ayymptotic time complexity use the following notation
# O(l) O(m) O(a) O(b)
# e.g. traversing through l = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] is O(l)
#1
def merge():
l = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
m = [15, 16, 17, 18]
lm = []

FYI: In the process of writing this I was unequivocally bored. Writing about oneself is as painful as re-reading about something that you know about as a whole.

The titles in this document are dates in which most of the sleep/dreams fall in.

10 August 2018

Before sleep: I watched anime