Skip to content

Instantly share code, notes, and snippets.

@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 / 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 / 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 / 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 / pkgresign.c
Created June 7, 2021 20:04 — forked from kurash/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
*/
8A cookie associated with a cross-site resource at <URL> was set without the `SameSite` attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set with `SameSite=None` and `Secure`. You can review cookies in developer tools under Application>Storage>Cookies and see more details at <URL> and <URL>.
config.js.src.js:73 [Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.
b.<computed>.d.<computed> @ config.js.src.js:114
(anonymous) @ config.js.src.js:20
m @ config.js.src.js:20
(anonymous) @ config.js.src.js:125
execCb @ require.js.src.js:1695
check @ require.js.src.js:851
(anonymous) @ require.js.src.js:1138
(anonymous) @ require.js.src.js:113
@YesThatAllen
YesThatAllen / Makefile
Created July 12, 2019 20:02
Mac app notarization from the command line
.PHONY: notarize
SIGNING_CERTIFICATE := $(shell security find-certificate -Z -c "Developer ID Application:" | grep "SHA-1" | awk 'NF { print $$NF }')
TEAM_ID := $(shell security find-certificate -c "Developer ID Application:" | grep "alis" | awk 'NF { print $$NF }' | tr -d \(\)\")
EXPORT_PATH := $(XCS_ARCHIVE)/Submissions
BUNDLE_APP := $(EXPORT_PATH)/NewMacApp.app
BUNDLE_ZIP := $(EXPORT_PATH)/NewMacApp.zip
UPLOAD_INFO_PLIST := $(EXPORT_PATH)/UploadInfo.plist
REQUEST_INFO_PLIST := $(EXPORT_PATH)/RequestInfo.plist
AUDIT_INFO_JSON := $(EXPORT_PATH)/AuditInfo.json

Keybase proof

I hereby claim:

  • I am yesthatallen on github.
  • I am yesthatallen (https://keybase.io/yesthatallen) on keybase.
  • I have a public key ASAx01BNMMhtbA5-V6ySeFpX6rTjX9rpa6G4X6X01D9PZgo

To claim this, I am signing this object:

@YesThatAllen
YesThatAllen / common_functions.rb
Last active July 8, 2018 22:16 — forked from srpomeroy/common_functions.rb
Commonly used functions in RightScale CATs In order to create a URL link to a server, you need to grab what is called the `legacy_id`. This property is currently only available in API 1.6: http://reference.rightscale.com/api1.6/index.html#/1.6/controller/V1_6-Definitions-Instances Check out the `get_server_access_link` definition in the followin…
# Required prolog
name 'LIB - Common functions'
rs_ca_ver 20160622
short_description "Common functions"
package "common/functions"
# Checks if the account supports the selected cloud
define checkCloudSupport($cloud_name, $param_location) do
# Gather up the list of clouds supported in this account.
@YesThatAllen
YesThatAllen / github_issues_to_csv.py
Created May 4, 2018 03:43 — forked from patrickfuller/github_issues_to_csv.py
Export Issues from Github repo to CSV (API v3)
"""
Exports issues from a list of repositories to individual csv files.
Uses basic authentication (Github username + password) to retrieve issues
from a repository that username has access to. Supports Github API v3.
Forked from: unbracketed/export_repo_issues_to_csv.py
"""
import argparse
import csv
from getpass import getpass
import requests