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": "ct.googleapis.com/testtube/",
"maximum_merge_delay": 86400,
"operated_by": [
0
]
View gist:b43e95375d3a739c6c6cd8b4c49d48fc
### Keybase proof
I hereby claim:
* I am vivekagr on github.
* I am vivekagr (https://keybase.io/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:
View vim-on-heroku.sh
#!/usr/bin/env bash
curl https://s3.amazonaws.com/heroku-jvm-buildpack-vi/vim-7.3.tar.gz --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 http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match *://www.amazon.in/*/dp/*
// @match *://www.amazon.in/dp/*
// @match *://www.amazon.in/gp/product*
// @grant none
@vivekagr
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
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: f.ghibellini@gmail.com --
-- @originalRepository: https://github.com/fghibellini/nginx-http-accept-lang--
-- @modifiedBy: marian.hello@mapilary.com --
-- @gist: https://gist.github.com/mauron85/47ed1075262d9e020fe2 --
-- @license: MIT --
-- @requires: --
-- @description: --
-- returns language with greatest quality --
@vivekagr
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
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,
login_page_url='http://10.254.254.116/0/up/'):
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)

General

⌘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.

Editing

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.