Skip to content

Instantly share code, notes, and snippets.

View pmarques's full-sized avatar

Patrick Marques pmarques

  • Proofpoint
  • London
View GitHub Profile
@pmarques
pmarques / amazon_bulk _download.js
Created January 20, 2016 13:48
Amazon Cloud Drive multiple files download
/**
* Open Amazon Cloud Drive folder and run this script to download all the files in the folder.
*/
var items = document.getElementsByClassName('item');
var i;
var url
var urls = []
for(i = 0; i < items.length; ++i) {
@pmarques
pmarques / site 24x7 scraper
Created March 24, 2014 18:13
Print in browser console the ordered result of a scan in a table
var DEBUG = false;
// XPath Selector
var $x = function (path) {
var r = document.evaluate(path, document, null, 9, null).singleNodeValue
return !!r ? [r] : [];
};
var values = [];
@pmarques
pmarques / asyncsrv.pl
Created July 15, 2011 09:19
resolve asyncsrv.pl issue, the original example doesn't work!
60c59,69
< zmq.device(zmq.QUEUE, frontend, backend)
---
> while True:
> sockets = dict(poll.poll())
> if frontend in sockets:
> if sockets[frontend] == zmq.POLLIN:
> msg = frontend.recv()
> print 'Server received %s' % (msg)
> backend.send(msg)