Skip to content

Instantly share code, notes, and snippets.

Avatar

Ben Keith benlk

View GitHub Profile
View paleo.md

The full Paleoclimatology archive is now just under 200GB. A tar file of the entire Paleoclimatology FTP site weighs in at 121 GB, and when gzipped, the resulting .gz file is about 75 GB. We periodically create these .tar.gz files to be permanently archived on tape media, and as it turns out I created the current version yesterday. It will be in the Paleoclimatology FTP folder until the tape ingest is confirmed, so that would be an easy way to download the entire archive if you wish.

It looks like the address for that zip is ftp://ftp.ncdc.noaa.gov/pub/data/paleo/paleo_climate_qual_r20161214.tar.gz and has an md5 at ftp://ftp.ncdc.noaa.gov/pub/data/paleo/paleo_climate_qual_r20161214.tar.gz.md5

The backups are internal to NOAA/NCEI, maintained by the Archive Branch in Asheville. It is intended to be permanent storage.


context:

View sample.php
<?php
// just paste these functions into your child theme's functions.php
/**
* Increase the minimum to 4
*/
function my_largo_homepage_series_stories_list_minimum( $min ) {
return 4;
}
View pym-shortcode.txt
[pym src="http://blog.apps.npr.org/pym.js/examples/table/child.html"]
View fixing-vagrant-ssh-issues.md

If you've had to re-associate your virtual machine with vagrant, but vagrant ssh now requires a password to connect, this is because the ssh key associated with the box disappeared. You can still get in with the password vagrant (usually), but many workflows will need the automatic connection.

Here's how to regain public/private key authentication to ssh into your vagrant virtual machine:

Run vagrant up, then vagrant ssh-config to find the IdentityFile:

$ vagrant ssh-config
Host default
  HostName 127.0.0.1
View t-xargs.md

The goal is to search for tweets from people I am following in a specific time period:

t followings | xargs -n 1 -I TKTK 't search all "from:TKTK archive OR archives since:2015-06-22 until:2015-06-28"'

Here's my understanding of what I typed:

t followings : generates a list of people I am following on Twitter https://sferik.github.io/t/. Sample output is as follows:

View largo-hoepage-clock.md

Number 17: the homepage as a clock

Parts:

  • post custom meta for scheduling ( begin, end )
  • posts sortable by scheduling ( if begin is not the post publish time )
  • homepage
  • homepage outputs posts in useful format without js
  • homepage outputs posts in useful format on mobile
  • progressive enhancement on large devices: the clock of posts appears, showing now and the post currently active
@benlk
benlk / NASA-public.m3u8
Created Dec 3, 2015
Watching NASA Public Television without Flash
View NASA-public.m3u8
#EXTM3U
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=563000,RESOLUTION=1280x720,CODECS="avc1.77.30, mp4a.40.2"
http://nasatv-lh.akamaihd.net/i/NASA_101@319270/index_400_av-p.m3u8?sd=10&rebase=on
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=432000,RESOLUTION=428x240,CODECS="avc1.640029, mp4a.40.2"
http://nasatv-lh.akamaihd.net/i/NASA_101@319270/index_400_av-b.m3u8?sd=10&rebase=on
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=827000,RESOLUTION=1280x720,CODECS="avc1.77.30, mp4a.40.2"
http://nasatv-lh.akamaihd.net/i/NASA_101@319270/index_700_av-p.m3u8?sd=10&rebase=on
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=732000,RESOLUTION=428x240,CODECS="avc1.640029, mp4a.40.2"
http://nasatv-lh.akamaihd.net/i/NASA_101@319270/index_700_av-b.m3u8?sd=10&rebase=on
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=2128000,RESOLUTION=1280x720,CODECS="avc1.77.30, mp4a.40.2"
View 0-order-of-business.md

Wednesday:

  • shopping (see Google Keep)
  • Make cookies
  • ask Brian how early I can show up tomorrow to do cooking
  • what time is dinner?

Thursday

  • pack car, see Google Keep
View 2015-10-23.html
<div class="pq-pA a-E-Pc Aq" role="log" aria-live="polite">
<hr class="Kc-Nd">
<div class=" Fm Eq Kc-we" data-from="undefined">
<div class="Kc-Oc">
<div class="Kc-Ca Fm">David Ryan joined group chat.</div>
</div>
</div>
<hr class="Kc-Nd">
<div class=" Fm Eq Kc-we" data-from="undefined">
<div class="Kc-Oc">
@benlk
benlk / caches.txt
Last active Sep 15, 2015
A list of things we do to caches
View caches.txt
break
bust
clear
dump
flip
invalidate
kick
purge
trash