Skip to content

Instantly share code, notes, and snippets.

Vivek Agarwal vivekagr

Block or report user

Report or block vivekagr

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
View ct_log_basic_list.json
"logs": [
"description": "Google 'Testtube' log",
"key": "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEw8i8S7qiGEs9NXv0ZJFh6uuOmR2Q7dPprzk9XNNGkUXjzqx2SDvRfiwKYwBljfWujozHESVPQyydGaHhkaSz/g==",
"url": "",
"maximum_merge_delay": 86400,
"operated_by": [
View gist:b43e95375d3a739c6c6cd8b4c49d48fc
### Keybase proof
I hereby claim:
* I am vivekagr on github.
* I am vivekagr ( on keybase.
* I have a public key whose fingerprint is 4FA1 AE88 2283 2C82 BA99 3F46 3B29 18BA BEE9 8359
To claim this, I am signing this object:
#!/usr/bin/env bash
curl --output vim.tar.gz
mkdir vim && tar xzvf vim.tar.gz -C vim
export PATH=$PATH:/app/vim/bin
View gist:36b12fec06ab0c4b228e
// ==UserScript==
// @name Amazon Add to Cart
// @namespace
// @version 0.1
// @description try to take over the world!
// @author You
// @match *://*/dp/*
// @match *://*
// @match *://*
// @grant none
vivekagr / test.conf
Created Dec 17, 2015
nginx config to go along with lang.lua
View test.conf
server {
listen 80 default_server;
root /home/ubuntu/test;
index index.html index.htm;
error_log /home/ubuntu/test/error.log;
access_log /home/ubuntu/test/access.log;
location / {
vivekagr / nginx-lang.lua
Last active Dec 17, 2015 — forked from mauron85/nginx-lang.lua
Detect preferred language script for Nginx written in LUA
View nginx-lang.lua
-- HTTP Accept-Language header handler --
-- @originalAuthor: --
-- @originalRepository:
-- @modifiedBy: --
-- @gist: --
-- @license: MIT --
-- @requires: --
-- @description: --
-- returns language with greatest quality --
vivekagr / webpack.config.js
Created Aug 30, 2015
example webpack config
View webpack.config.js
var webpack = require("webpack");
module.exports = {
entry: {
'respondent-connections': './surveyapp/static/js/respondent-connections/app.js'
output: {
path: './surveyapp/static/js/respondent-connections/',
filename: 'build.min.js'
vivekagr / gist:25e5cde71a662e5e39ca
Created Jun 3, 2015
alliance re-connect script
View gist:25e5cde71a662e5e39ca
import requests
class AllianceBroadband(object):
def __init__(self, username, password, login_identification_string,
self.username = username
self.password = password
self.login_identification_string = login_identification_string
self.login_page_url = login_page_url
View gist:5690789

Sublime Text 2 – Useful Shortcuts (Mac OS X)


⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
View gist:5344778

Sublime Text 2 – Useful Shortcuts (PC)

Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.


Ctrl+C copy current line (if no selection)
Ctrl+X cut current line (if no selection)
Ctrl+⇧+K delete line
Ctrl+↩ insert line after
You can’t perform that action at this time.