Skip to content

Instantly share code, notes, and snippets.

@jedsundwall
jedsundwall / gist:4331606
Created December 18, 2012 20:23
This is a URL that will generate a feed of all content under the U.S. govt work license on Flickr. It returns (100, at most) the most recent content each time you call it. Enter your own Flickr API key in the URL to get it to work. I'd love to know if there's a way to get this feed without using an API key.
http://api.flickr.com/services/rest/?method=flickr.photos.search&license=8&format=feed-atom_10&api_key=[yourAPIkey]
@jedsundwall
jedsundwall / gist:5288660
Created April 1, 2013 23:30
This is the language used to describe the API in Captura Group's original formal proposal to develop GSA's social media registry (http://registry.usa.gov). The final requirements did change, but this high level description of the APIs was sufficient to ensure that APIs were part of the final product.

The social media outlet registration system will operate as a database that can receive and publish information through three desktop browser‐based interfaces that are powered by three corresponding APIs. The following describes core functionality, but final requirements will determine the precise functionality.

Interfaces

  • A submission form where anyone with a verifiable government email address (.gov, .mil, .si.edu, etc) can enter information about official government social media outlets. Information gathered will include the name of the outlet (e.g. Facebook, Twitter, YouTube, etc), the user name corresponding to the official outlet, and other descriptive information that may include tags, zip codes, categories, sponsoring agencies and more.
  • A verification form to allow anyone to authenticate an ostensibly official government social media outlet by entering the URL of that outlet into an input field or crafting a URL.
  • A javascript‐based widget that will output lists of social media outlets based
@jedsundwall
jedsundwall / measured-voice-terms-of-service.md
Last active December 18, 2015 18:29
This gist contains Measured Voice's government-friendly terms of service, which you can see at http://measuredvoice.com/terms. Measured Voice owns the copyright to these terms, but you are free to copy them for your own use under a the Creative Commons Attribution-ShareAlike 3.0 license (http://creativecommons.org/licenses/by-sa/3.0/). We want t…

Measured Voice Terms of Service

Amended on 25 January, 2013

1. Your Acceptance of Terms

1.1 Your use of Measured Voice and the Measured Voice web site (collectively referred to as the “Service”), is subject to the terms of a legal agreement (“Terms”) between you and Captura Group Inc., DBA Measured Voice (“Measured Voice”). The following Terms of Services ("TOS") explains the agreement and the terms of that agreement.

1.2 In order to use the Service, you must first agree to the Terms. You may not use the Service if you do not accept the Terms. You can accept the Terms by (a) actually using the Service, or (b) clicking a box where such box is made available to you. If you do not agree to any of the following Terms, please do not use the Service. You should print or otherwise save a copy of these TOS for your records.

@jedsundwall
jedsundwall / usagov-taxonomy.json
Created August 21, 2013 20:46
Taxonomy used by USA.gov to categorize U.S. government information.
[{"tag_id":"agriculture","tag_text":"agriculture"},{"tag_id":"airtravel","tag_text":"air travel"},{"tag_id":"arts","tag_text":"arts"},{"tag_id":"banking","tag_text":"banking"},{"tag_id":"benefits","tag_text":"benefits"},{"tag_id":"betterbusinessbureaus","tag_text":"better business bureaus"},{"tag_id":"biology","tag_text":"biology"},{"tag_id":"business","tag_text":"business"},{"tag_id":"businessdevelopment","tag_text":"business development"},{"tag_id":"career","tag_text":"career"},{"tag_id":"cars","tag_text":"cars"},{"tag_id":"challenges","tag_text":"challenges"},{"tag_id":"charities","tag_text":"charities"},{"tag_id":"childcare","tag_text":"child care"},{"tag_id":"children","tag_text":"children"},{"tag_id":"citizenship","tag_text":"citizenship"},{"tag_id":"college","tag_text":"college"},{"tag_id":"commerce","tag_text":"commerce"},{"tag_id":"community","tag_text":"community"},{"tag_id":"communitydevelopment","tag_text":"community development"},{"tag_id":"complaints","tag_text":"complaints"},{"tag_id":"conserva
@jedsundwall
jedsundwall / Best Of Music You Can Dance To In 2012 — Mix by Joakim Tracklist.md
Last active January 1, 2016 21:09
The track list to an amazing 2 hour mix of music from 2012 (and thereabouts) by Joakim Bouaziz. Formerly hosted on Soundcloud, it was taken down, likely due to copyright infringement. Tragic. If you have a copy of this mix, please email me: jedidiah at gmail.

Best Of Music You Can Dance To In 2012

Mix by Joakim Bouaziz

Tracklist

  • Jai Paul – Jasmine
  • Surahn – Take Your Time
  • Tanner Ross – Straight To Mexico
  • Kindness – House
  • Zombie Zombie – The Wisdom of Stones
<markdown>
Post content
</markdown>
@jedsundwall
jedsundwall / mkdirs.sh
Created February 8, 2016 18:23
If you have a "urls.txt" file with a list of directory paths (one per row), this script will go through it and create directories for you. Just put it and the urls.txt into the directory where you'd like to create the paths, navigate their in the terminal and run "sh mkdirs.sh".
while read p; do
mkdir -p $p
done <urls.txt
@jedsundwall
jedsundwall / gist:7b5ea0a33cc3ca0b9764f7090a59858a
Last active October 29, 2019 14:14
Setting up a Public AWS SNS Topic

How to create a publicly-accessible SNS topic that sends messages when objects are added to a public Amazon S3 bucket.

1. Create something within AWS that triggers notifications.

In this case, that's an S3 bucket that is continually updated by the addition of new sensor data. For the purposes of this tutorial, we’ll use s3://noaa-nexrad-level2 – one of our NEXRAD on AWS buckets – as an example.

2. Create an SNS topic and appropriate policy.

The SNS topic should be in the same region as the bucket. It will need to have a policy that allows our S3 bucket to publish to it, and anyone to subscribe to it using Lambda or SQS.

@jedsundwall
jedsundwall / gfs_and_hrrr_on_aws.md
Last active April 16, 2019 19:59
NOAA GFS and HRRR Model data on AWS
{
"Version": "2012-10-17",
"Id": "BUCKET_NAME-pds-policy",
"Statement": [
{
"Effect": "Allow",
"Principal": "*",
"Action": [
"s3:List*",
"s3:Get*"