Skip to content

Instantly share code, notes, and snippets.

@YesThatAllen
YesThatAllen / pkgresign.c
Created June 7, 2021 20:04 — forked from markvalence/pkgresign.c
Add RSA signature to OSX packages (pkg)
/*
(c) 2012-2016 Sassafras Software Inc.
Provided "as is" under the terms of the MIT license, no warranty, use at your own risk
*/
/*
to build:
cc pkgresign.c -framework Security -framework CoreFoundation -lxar -o pkgresign
*/
@YesThatAllen
YesThatAllen / MySQL_macOS_Sierra.md
Created June 7, 2024 20:53 — forked from nrollr/MySQL_macOS_Sierra.md
Install MySQL on Sierra using Homebrew

Install MySQL on macOS Sierra

This procedure explains how to install MySQL using Homebrew on macOS Sierra 10.12

Install Homebrew

  • Installing Homebrew is effortless, open Terminal and enter :
    $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • Note: Homebrew will download and install Command Line Tools for Xcode 8.0 as part of the installation process.

Install MySQL

At this time of writing, Homebrew has MySQL version 5.7.15 as default formulae in its main repository :

@YesThatAllen
YesThatAllen / BBEdit-TextWrangler_RegEx_Cheat_Sheet.txt
Created June 15, 2025 17:57 — forked from ccstone/BBEdit-TextWrangler_RegEx_Cheat_Sheet.txt
BBEdit-TextWrangler Regular Expression Cheat-Sheet
————————————————————————————————————————————————————————————————————————————————————————————————————
BBEdit / BBEdit-Lite / TextWrangler Regular Expression Guide Modified: 2018/08/10 01:19
————————————————————————————————————————————————————————————————————————————————————————————————————
NOTES:
The PCRE engine (Perl Compatible Regular Expressions) is what BBEdit and TextWrangler use.
Items I'm unsure of are marked '# PCRE?'. The list while fairly comprehensive is not complete.
@YesThatAllen
YesThatAllen / email.plist
Created June 15, 2025 20:01 — forked from rwilcox/email.plist
Super Simple Email Codeless Language Module for BBEdit
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<!--
BBEdit codeless language module for email (for example, what comes out of Mutt when you use "bbedit -w" as its editor)
Feel free to customize.
By Ryan Wilcox
Requires BBEdit 8.0 or higher. To install, copy here:
@YesThatAllen
YesThatAllen / add_prefix_to_eml_subjects.py
Created October 9, 2025 03:26
For all eml in a folder, append an identifier to the subject line (if it doesn't already exist) and add a subject line if it was missing.
#!/usr/bin/env python3
import os
import sys
def process_eml(file_path, subj_prefix):
try:
with open(file_path, 'r', encoding='utf-8', errors='ignore') as f:
lines = f.readlines()
modified = False
@YesThatAllen
YesThatAllen / pdfexpert_batch_ocr.applescript
Created February 15, 2026 17:58 — forked from nuclearsecrecy/pdfexpert_batch_ocr.applescript
Applescript to batch run OCR on many PDF files using PDF Expert
# Applescript to batch OCR PDFs using PDF Expert.
# By Alex Wellerstein. Last updated December 16, 2024. No copyright asserted -- released for public domain use.
# Absolutely no warranties, guarantees, promises, ANYTHING provided. Use at your own risk.
#
# Will automatically save and close each PDF after OCR completes.
# Assumes PDF Expert is the default program to open PDFs!
# Does not have robust error handling. Held together with duct tape.
# Just a temporary solution until Readdle actually supports batch operations.
# Seems to work on OS 14.6.1, with PDF Expert 3.10.10.
# Has not been extensively tested to see what happens if you try to do other work while it is running; could foul up.