Skip to content

Instantly share code, notes, and snippets.

@marceldarvas
marceldarvas / backblaze-bzserv-memory-leak.md
Created April 22, 2026 22:56
Backblaze bzserv memory leak on macOS — diagnosis, remediation, and a daily launchd workaround

Backblaze bzserv Memory Leak — Runbook (macOS)

A workaround and diagnosis guide for a memory leak in Backblaze Personal Backup's bzserv process that quietly fills macOS swap until the system runs out of application memory.

Symptoms

  • Activity Monitor shows Backblaze using tens of GB of memory.
  • sysctl vm.swapusage reports swap climbing into the 20–60 GB range over a few
@joshdholtz
joshdholtz / ATinySampleApp.swift
Last active February 12, 2025 13:48
Super basic SwiftUI app (70 lines of code) with paywall using RevenueCat
import SwiftUI
import RevenueCat
struct Constants {
static let apiKey = "<your_api_key>" // Will look like: appl_bunchofotherstuffhere
static let entitlementName = "<your_entitlement_name>" // I use something like "pro"
}
@main
struct ATinySampleApp: App {
@chockenberry
chockenberry / finder_icons.sh
Last active February 10, 2024 19:05
A simple shell script to turn the Finders desktop icons on and off
#!/bin/sh
defaults read com.apple.finder CreateDesktop > /dev/null 2>&1
enabled=$?
if [ "$1" = "off" ]; then
if [ $enabled -eq 1 ]; then
defaults write com.apple.finder CreateDesktop false
osascript -e 'tell application "Finder" to quit'
open -a Finder