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 / report
Created May 10, 2018 14:07
curl with http2 and http1 (https)
https://serversforhackers.com/c/curl-with-http2-support
https://askubuntu.com/questions/884899/how-do-i-install-curl-with-http2-support
parameters used:
--http1.1 Use HTTP 1.1 │···············
--http2 Use HTTP 2
--key <key> Private key file name │···············
--key-type <type> Private key file type (DER/PEM/ENG)
-E, --cert <certificate[:password]> Client certificate file and password
--tlsv1.2 Use TLSv1.2
@deshmukhrajvardhan
deshmukhrajvardhan / gist:3714c07c4216395c02a165d128c1bedd
Last active August 6, 2018 16:25
Application to use HTTP2 multiplexing with libcurl
Pre-req:
https://serversforhackers.com/c/curl-with-http2-support
Code:libcurl-client-app.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/* curl stuff */
#include <curl/curl.h>

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

#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 = []
@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)

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

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

#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
@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

@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