Amazon links (No affiliate links!)
| montage null: ~/Pictures/iPhoto\ Library/Thumbnails/2013*/*/*/*/IMG_*_face*.jpg null: -gravity center ~/Desktop/2013_faces.png |
| /* | |
| Usage: | |
| When generating a page: | |
| var abTest = new AbTest('your-test-slug'); | |
| if (abTest.variation == 0) | |
| $('#thediv').addClass('red'); | |
| else if (abTest.variation == 1) |
| (function(){ | |
| //get jQuery | |
| if (window.jQuery === undefined) { | |
| var done = false; | |
| var script = document.createElement("script"); | |
| script.src = "http:////ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"; | |
| script.onload = script.onreadystatechange = function(){ | |
| if (!done && (!this.readyState || this.readyState == "loaded" || this.readyState == "complete")) { | |
| done = true; |
These notes come straight from Jennifer's presentation; slides at https://docs.google.com/file/d/0B2HGtAJEbG8PdzVPdHcwekI2V2M/edit
- NSA covers 75% of internet traffic; not all is collected or sifted
- Big issues with suveillance are not the NSA but leak investigations, subpoenas, accidental disclosure and chilling effects on sources
| #!/usr/bin/env python | |
| # Quick and dirty demonstration of CVE-2014-0160 by | |
| # Jared Stafford (jspenguin@jspenguin.org) | |
| # Modified so that it finds cookies | |
| import sys | |
| import struct | |
| import socket | |
| import time | |
| import select |
| cd ~/ | |
| # Add QGIS repo | |
| sudo add-apt-repository -s "deb http://qgis.org/debian trusty main" | |
| # Add TileMill repo | |
| sudo add-apt-repository ppa:developmentseed/mapbox | |
| # Update/upgrade | |
| sudo apt-get update && sudo apt-get upgrade |
| # This is a shell function to quickly grab the data for a given Landsat 8 tile ID from Google's servers | |
| # For example: | |
| # l8get LC81690352014169LGN00 | |
| # The echo at the end is to remind myself of the syntax for extracting bands 8, 4, 3, and 2. (Pansharp, Red, Green, Blue) | |
| # On OSX this would go into your ~/.bash_profile file. | |
| # Requires gsutil from https://developers.google.com/storage/docs/gsutil_install | |
| # Most useful in conjunction with USGS' Earth Explorer: http://earthexplorer.usgs.gov/ |
This example shows basic usage of mdbtools to extract CSV/SQL from Microsoft databases, but also involves a fairly convoluted Bash loop. For a simpler example, go here: Using mdbtools to extract CSV data from the FAA Wildlife Strike Database
Use mdbtools: https://github.com/brianb/mdbtools
If you're on a Mac, you can install mdbtools via homebrew:
brew install mdbtools
Following on Chris Whong's excellent writeup of how to make calls directly to NYC's Geosupport client and this first attempt at generalizing it, here's a way that let me geocode about 10,000 addresses a second on Ubuntu using Node FFI.
Note: this assumes Ubuntu - other Linux is probably fine but may need adjustments.
First, install the basics:
# Update, install Node and unzip (if needed)