Skip to content

Instantly share code, notes, and snippets.

Sandeep Raju Prabhakar sandeepraju

Block or report user

Report or block sandeepraju

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
sandeepraju / tabbycatswag.json
Last active Jul 17, 2019 — forked from oldwestaction/tabbycatswag.json
hack for the tabby cat chrome extension to unlock all the accessories -
View tabbycatswag.json
sandeepraju /
Last active Nov 25, 2017
A simple script to log the TTFB (Time to First Byte) of a given web link
# file:
# note: to deploy this, add the following line to your crontab
# * 10-17 * * 1-5 /path/to/ "" /path/to/log-file.log
# the above cronjob runs every minute from 10AM to 5PM only on weekdays
function ttfb() {
curl -o /dev/null \
-H 'Cache-Control: no-cache' \
-H 'Accept-Encoding: gzip, deflate, sdch' \
sandeepraju /
Created Jul 20, 2016
curl command to check the time to first byte
# file:
# curl command to check the time to first byte
# ** usage **
# 1. ./ ""
# 2. seq 10 | xargs -Iz ./ ""
curl -o /dev/null \
-H 'Cache-Control: no-cache' \
-s \
sandeepraju /
Created Mar 28, 2016
Fix sources list of c9
cat /etc/apt/sources.list.d/c9.list > ~/c9.list
sudo rm /etc/apt/sources.list.d/c9.list
sudo ln -s /home/ubuntu/c9.list /etc/apt/sources.list.d/c9.list
sandeepraju /
Created Mar 12, 2016
Transparent Git Encryption

Transparent Git Encryption

This document has been modified from its [original format][m1], which was written by Ning Shang ( It has been updated and reformatted into a [Markdown][m2] document by [Woody Gilk][m3] and [republished][m4].


When working with a remote git repository which is hosted on a third-party storage server, data confidentiality sometimes becomes

sandeepraju /
Created Feb 27, 2016
No nonsense image preview in opencv while using ipython
import cv2
# load the image
img = cv2.imread("Lenna.png")
# start a new window thread (doesn't block your ipython
# prompt since this is on a different thread)
sandeepraju /
Last active Oct 1, 2019
Download the latest bin of chromium for linux
# source:
sandeepraju /
Last active Feb 1, 2016
getting more work done.
import subprocess
import math
import time
from datetime import datetime, timedelta
def pomodoro(target, duration):
counter = 0
start =
end = start + timedelta(minutes=duration)
notification_times = (0, 60*5, 60*10, 60*15, 60*20)
View gist:e433b91d16867b48bfd6
$ ssh -A vm
$ git config --global url."".insteadOf ""
$ cat ~/.gitconfig
[url ""]
	insteadOf =
$ go get && echo Success!
View pointers.go
// pointer dereference - differences
package main
import "fmt"
type User struct {
name string
email string
You can’t perform that action at this time.