Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View davad's full-sized avatar

David Landry davad

View GitHub Profile
#!/bin/bash
# setup ferret and headless chrome
go get -u github.com/MontFerret/ferret
docker pull alpeware/chrome-headless-trunk
docker run -d -p=0.0.0.0:9222:9222 --name=chrome-headless -v /tmp/chromedata/:/data alpeware/chrome-headless-trunk
# grab fql file and setup results directory
wget https://raw.githubusercontent.com/MontFerret/ferret/master/examples/pagination.fql
mkdir -p pagination-results/$(hostname)
// Create the XHR object.
function createCORSRequest(method, url) {
var xhr = new XMLHttpRequest();
if ("withCredentials" in xhr) {
// XHR for Chrome/Firefox/Opera/Safari.
xhr.open(method, url, true);
} else if (typeof XDomainRequest != "undefined") {
// XDomainRequest for IE.
xhr = new XDomainRequest();
xhr.open(method, url);
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6cPwkpAH8zWn4onois8yu+qROiMuKe3f8Oc5Ht4MJ4umhjbIm7bO/oHjiNyOwgpGMDW/EH5+D/yrbsdlHtT7cqPQaolHKVkxnnzclwPQTzwCJa9AIO/jipPbxPzsYq6W9CFo2GUrXU5UnpMzJNhK0xUqMqFpk/vg7j19DPisxcMBkYgCnihYZcoUOZLC645yaKRDZkagW9ddGUudvKvPaE4oUfbQW9Yf56zoEvBNDbp5iaZITIXJozIQU/KXqgaj3n4pKhiuW1AcATeMtmobCBPuokwAMiKAbuA8ejp1V8n8oT7Z0TEb+kHQdBQWAZl0E6bdHZrfpqfnCN04OpOF5 davad@davad-desktop

Keybase proof

I hereby claim:

  • I am davad on github.
  • I am davad (https://keybase.io/davad) on keybase.
  • I have a public key whose fingerprint is E827 63AA CCF9 4508 DA95 F398 77BC E777 80A9 6B2B

To claim this, I am signing this object: