Skip to content

Instantly share code, notes, and snippets.

View jaredh159's full-sized avatar

Jared Henderson jaredh159

View GitHub Profile
@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
@jaredh159
jaredh159 / screenflow.md
Last active November 18, 2024 15:55
screenflow tutorial youtube video creation techniques, tips, lessons
  • doing VNC/screenshare connections to mac mini and recording from my mac works pretty good (though, iirc i think i don't get the mouse click stuff inside screenflow, so i can't do any special effects with clicks or increasing mouse pointer size
  • i took one video at a custom screen size of 1600 x 900, that worked ok, though the fullsize resolution of that monitor is the correct ratio for 1080p, so that's also fine.
  • the attached image i think is what i used at one point to size a dual arrangement of the mac mini over screenshare with a simulator, like in this video: https://youtu.be/nSgDq8uEFTk -- though the exact sizing of the mac mini vnc i don't recall, and should try to to document at some point
  • (UPDATE) 1344x1008 seems sorta close?
  • remember to change the setting to "show notifications when sharing screen" if that's important for the vid you're making
  • remember before complicated setup of "walkthrough-ish" video, to delete all devices registered to mac mini, to avoid "already assigned to anoth
@jaredh159
jaredh159 / github.adoc
Last active September 7, 2024 15:46
include test

from github