Skip to content

Instantly share code, notes, and snippets.

View slowbrewedmacchiato's full-sized avatar

sbm slowbrewedmacchiato

View GitHub Profile
@slowbrewedmacchiato
slowbrewedmacchiato / README.md
Created April 18, 2026 11:49
Reusable coding agent skill and shell helper for switching an iOS Simulator’s system language and locale, rebooting it, and verifying the effective settings for localization QA.

simulator-locale

Small reusable skill and helper script for switching an iOS Simulator to a target system language and region.

It writes the simulator's global AppleLanguages and AppleLocale, reboots the simulator, waits for boot completion, and prints the effective values back for verification.

Files

  • SKILL.md — agent-facing instructions for when and how to use the workflow
  • set-simulator-locale.sh — shell helper that performs the locale switch and reboot
@slowbrewedmacchiato
slowbrewedmacchiato / screenshot-to-post.md
Created April 17, 2026 06:24
End-to-end workflow for turning real app screenshots into polished social-ready composites using Butterkit MCP + ImageMagick
name screenshot-to-post
description End-to-end workflow for turning real app screenshots into polished, posting-ready marketing composites using AXe/XcodeBuildMCP, Butterkit, and ImageMagick.

Screenshot to Post

Turn real app screens into marketing-ready composites for Reddit, Threads, Instagram, or any social platform.

When to Use

@slowbrewedmacchiato
slowbrewedmacchiato / AncientProphecyTabBarsApp.swift
Last active February 10, 2026 01:18
Creating iOS 26 Tab bars with separated option
import SwiftUI
/// The main application entry point for the Ancient Prophecy Tab Bars app.
///
/// This app demonstrates a custom tab bar implementation with an overlay menu system.
/// Specifically the implementation of a separate tab bar option now available in iOS 26.
/// The app automatically exits when the main content view disappears and uses a fixed content size window.
@main
struct AncientProphecyTabBarsApp: App {
var body: some Scene {
@slowbrewedmacchiato
slowbrewedmacchiato / git-dry-merge.sh
Created March 8, 2021 03:53
HowTo: Git Dry Merge
$ git merge --no-commit --no-ff $BRANCH
$ git pull $REMOTE $BRANCH
# uh oh, that wasn't right
$ git reset --hard ORIG_HEAD
# all is right with the world
#see diff between current master and remote branch
$ git diff master origin/master
@slowbrewedmacchiato
slowbrewedmacchiato / Router.swift
Created March 8, 2021 03:51
Uploading a file in SWIFT via POST multipart/form-data blog post (2014)
import Foundation
import Alamofire
public enum Router:URLRequestConvertible {
public static let baseUrlString:String = "http://testapi.example.com"
case Upload(fieldName: String, fileName: String, mimeType: String, fileContents: NSData, boundaryConstant:String);
var method: Alamofire.Method {
switch self {
case Upload: