Skip to content

Instantly share code, notes, and snippets.

Avatar
wheeee!

Kittywhiskers Van Gogh kittywhiskers

wheeee!
View GitHub Profile
@kittywhiskers
kittywhiskers / entitlements.xml
Created Feb 4, 2021
Entitlements needed for the GNU Debugger on macOS
View entitlements.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.cs.allow-jit</key>
<true/>
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
<true/>
<key>com.apple.security.cs.allow-dyld-environment-variables</key>
@kittywhiskers
kittywhiskers / appleOSStoGithub.sh
Last active Oct 14, 2020
Convert tarballs from opensource.apple.com to Git Repositories
View appleOSStoGithub.sh
#!/bin/bash
export TARGET_URL="https://opensource.apple.com/"
export TARGET_REPO="https://github.com/apple"
export TARGET_EXTENSION=".tar.gz"
export WORKING_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
export COMMIT_AUTHOR="repogen"
export USE_THREADS=8
# why are we doing this?
@kittywhiskers
kittywhiskers / AMDAdobePatch.sh
Created Jun 14, 2020
Tested on Catalina 10.15.4
View AMDAdobePatch.sh
#!/usr/bin/env bash
cpuname=$(sysctl -n machdep.cpu.brand_string)
# Patch Lightroom Classic first
sudo perl -i -pe 's|\x90\x90\x90\x90\x56\xE8\x3A\x00|\x90\x90\x90\x90\x56\xE8\x1A\x00|sg' /Applications/Adobe\ Lightroom\ Classic/Adobe\ Lightroom\ Classic.app/Contents/Frameworks/CameraRaw.lrtoolkit/CameraRaw
sudo perl -i -pe 's|\x90\x90\x90\x90\x56\xE8\x5A\x00|\x90\x90\x90\x90\x56\xE8\x3A\x00|sg' /Applications/Adobe\ Lightroom\ Classic/Adobe\ Lightroom\ Classic.app/Contents/Frameworks/CameraRaw.lrtoolkit/CameraRaw
# Patch MMXCore and FastCore instances in all other applications
find /Applications/Adobe* -type f -name "MMXCore" -print0 | sudo xargs -0 -I "{}" perl -i -pe 's|\x90\x90\x90\x90\x56\xE8\x5A\x00|\x90\x90\x90\x90\x56\xE8\x3A\x00|sg' "{}"