Skip to content

Instantly share code, notes, and snippets.

View dphiffer's full-sized avatar

Dan Phiffer dphiffer

View GitHub Profile

Hello, Troy dads!

Please join us for a dad circle March 11 around 8:30pm. Thanks Andrew for hosting in February, next time we'll go back to Christian's yard in Lansingburgh, (snip). Let us know if you can't make March 11th and we can figure out another night. Also, if you're interested in hosting the April edition, let me know!

Nothing too formal, but hoping to get together and talk about our woes and glories at our varied stages of parenting and maintaining the human relationships that go along with it.

If you can't make it, don't want to make it, or need to be late (after bedtime), that's totally fine. No pressure whatsoever, but each dad has their own perspective and we all have different age kiddos, so more perspectives the better.

We don't have a strict format, but we do some sharing and updating that is done without imbibing, and then breaking into a more casual hangout. While we would appreciate just hanging with y'all in any format, we are also hopeful to actually make this more of a DIY therapeut

@dphiffer
dphiffer / README.md
Last active October 31, 2022 19:41
Social Network contact data

Social Network contact data

I downloaded my account data archive from Twitter, Facebook, Instagram, LinkedIn, Mastodon, and Flickr. The files below should give you a sense for what kind of contact details get included in each export. Basically I'm wondering to what degree you can look at a list of contacts and use it to keep in touch outside of that service.

If you see a note that says "We can make this file beautiful and searchable ..." that is something that GitHub added because the CSV files are not technically valid.

@dphiffer
dphiffer / localities.csv
Last active May 5, 2022 21:56
Top 500 most popular locality names in the US (source SQL at the bottom)
209 Washington
185 Union
180 Jackson
138 Liberty
128 Franklin
126 Jefferson
122 Lincoln
93 Richland
93 Monroe
90 Harrison
@dphiffer
dphiffer / config.yml
Last active February 9, 2022 15:51
Revue export script
api_keys:
your_list: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
@dphiffer
dphiffer / email.md
Created January 25, 2022 14:35
Re: We’re Hiring at D— - The Next Frontier in Computing

Hi J—,

Thanks for taking an interest in me. I have a young daughter who's turning 3 in a couple weeks. Your project threatens her future on a warming planet. This is not abstract or theoretical to me, receiving this email is equivalent to getting recruited by a fossil fuel company.

If I thought there were some way I could talk you out of what you're doing I would try, but I have seen the discussions online and I know it's impossible to reason people out of a gold rush mentality. Please take me off your mailing list and please really take a minute to think about the impact of your work.

Dan

On Jan 24, 2022, at 1:07 PM, J— <[snip]> wrote:

@dphiffer
dphiffer / txt2pdf.js
Created July 28, 2021 18:21
Basic Text → PDF converter
const puppeteer = require('puppeteer');
const fs = require('fs');
if (process.argv.length < 3) {
console.log('Usage: node txt2pdf.js [file]');
process.exit(1);
}
const input = process.argv[2];
const output = `${input}.pdf`;
#!/bin/bash
# Checks for updates to https://am-i-eligible.covid19vaccine.health.ny.gov/
# If a change is found, it emails a list of addresses and tweets about the update.
#
# Adapted from: https://gist.github.com/dphiffer/678a5e06330f6f33dfc4ed9d0bfe9edb
# Twitter bot: https://twitter.com/nysvaccine
# Edit/print this flyer: https://twitter.com/nysvaccine
#
# This version expects `t` to be installed (gem install t), which adds Ruby as a
@dphiffer
dphiffer / vaccine-check.sh
Last active July 25, 2021 05:32
A script that monitors vaccine appointment availability at New York State-run providers.
#!/bin/bash
# see also: https://kvz.io/bash-best-practices.html
set -o errexit
set -o pipefail
set -o nounset
# A script to monitor updates to this web page:
# https://am-i-eligible.covid19vaccine.health.ny.gov/
#
@dphiffer
dphiffer / facebook_recruiter.md
Created May 13, 2020 17:18
Re: Engineering Opportunity @ Facebook

Hi F—,

Thank you for contacting me. I know there are lots of engineers who would be really happy to work at Facebook.

I would like to explain briefly why I don't count myself among them, in the hopes that this might send a signal that Facebook's reckless business practices do incur costs that can be hard to fully account for.

OMG cookies 😱

On March 6, 2020 Jerome Paulos tweeted a screenshot to @themarkup informing us that our website had a cookie on it. This is bad because we've tried hard avoid using any tracking, and as of today themarkup.org does not serve any cookies.

Where'd the cookie come from?

As my colleague Simon Fondrie-Teitler responded:

Oh, thanks for catching this! I'm guessing those are Stripe-related cookies. If you go to the donate page, enter a number, and click "donate" the stripe javascript does load a couple cookies. See https://themarkup.org/donations/ for more info.