Skip to content

Instantly share code, notes, and snippets.

@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 |
@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 / 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 / tco_bypass.js
Created January 8, 2015 06:27
Tweetdeck Web t.co bypass
// ==UserScript==
// @name Tweetdeck T.co bypass
// @namespace http://userscripts.org/users/192333
// @version 1
// @include http*://*twitter.com/*
// @grant GM_deleteValue
// @grant GM_getValue
// @grant GM_setValue
// @grant GM_info
// ==/UserScript==
@iambibhas
iambibhas / Vagrantfile
Last active August 7, 2017 22:10
Ansible playbook for KLP vagrant box
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "dub3"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
@iambibhas
iambibhas / assesment.ipynb
Created December 3, 2014 17:33
Assesment Anomaly
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@iambibhas
iambibhas / photo_backup.sh
Last active October 13, 2022 17:41
Move your images to creation date wise folders
#!/bin/sh
SRC_DIR=$1
DEST_DIR=$2
for _file in `find $SRC_DIR -type f`;
do
DATE=`date -r $_file +%F`
DIR="$DEST_DIR$DATE"
echo "$_file -> $DIR"
@iambibhas
iambibhas / generate_qrcodes.py
Last active August 29, 2015 14:06
I'm using this script to generate QR codes for all the PyCon India 2014 attendees' names and ticket id
import csv
import qrcode
from PIL import Image, ImageFont, ImageDraw
attendees = []
with open('completed_attendees.csv') as userlist:
userreader = csv.reader(userlist, delimiter=',')
for row in userreader:
attendees.append({
@iambibhas
iambibhas / test.md
Created September 10, 2014 06:20
school comparison
         school_name             |               school_name                |     cluster_name      |    cluster_name     |  block_name  |  block_name  |     district
  |     district      

-------------------------------------+------------------------------------------+-----------------------+---------------------+--------------+--------------+------------- ------+------------------- LPUBS EAST EXTENSION | HPUBS NO.5 EXTN RANEBENNUR | RANEBENNUR (URDU) | URBAN URDU | RANEBENNUR | RANEBENNUR | HAVERI
| HAVERI MOORARJI RESI SHALE | MORARJI DESAI RESIDENTIAL SCHOOL | HUNSUR SOUTH | KARIMUDDANA HALLI | HUNSUR | HUNSUR | MYSORE
| MYSORE VES HPS VYALIKAVAL | VAYALIKAVAL EDU SOCIETY HPS VAYALIKAVAL | KADU MALLESHWARA | PALACE GUTTAHALLI | NORTH2 | NORTH2 | BANGALORE U NORTH | BANGALORE U NORTH

@iambibhas
iambibhas / .tmux.conf
Last active October 13, 2016 08:06
My tmux conf
# use UTF8
set -g utf8
set-window-option -g utf8 on
# make tmux display things in 256 colors
set -g default-terminal "screen-256color"
# set scrollback history to 100000 (100k)
set -g history-limit 100000