Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am vasuman on github.
  • I am varav (https://keybase.io/varav) on keybase.
  • I have a public key ASCFXirkBn_difN10Dghw8TgCoT1mdY8HZBaJvns5f4Wqwo

To claim this, I am signing this object:

@vasuman
vasuman / sonicwall.py
Created July 14, 2014 17:49
Sonicwall auto-login
#!/usr/bin/env python2
# Dependencies:
# * Requests
# Simply change stuff and run the script
import time
import re
from hashlib import md5
@vasuman
vasuman / minigreen.py
Created April 28, 2014 11:42
Forge git commit
from datetime import *
import os
import sys
[os.system("git commit --allow-empty --date='%s' -am haha" % (date.today() - timedelta(x)).strftime("%DT%R")) for x in range(int(sys.argv[1]))]
@vasuman
vasuman / ent.js
Last active December 17, 2015 11:59
Augmented Chaining
//The all augmentations must use this as the basic object
function baseChainObject() { };
baseChainObject.prototype.chainExecute = function (methodName, args) {
for(var i = this.__proto__; i[methodName]; i = i.__proto__) {
//Call with context
i[methodName].apply(this, args);
}
};
//Augments the prevLink with nextLink