Skip to content

Instantly share code, notes, and snippets.

View 1995YogeshSharma's full-sized avatar

Yogesh Sharma 1995YogeshSharma

View GitHub Profile
@1995YogeshSharma
1995YogeshSharma / iterm2-solarized.md
Created April 5, 2021 19:28 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@1995YogeshSharma
1995YogeshSharma / using_browsermob_proxy_with_selenium.py
Created December 9, 2019 12:23
Code for Downloading request data from Network Tab
from selenium import webdriver
from browsermobproxy import Server
server = Server('/path/to/browsermob-proxy/binary')
server.start()
proxy = server.create_proxy()
chrome_options = webdriver.ChromeOptions()
chrome_options.add_argument(
'--proxy-server={0}'.format(proxy.proxy))
proxy.new_har('LOG')

When facing hardware graphics issue using LD_PRELOAD

follow the instructions here

@1995YogeshSharma
1995YogeshSharma / using_tweepy.md
Created May 22, 2018 03:31
This is based on my experiences with using the tweepy api for extracting data from Twitter

Authenticating yourself

To use the API, you first have to create an app from the site https://apps.twitter.com/. There you create consumer token and access token to follow the OAuth process.

@1995YogeshSharma
1995YogeshSharma / ORB_SLAM_install_tips.md
Last active May 10, 2018 13:34
Some tips to build ORB SLAM on ubuntu 16.04 with ROS kinetic and opencv 2.4.13

To install opencv-2.4.13, follow instructions from here - https://gist.github.com/dynamicguy/3d1fce8dae65e765f7c4

To install ROS kinectic, make sure you follow the instructions at least till 1.7 from here - ROS kinectic

Follow the main instructions of ORB installation from here - official repo.

Here are few pointers to take into consideration if you get stuck -

1.) You have to change ORB_SLAM/manifest.xml and remove the line containing <depend package=opencv..

@1995YogeshSharma
1995YogeshSharma / get_oppia_classes.py
Created March 1, 2017 05:01
This is a script written to extract all css classes which include oppia in it's name and belong to a unique directive file rather than being shared among some html files.
# coding: utf-8
#
# Copyright 2014 The Oppia Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#