Skip to content

Instantly share code, notes, and snippets.

======
D: Help decide me on a car. I need an automatic car. i'm looking at either new or used cars within 10-12 lakh INR. If its a used car then I expect it to be a sedan or big suv, and at least have cruise control. if new car then The best I can get are Kiger or Magnite if I care about safety ratings, or a hyundai aura if I dont. My priority is space and comfort. I will give you a list of cars and what I think about them and then you can share your opinions.
I'll help you evaluate your car options! For context, 10-12 lakh INR is approximately $12,000-14,500 USD. I understand your main priorities are:
Automatic transmission (required)
Space and comfort (high priority)
Either:
New car: Kiger, Magnite (safety-focused options) or Aura
Used car: Sedan or large SUV with cruise control
@iambibhas
iambibhas / nobroker-gmap.js
Last active May 10, 2024 09:49
Adds a google maps search link beside apartment complex listings when you open them on map view
// ==UserScript==
// @name NoBroker Google Maps
// @namespace http://tampermonkey.net/
// @version 2024-05-09
// @description Adds a google maps search link beside apartment complex listings when you open them on map view
// @author Bibhas D
// @match https://www.nobroker.in/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=nobroker.in
// @grant none
// ==/UserScript==
@iambibhas
iambibhas / pstat-chain.py
Last active August 16, 2020 13:07
Takes a profile file, a method name and depth, and shows you the chain of callers of the method
import pstats
import re
import sys
from io import StringIO
"""
E.g.
python pstats-chain.py GET.foobar.com.testurl.46689ms.1597427246.prof 'time.sleep' 10
@iambibhas
iambibhas / recipe.xml
Last active June 29, 2023 00:22
Tasker recipe to forward SMS to Telegram group
<TaskerData sr="" dvi="1" tv="5.8.3">
<Profile sr="prof2" ve="2">
<cdate>1565066300570</cdate>
<edate>1567394645768</edate>
<id>2</id>
<mid0>3</mid0>
<nme>Bank SMS Forward</nme>
<Event sr="con0" ve="2">
<code>7</code>
<pri>0</pri>
// Place your settings in this file to overwrite the default settings
{
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/.DS_Store": true,
"**/*.pyc": true,
"**/*.pyo": true
},

Background

About a year back there was this widespread spamming attempt in Bangalore where there was non-existent places popping up everywhere with the name of "Agarwal Pakcers and Movers". All of these places looked like this -

As the image and the description suggests, this place is a restaurant. But somebody edited this and modified the name, category, address and in some cases, phone numbers.

I edited and reported as many as I can. And after a month or so, they were gone.

Current scenario

@iambibhas
iambibhas / stories_sync.json
Created July 3, 2016 11:26
JSON for syncing stories
{
"stories": [{
"synced": 0,
"sysid": "",
"group_id": 24,
"respondent_type": "PR",
"created_at": 1467503240213,
"school_id": 1917,
"_id": 1,
"user_id": 157,
06-14 16:20:23.237 12066-12564/in.org.klp.kontact V/FetchSurveyTask: Survey Insert Error: android.database.sqlite.SQLiteConstraintException: UNIQUE constraint failed: survey._id (code 1555)
06-14 16:20:23.237 12066-12564/in.org.klp.kontact V/FetchSurveyTask: Survey Insert Error: android.database.sqlite.SQLiteConstraintException: UNIQUE constraint failed: survey._id (code 1555)
06-14 16:20:23.238 12066-12564/in.org.klp.kontact V/FetchSurveyTask: Survey Insert Error: android.database.sqlite.SQLiteConstraintException: UNIQUE constraint failed: survey._id (code 1555)
06-14 16:20:23.814 12066-12564/in.org.klp.kontact E/SQLiteLog: (1) table question has no column named school_type
06-14 16:20:23.814 12066-12564/in.org.klp.kontact V/FetchSurveyTask: Questiongroup Insert Error: android.database.sqlite.SQLiteException: table question has no column named school_type (code 1): , while compiling: INSERT INTO question(options,text,school_type,_id,type,key) VALUES (?,?,?,?,?,?)
06-14 16:20:23.827 12066-12564/in.org.klp.kon
@iambibhas
iambibhas / ekstep.json
Created November 24, 2015 06:23
Sample data from EkStep
[
{
"tags": [],
"uid": "7492259d-e3ef-4f90-99a1-5ad5c53e9958",
"sid": "87804aad-1711-4422-b367-32833e0f0f0d",
"ts": "2015-10-08T10:24:49+05:30",
"edata": {
"eks": {
"length": 63055.0
}
@iambibhas
iambibhas / facebook_url_redirect_avoid.js
Last active November 20, 2015 12:55
UserScript to avoid Facebook's URL director
// ==UserScript==
// @name Facebook URL Redirector Bypass
// @namespace in.bibhas
// @include https://*.facebook.com/*
// @version 1
// @grant none
// ==/UserScript==
si = window.setInterval(clearanchors, 2000);
function clearanchors(){
anchors = document.getElementsByTagName('a');