Build: swiftc calendar_dump.swift -o calendar_dump
Run: ./calendar_dump (accept Calendar and Reminders access)
Output: events.json in the current directory.
Includes today's events + incomplete reminders due by end of day.
| import chromium from '@sparticuz/chromium'; | |
| import puppeteer from 'puppeteer-core'; | |
| import { S3Client, PutObjectCommand } from '@aws-sdk/client-s3'; | |
| const s3 = new S3Client({ region: process.env.AWS_REGION || 'us-east-1' }); | |
| export const handler = async (event) => { | |
| let browser = null; | |
| try { |