Skip to content

Instantly share code, notes, and snippets.

View samvit's full-sized avatar

Samvit Ramadurgam samvit

View GitHub Profile

HearSay

The HearSay P2P File Sharer; a response to The Copyright Alert System, as well as several other internet regulation attempts. The goal of this project is to provide semi-anonymous and confidential file sharing to any community that pleases. Consists of several proofs of concepts such as the formation of ad-hoc mix networks and routing throughout them while maintaining anonymity and semantic security.

Note: Lets just be honest with ourselves. Don't use this to fight an

@samvit
samvit / router.js
Last active August 29, 2015 14:02
Backbone.Router Hack
function initialize_link_click_handler() {
// All navigation that is relative should be passed through the navigate
// method, to be processed by the router. If the link has a `data-bypass`
// attribute, bypass the delegation completely.
$(document).on("click", "a[href]:not([data-bypass])", function(evt) {
if (!evt.metaKey) { // So we dont break Command-click. //TODO: make it work for windows ctrl key also
// Get the absolute anchor href.
var href = { prop: $(this).prop("href"), attr: $(this).attr("href") };
// Get the absolute root.
var root = location.protocol + "//" + location.host + Utils.app_root;
ARCH := $(shell uname -m)
OS := $(shell uname)
ifndef LIBHOME
ifdef MASTERDIR
LIBHOME := $(MASTERDIR)/pkg/$(ARCH)/horn2
else
LIBHOME := $(HOME)/pkg/$(ARCH)/horn2
endif
endif

Keybase proof

I hereby claim:

  • I am samvit on github.
  • I am samvit (https://keybase.io/samvit) on keybase.
  • I have a public key ASDzFl0YzIVAAuT9riEA5RWeLpipBJuPyhi352TfS6s52Qo

To claim this, I am signing this object: