Skip to content

Instantly share code, notes, and snippets.

View jaredh159's full-sized avatar

Jared Henderson jaredh159

View GitHub Profile
@jaredh159
jaredh159 / mini.svg
Created January 23, 2026 13:40
test remote svg for asciidork, don't delete
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jaredh159
jaredh159 / english-friend.sql
Created July 2, 2025 17:57
Insert Narrow Path Quotes
INSERT INTO "public"."np_quotes"(
"id",
"lang",
"is_friend",
"author_name",
"quote",
"friend_id",
"document_id",
"created_at",
"updated_at"
@jaredh159
jaredh159 / reset-all-perms.sh
Last active February 17, 2025 15:58
reset all macos permissions for onboarding redo test
sudo tccutil reset All
sudo tccutil reset All WFN83LM943.com.netrivet.gertrude.app
sudo tccutil reset All com.netrivet.gertrude.app
sudo tccutil reset All .com.netrivet.gertrude.app
rm -rf ~/Library/Preferences/*
sudo rm -rf /Library/Preferences/*
sudo rm -rf /Library/Application\ Support/com.apple.TCC
# screen recording
sudo rm -rf ~/Library/Group\ Containers/group.com.apple.replayd
systemextensionsctl reset
@jaredh159
jaredh159 / release.swift
Created February 3, 2025 17:20
send-new-release-marketing-email.md
Task {
let postmark = get(dependency: \.postmark)
let db = get(dependency: \.db)
let admins = try await Admin.query()
.where(.not(.equals(
.subscriptionStatus,
.enum(Admin.SubscriptionStatus.unpaid)
)))
@jaredh159
jaredh159 / links_test.rb
Created December 21, 2024 12:10
asciidork links_test.rb compat as of 12/21/24
@jaredh159
jaredh159 / lulu-fail2.sh
Created December 18, 2024 19:39
another lulu fail
curl --silent -X POST \
--location 'https://api.lulu.com/print-job-cost-calculations/' \
--header 'Authorization: Bearer NOT-REAL' \
--header 'Cache-Control: no-cache' \
--header 'Content-Type: application/json' \
--data '{
"line_items": [
{
"page_count": 32,
"pod_package_id": "0600X0900BWSTDPB060UW444MXX",
@jaredh159
jaredh159 / address.sh
Created December 18, 2024 19:30
failing to replicate lulu address error
curl --silent -X POST \
--location 'https://api.lulu.com/print-job-cost-calculations/' \
--header 'Authorization: Bearer NOT-REAL' \
--header 'Cache-Control: no-cache' \
--header 'Content-Type: application/json' \
--data '{
"line_items": [
{
"page_count": 32,
"pod_package_id": "0600X0900BWSTDPB060UW444MXX",
@jaredh159
jaredh159 / debug-ios.md
Created October 30, 2024 15:45
debugging, dev testing gertrude iOS
  • if you want to debug the filter or controller, delete the app fully first
  • it's slow to work through the filter install when xcode is attached, it's super glitchy and unresponsive. instead, build and launch, and when you get past the launch screen, quit the app on the phone, detaching from Xcode. then work through the permissions, and then reattach in Xcode -> Debug -> Attach to process
  • sometimes "attach to process" can't get list. i just wait, or click some other things, and come back, eventually it shows up
  • i seem to have trouble debugging two processes at once, not sure if this is possible - i.e. attaching to the controller process and the filter process and debugging both...

misc...

  • i thought i could communicate with the filter by sending urls like https://sentinel.com/do/this/thing/please but all i get in the filter is hostname, i even tried spinning up a WKWebView -- no url. i'm not sure which apple api i can call to get a full URL path passed to the filter, but `URLSession.data(for
@jaredh159
jaredh159 / MonitoringClient+Screenshots.swift
Created October 4, 2024 14:31
screencapturekit alternate implementation ripped out
import Cocoa
import Core
import CoreGraphics
import Dependencies
import Foundation
import SystemConfiguration
#if canImport(ScreenCaptureKit)
import ScreenCaptureKit
#endif