Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am anku94 on github.
  • I am ankushj (https://keybase.io/ankushj) on keybase.
  • I have a public key ASCCKdCYmVTs74RWBHaktBwenqyBgqfgXPUnaL52XOkL_wo

To claim this, I am signing this object:

@anku94
anku94 / discovery.js
Created May 25, 2018 14:54
Libp2p discovery using webrtc-star
const libp2p = require('libp2p')
const TCP = require('libp2p-tcp')
const Mplex = require('libp2p-mplex')
const SECIO = require('libp2p-secio')
const PeerInfo = require('peer-info')
const Railing
@anku94
anku94 / delPopMail.py
Created July 21, 2013 12:34
Deletes all messages on students.iiit.ac.in in a given range
#!/usr/bin/env python
import poplib
import sys
lenArgs = len(sys.argv)
if lenArgs != 5:
print "\n\tDelete all messages from <startMsg> to <endMsg> on Students server\n"
print "\tUsage:./script <username>[without @students.iiit.ac.in] <password> <startMsg> <endMsg>\n"
sys.exit(0)
server = "students.iiit.ac.in"
port = 995