Skip to content

Instantly share code, notes, and snippets.

View bnski's full-sized avatar
🧑‍🚀

David Bednarski bnski

🧑‍🚀
  • Lehigh Valley, PA
  • 08:42 (UTC -05:00)
View GitHub Profile
@bnski
bnski / index.mjs
Created January 22, 2026 12:48
URL / Route to PDF
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 {
@bnski
bnski / README.md
Created September 25, 2025 14:57
Mac OS Calendars + Reminders to JSON

Calendar + Reminders Export to JSON

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.