Skip to content

Instantly share code, notes, and snippets.

View jkeefe's full-sized avatar

John Keefe jkeefe

View GitHub Profile
<iframe frameborder="0" scrolling ="no" src="http://project.wnyc.org/ccrb/" width="100%" height="640" id="wnyc-ccrb" ></iframe><script type="text/javascript">document.getElementById("wnyc-ccrb").setAttribute("height","640");</script>
@jkeefe
jkeefe / elex-guide-embed.html
Last active August 29, 2015 14:05
2014 Election Guide Search Embed Code
<iframe frameborder="0" height="260" scrolling="no" src="http://project.wnyc.org/election-guide-2014/search.html" width="100%"></iframe>
@jkeefe
jkeefe / README.md
Last active August 29, 2015 14:06 — forked from mbostock/.block

This example demonstrates loading of CSV data, which is then quantized into a diverging color scale. The values are visualized as colored cells per day. Days are arranged into columns by week, then grouped by month and years. Colors by Cynthia Brewer. Layout inspired by Rick Wicklin and Robert Allison. Dow Jones historical data copyright Yahoo! Finance or independent data provider; fair use for educational purposes.

@jkeefe
jkeefe / un-map-embed.html
Created September 23, 2014 20:41
Traffic around UN Map Embed Code
<iframe src="http://project.wnyc.org/news-maps/traffic-map/index.html?lat=40.7600&lon=-73.9600&zoom=13" height="650" width="100%" scrolling="no" frameborder="0"></iframe>
@jkeefe
jkeefe / bundlefix.txt
Last active August 29, 2015 14:13
Fixing Textmate2 Ruby Bundle in Yosemite (Mac OSX 10.10)
Using the Command-/ function to comment something out in Textmate2, I got the error:
interpreter failed: No such file or directory
After some investigation, I realized that Yosemite is using Ruby 2.0 and the bundle here needed Ruby 1.8.
I use RVM to manage my Ruby virtual enviroments, and already had added a Ruby 1.8 into my collection.
(Look at the RVM docs to see how.) So the shell command:
which ruby
@jkeefe
jkeefe / troubleshooting_cron.md
Last active June 15, 2018 07:33
Troubleshooting Cron on EC2, which required both a permissions and a time zone fix.

2015-01-14 - Troubleshooting Cron on EC2

Today I had trouble getting a cron job to work.

The cron command was:

# run the lunchbot every weekday at 12:30 pm
30 12 * * 1-5 /home/ubuntu/bothouse/lunchbot/cron.sh > /home/ubuntu/bothouse/lunchbot/cron.log

The first problem, I discovered, was that cron.sh didn't have permissions set to be executable by the user (ubuntu).

@jkeefe
jkeefe / snowpiercer.html
Created February 2, 2015 16:08
Snowpiercer map embed code
<iframe frameborder="0" scrolling ="no" src="http://project.wnyc.org/snowpiercer/" width="100%" height="900" ></iframe>
@jkeefe
jkeefe / spark-glitch.md
Created February 3, 2015 03:39
Glitch with Neopixel Matrix and Spark.io Core with a Spark Shield Shield

While marrying the Neopixel Matrix to a spark.io Sheild Shield, I couldn't seem to get the matrix to respond.

Through testing with other Arduinos (worked), I tried it un-married and with the data pin coming from digital pin 2 instead of the hardwired digital pin 6 -- and it worked.

I don't know if I have a bum Shield Shield or if there's something in its hardware that doesn't play well with pin 6. In the end, I physically trimmed the #6 header pin off the matrix and wired pin 2 to pin 6.


Details of the project that lead to this issue are on johnkeefe.net

Verifying GPG Tools using GPG Tools

To be clear, I'm not an expert on security. If your life or livelihood depends on secure communications, please be sure to explore trusted resources published by experts.

From what I understand, one should use this method only if you're running an existing version of GPG Tools that you trust. Here are the steps I took:

  • Went to https://gpgtools.org/ and downloaded the latest version
  • Clicked on the link for the "please download and import our updated key"
  • Got a big screen of scramble, and copied the URL from the browser window
  • In Terminal, I used that URL to import the key:
@jkeefe
jkeefe / christieverse.html
Created May 1, 2015 17:18
Christieverse interactive embed code
<iframe frameborder="0" scrolling ="no" src="http://project.wnyc.org/christieverse/" width="100%" height="600" ></iframe>