Skip to content

Instantly share code, notes, and snippets.

View kwvg's full-sized avatar
wheeee!

Kittywhiskers Van Gogh kwvg

wheeee!
View GitHub Profile
@kwvg
kwvg / AMDAdobePatch.sh
Created June 14, 2020 09:29
Tested on Catalina 10.15.4
#!/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' "{}"
@kwvg
kwvg / appleOSStoGithub.sh
Last active June 23, 2021 14:45
Convert tarballs from opensource.apple.com to Git Repositories
#!/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?
@kwvg
kwvg / entitlements.xml
Created February 4, 2021 15:32
Entitlements needed for the GNU Debugger on macOS
<?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>
@kwvg
kwvg / README.md
Last active November 2, 2024 15:42
Using Clang 11 and Cmake on Ubuntu 18.04

Clang/LLVM 11 on Ubuntu 18.04 LTS

Install the GPG Key for https://apt.llvm.org/

wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -

Add the repo for Clang 11 stable-old for Ubuntu 18.04 Bionic

@kwvg
kwvg / docker-osx-shared-folders.rst
Created August 12, 2021 15:06 — forked from codeinthehole/docker-osx-shared-folders.rst
How to share folders with docker containers on OSX

How to share a folder with a docker container on OSX

Mounting shared folders between OSX and the docker container is tricky due to the intermediate boot2docker VM. You can't use the usual docker -v option as the docker server knows nothing about the OSX filesystem - it can only mount folders from the boot2docker filesystem. Fortunately, you can work around this using SSHFS.

@kwvg
kwvg / wipe.sh
Last active May 29, 2022 17:47
Program complete uninstallation script
#!/usr/bin/env bash
remove() {
entry="$1"
echo -ne "Removing $entry ["
sudo rm -rf "$entry"
if [[ ! -e "$entry" ]]; then
echo -ne "OK"
else
echo -ne "FAILED"

Keybase proof

I hereby claim:

To claim this, I am signing this object: