Skip to content

Instantly share code, notes, and snippets.

View dphiffer's full-sized avatar

Dan Phiffer dphiffer

View GitHub Profile
@dphiffer
dphiffer / wikidata_mission.csv
Created June 14, 2017 13:50
select * from entity where lat > 37.748212 and lat < 37.7725278668 and lng > -122.431025471 and lng < -122.405240263;
id name instance_of lat lng
Q564339 Central Freeway Q34442 37.77 -122.421
Q4552246 16th Street Mission Station Q55488 37.7648 -122.42
Q4796232 Arroyo Dolores Q618123 37.762638888889 -122.41671111111
Q4943962 Bootie 37.7711 -122.413
Q5116742 Church and 22nd Street Q2175765 37.7549 -122.428
Q5116746 Church and Clipper Q2175765 37.7493 -122.427
Q6056711 Intersection for the Arts Q1007870 37.7658 -122.422
Q7927081 Victoria Theatre, San Francisco Q3469910 37.765 -122.419
Q8033549 Woodward's Gardens 37.768 -122.421
@dphiffer
dphiffer / index.html
Created June 14, 2017 19:17
WOF API Example (with new Refill colors!)
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>WOF API example</title>
<style>
body {
margin: 0;
}
@dphiffer
dphiffer / read_write_offline_mapping.md
Last active June 16, 2017 15:04
Read/write Offline Mapping / 2017 Seoul Biennale of Architecture and Urbanism

refill theme

Facilitated by Dan Phiffer, Read/write Offline Mapping speculates open source mapping practices that don’t require cloud-based services. How can we collect and communicate geographic information without a constant connection to proprietary data centers? How can we navigate the complicated relationship between corporate interests, online maps as utility, and open source projects?

who's on first

In this two-day workshop, participants will be introduced to the existing tools and methods of creating and maintaining open data for open mapping, including POSM (Portable OpenStreetMap) and Who’s On First, and will be engaged in developing their own independent maps.

Maps have become a critical facet of how we interface with the landcape around us. Key to our capabilities to navigate and understand the world are these questions:

@dphiffer
dphiffer / eyeo_cryptoparty.txt
Created July 12, 2017 01:23
Hastily typed notes from the CryptoParty at Eyeo Festival 2017
All credit for this goes to Matt Mitchell
https://twitter.com/geminiimatt
macOS
FileVault: on
Firewall: on
Password managers
Dashlane
OnePassword
LastPass
@dphiffer
dphiffer / rsync_disk_recovery.md
Last active July 21, 2017 09:44
How we dealt with the @eirons disk failure of 2017

How we dealt with the @eirons disk failure of 2017

Context Drive that won't boot

  • Boot Sad Laptop into Single User mode (hold down cmd-S on startup, reference)
  • Make the disk writable: mount -uw /
  • Plug in an external drive
  • Determine which disk the external one is: ls –l /dev/disk* (in this case /dev/disk2s1)
@dphiffer
dphiffer / hosts.txt
Last active September 27, 2017 22:06
/etc/hosts
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
# Comment this out to enable distractions
# Inspired by: http://etc.rheumatictangle.net/2017/09/26/launchd-daemon-to-block-social-media-on-macos/
127.0.0.1 facebook.com twitter.com instagram.com mltshp.com
@dphiffer
dphiffer / org.phiffer.lunchbreak-end.plist
Created October 13, 2017 17:55
distractionland configs
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>org.phiffer.lunchbreak-end</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/disable-distractions</string>
</array>
@dphiffer
dphiffer / mov2gif_zsh_function.sh
Created December 8, 2017 15:42
Converting Quicktime screencapture MOVs into GIFs
function mov2gif() {
name=`basename -s .mov $1`
echo "$1 => $name.gif"
ffmpeg -i "$1" -vf scale=980:-1 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=2 --delay=6 > "$name.gif"
}
@dphiffer
dphiffer / backup-exclude.txt
Created December 12, 2017 18:29
rsync backup
**/Library/Developer
**/Library/Logs
**/Library/Caches
**/Library/Mail
**/Library/com.apple.nsurlsessiond
**/Library/Accounts
**/Library/Address?Book?Plug-Ins
**/Library/Assistant
**/Library/Calendars
**/.cache

#2016
#2017
#adulting
#alltheplaces
#batzen
#bearzen
#beezen

#best-of-wikipedia
#bikes
#bookzen