Skip to content

Instantly share code, notes, and snippets.

@iambibhas
iambibhas / twitter_tco_bypass.js
Created January 8, 2015 06:38
Twitter t.co bypass
// ==UserScript==
// @name Twitter T.co bypass
// @version 1
// @include http*://twitter.com/*
// @grant GM_deleteValue
// @grant GM_getValue
// @grant GM_setValue
// @grant GM_info
// ==/UserScript==
si = window.setInterval(clearanchors, 2000);
@iambibhas
iambibhas / .vimrc
Created January 9, 2015 18:37
Simple vim config for sane editing
" Sets line number
set number
" Set encoding to utf8
set encoding=utf8
" Set indentation
set shiftwidth=4
set tabstop=4
@iambibhas
iambibhas / boundary.diff
Last active August 29, 2015 14:14
EMS Boundary Log
Total 2799 boundaries in DB
Values to update
+------+----------------------+-------------------+---------------------+
| id | key | value in ddd | value in ems |
+------+----------------------+-------------------+---------------------+
| 2382 | name | devanahalli town] | devanahalli |
| 1183 | name | mundaragi | mundaragi city west |
| 9119 | parent_id | 8779 | 9116 |
| 9119 | name | jayanagar | Masthi |
This file has been truncated, but you can view the full file.
Total 23696 boundaries in DB
Values to update
+-------+-----------------+--------------------------------------------+---------------------------------------------+
| id | key | value in dubdubdub | value in ems |
+-------+-----------------+--------------------------------------------+---------------------------------------------+
| 29572 | moi | kannada | |
| 31322 | moi | kannada | |
| 29584 | inst_address_id | 135451 | |
| 29592 | moi | kannada | |
| 29626 | moi | kannada | |
@iambibhas
iambibhas / test.md
Created February 28, 2015 17:30
Test

test title

this is good

Blah

@iambibhas
iambibhas / uastring.py
Created August 1, 2012 18:41 — forked from mehulved/uastring.py
User Agent strings in more usable format
def uastring(platforms, format):
'''
This function is used to retrive User Agent String for various browsers/platforms from www.useragentstring.com.
Aim of this module is to simplify using the available data.
To find the value of the platform, visit http://useragentstring.com and get the part after /pages/
The platform parameter should be a set of one or more platforms. Supported formats are csv, json and xml.
'''
import requests
import BeautifulSoup as bsoup
@iambibhas
iambibhas / Result
Created August 24, 2012 21:40
Find Prime Number in Given Range
bibhas@bibhas-CQ42:~/Works/langtest$ php php.php && python python.py && gcc c.c && ./a.out
======
PHP
======
5.5071251392365 seconds
9592 primes
======
Python
======
4.45425796509 seconds
@iambibhas
iambibhas / chat-frontend.js
Created September 1, 2012 18:35 — forked from martinsik/chat-frontend.js
Node.js chat frontend and server
$(function () {
"use strict";
// for better performance - to avoid searching in DOM
var content = $('#content');
var input = $('#input');
var status = $('#status');
// my color assigned by the server
var myColor = false;
@iambibhas
iambibhas / log
Created October 14, 2012 05:27
Localtunnel attenmpt to exploit
INFO:werkzeug:127.0.0.1 - - [14/Oct/2012 12:53:50] "POST /recurly_notifications/receive HTTP/1.0" 404 -
INFO:werkzeug:127.0.0.1 - - [14/Oct/2012 12:53:59] "POST /recurly_notifications/receive HTTP/1.0" 404 -
INFO:werkzeug:127.0.0.1 - - [14/Oct/2012 12:57:02] "POST /payments/stripe/ HTTP/1.0" 404 -
INFO:werkzeug:127.0.0.1 - - [14/Oct/2012 12:57:02] "POST /payments/stripe/ HTTP/1.0" 404 -
INFO:werkzeug:127.0.0.1 - - [14/Oct/2012 12:57:03] "POST /payments/stripe/ HTTP/1.0" 404 -
INFO:werkzeug:127.0.0.1 - - [14/Oct/2012 12:57:04] "POST /payments/stripe/ HTTP/1.0" 404 -
INFO:werkzeug:127.0.0.1 - - [14/Oct/2012 12:57:04] "POST /payments/stripe/ HTTP/1.0" 404 -
INFO:werkzeug:127.0.0.1 - - [14/Oct/2012 12:57:05] "POST /payments/stripe/ HTTP/1.0" 404 -
INFO:werkzeug:127.0.0.1 - - [14/Oct/2012 12:59:00] "POST /facebook/subscription HTTP/1.0" 404 -
INFO:werkzeug:127.0.0.1 - - [14/Oct/2012 12:59:56] "POST /facebook/subscription HTTP/1.0" 404 -
{
"id" : "bengali_cheat_sheet",
"name" : "Bengali Cheat Sheet",
"metadata" : {
"sourceName" : "Wikitravel Bengali Phrasebook",
"sourceUrl" : "http://wikitravel.org/en/Bengali_phrasebook"
},
"aliases": [
"bangla", "bangla phrases", "bengali phrases", "english to bengali",
"basic bengali phrases", "basic bengali"