Skip to content

Instantly share code, notes, and snippets.

View davidmcooper's full-sized avatar

David Cooper davidmcooper

View GitHub Profile

Keybase proof

I hereby claim:

  • I am davidmcooper on github.
  • I am davidmcooper (https://keybase.io/davidmcooper) on keybase.
  • I have a public key whose fingerprint is 273A 75AA 48C2 2F85 AE00 98C7 CC56 790C 249F 6B3C

To claim this, I am signing this object:

Setup OSX 10.9 with a Clean Install

After two years of tinkering my machine is a bit all over. With Mavericks I wanted to start fresh

1. Run Software Update

Make sure everything is up to date.

Software Update

@davidmcooper
davidmcooper / gist:5cd3e30572583b3f8815
Last active August 29, 2015 14:01
Bookmarklet for Adding Sort-By-Date to a Google Search
Create a new bookmark in your browser's book toolbar, but instead of bookmarking a URL, include the following code. This will create a button which, when-clicked, will add the necessary parameters to include sort-by-date functionality to your Google search. This button should only be used after you've already searched for something in Google.
javascript:(function(){location.href=location.href+'&tbs=sbd%3A1%2Ccdr%3A1%2Ccd_min%3A1%2F1%2F1800%2Ccd_max%3A&tbm=';})();
/*jshint strict:false*/
/*global CasperError console phantom require*/
/**
* grab links and push them into xml
*/
var casper = require("casper").create({
});