Skip to content

Instantly share code, notes, and snippets.

@joselee
joselee / recursive_proto
Last active August 29, 2015 14:19
Recursive proto
var myClass = function(json){
var self = this;
self.myMethod = function(){
console.log("Calling my method")
};
for(var key in json){
if(typeof json[key] === "object"){
self[key] = new myClass(self[key]);
@joselee
joselee / PrivateTorrent.md
Last active March 28, 2016 21:40 — forked from sourcec0de/PrivateTorrent.md
Host your own torrent tracker in ubuntu

Install dependencies

  • sudo apt-get install bittornado ctorrent

Start the bittornado tracker

  • mkdir ~/.bttrack
  • bttrack --port 6969 --dfile ~/.bttrack/dstate --nat_check 0 --scrape_allowed full

Create and seed the torrent file with ctorrent

  • ctorrent -t -u "http://SERVER_IP:6969/announce" -s filename.torrent fileOrFolder
  • ctorrent filename.torrent
@joselee
joselee / keybase.md
Created February 25, 2017 18:38
GitHub verification for Keybase identity

Keybase proof

I hereby claim:

  • I am joselee on github.
  • I am joselee (https://keybase.io/joselee) on keybase.
  • I have a public key whose fingerprint is 70AE 098E B824 E6E7 22BD 7343 FC61 5776 759C 3E54

To claim this, I am signing this object: