Skip to content

Instantly share code, notes, and snippets.

@iq220
iq220 / gist:c16b17b7e1c3c318b954bb789f458cfb
Created November 13, 2020 08:45 — forked from alexandernl/gist:8090a79a7af4197c5f5571e8cc8c05b8
Convert daily New York Times frontpage to jpg
<?php
// set the output-file
$outputfile = "/var/www/nyt/nyt.jpg";
// set path to todays NYT frontpage
$pathToPdf="https://static01.nyt.com/images/".date('Y')."/".date('m')."/".date('d')."/nytfrontpage/scan.pdf";
// check if there is any today
$file_headers = @get_headers($pathToPdf);

Keybase proof

I hereby claim:

  • I am iq220 on github.
  • I am iq220 (https://keybase.io/iq220) on keybase.
  • I have a public key whose fingerprint is CCEA B620 7984 B2A6 EC85 14CB FC1F 2325 2904 61ED

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am iq220 on github.
  • I am iq220 (https://keybase.io/iq220) on keybase.
  • I have a public key ASBeZK3V_iDrs8BTo32V3NlpkDv-RN5fmrLYhDHJrXzpRQo

To claim this, I am signing this object: