Skip to content

Instantly share code, notes, and snippets.

View zacjones93's full-sized avatar
๐Ÿ‹๏ธโ€โ™‚๏ธ

Zac Jones zacjones93

๐Ÿ‹๏ธโ€โ™‚๏ธ
View GitHub Profile
{
"type": "excalidraw",
"version": 2,
"source": "generated",
"elements": [
{
"id": "e0",
"type": "rectangle",
"x": 64,
"y": 70,
@zacjones93
zacjones93 / cloudflare-warp-certificate-fix.md
Last active January 21, 2026 21:43
Fixing SSL Certificate Issues with Cloudflare WARP on WSL

Fixing SSL Certificate Issues with Cloudflare WARP on WSL

Problem

When using Cloudflare WARP on WSL, you may encounter SSL certificate errors when downloading files from Microsoft domains:

curl: (60) SSL certificate problem: unable to get local issuer certificate
@zacjones93
zacjones93 / competition-og-image-plan.md
Created December 4, 2025 22:58
Competition Page Dynamic OG Image - Implementation Plan

Competition Page Dynamic OG Image

Issue ID: thewodapp-0fa
Status: Closed
Priority: P2

Overview

Add dynamic Open Graph images for competition pages that display competition-specific branding, dates, and registration status.

@zacjones93
zacjones93 / flat-discount-coupons-architecture.md
Created October 8, 2025 22:17
Flat Discount Coupons Implementation Plan

Flat Discount Coupons - System Architecture Documentation

Overview

This document provides a comprehensive overview of the pricing and coupon system that will be modified to support flat-rate (fixed amount) discount coupons alongside the existing percentage-based discounts.

Current System Architecture

High-Level Data Flow

// Name: Deduplicate CSV Email Lists
// Description: Finds emails in second CSV that are NOT in first CSV
// Author: zacjones93
import "@johnlindquist/kit"
import { parse } from "csv-parse/sync"
import { stringify } from "csv-stringify/sync"
// Get the first CSV file
const csv1Files = await drop({
// Name: er-prepare-module-titles-and-code
import "@johnlindquist/kit"
import { readdir, readFile, stat } from "node:fs/promises";
let dir
// dir = "/Users/zacjones/Documents/01.Projects/Epic-React-v2/repos/react-fundamentals/exercises"
if (!dir) dir = await getSelectedDir()
if (!dir) dir = await drop("Select a Epic React v2 exercise directory")
// Name: er-prepare-module-titles-and-code
import "@johnlindquist/kit"
import { readdir, readFile, stat } from "node:fs/promises";
let dir
// dir = "/Users/zacjones/Documents/01.Projects/Epic-React-v2/repos/react-fundamentals/exercises"
if (!dir) dir = await getSelectedDir()
if (!dir) dir = await drop("Select a Epic React v2 exercise directory")
// Author: Zac Jones
// Keyword: sw
import "@johnlindquist/kit"
import { titleCase, sentenceCase, paramCase, camelCase } from "text-case"
let options = {
"[t]itle": titleCase,
"[s]entence": sentenceCase,
// Name: rails set lesson tag
// Author: Zac Jones
// Keyword: rt
import "@johnlindquist/kit"
const tagName = await arg("Enter tag name: ")
const token = await env("EGGHEAD_AUTH_TOKEN")
let lessonUrl = await getActiveTab()
// Menu: egghead Admin Login As User
// Author: Ian Jones
// Cache: true
// Keyword: admin
import _ from "lodash"
let eggheadUserToken = await env("EGGHEAD_AUTH_TOKEN");
const eggheadAuthHeaders = {
Authorization: `Bearer ${eggheadUserToken}`,