Skip to content

Instantly share code, notes, and snippets.

View svkbaksi's full-sized avatar

Souvik Baksi svkbaksi

  • Synopsys
  • India
View GitHub Profile
@svkbaksi
svkbaksi / indexplot.py
Last active September 24, 2023 15:52
Liveability index plot from Numbeo
import requests
from bs4 import BeautifulSoup
import matplotlib.pyplot as plt
import math
import re
label_lst = ["The Quality of Life Index (higher is better)", "Purchasing Power Index (higher is better)", "Pollution Index (lower is better)", "House Price to Income Ratio (lower is better)", "Cost of Living Index (lower is better)", "Safety Index (higher is better)", "Health Care Index (higher is better)", "Traffic Commute Time Index (lower is better)", "Climate Index (higher is better)"]
@svkbaksi
svkbaksi / gist:d6aeacc659eaaa9d91f5c4ee91ca562f
Created September 24, 2023 05:28
ADB commands to delete the Xiaomi bloatwares
adb shell pm uninstall -k --user 0 com.linkedin.android
adb shell pm uninstall -k --user 0 com.miui.weather2
adb shell pm uninstall -k --user 0 com.gallery.player
adb shell pm uninstall -k --user 0 com.miui.gallery
adb shell pm uninstall -k --user 0 com.xiaomi.payment
adb shell pm uninstall -k --user 0 com.mipay.wallet.in
adb shell pm uninstall -k --user 0 com.micredit.in
adb shell pm uninstall -k --user 0 com.funnypuri.client
adb shell pm uninstall -k --user 0 com.miui.player
adb shell pm uninstall -k --user 0 com.android.calendar
@svkbaksi
svkbaksi / iotclient.ino
Created September 23, 2023 17:09
ESP8266 based IOT Device
#include <ESP8266WiFi.h>
// enter wifi credentials
const char* ssid = "wifiname";
const char* password = "letthisbepassword";
/* arduino to ESP8266 pin mappings
D0 - > 16
D1 - > 5
D3 - > 4
@svkbaksi
svkbaksi / dinorun.py
Last active September 23, 2023 16:23
Play Chrome's Dino run game using python.
import time
import cv2
import mss
import numpy as np
from os import system
object_mon = {"top": 335, "left": 189, "width": 200, "height": 80}
with mss.mss() as sct:
while True:
@svkbaksi
svkbaksi / gentravelmap.py
Last active May 3, 2026 05:57
Plot your travels in a world map with python
import plotly.express as px;
import plotly.io as pio
import pandas as pd;
from geopy.geocoders import Nominatim;
geolocator = Nominatim(user_agent="MyApp")
# update this list with the list of places you have visted
destination_lst = ["Bangalore", "Chennai", "Hyderabad", "Mumbai", "Delhi", "Kolkata"]