Skip to content

Instantly share code, notes, and snippets.

View Gcenx's full-sized avatar
💭
I may be slow to respond.

Dean M Greer Gcenx

💭
I may be slow to respond.
  • New York
View GitHub Profile
@Gcenx
Gcenx / tcc-reset.py
Last active March 9, 2024 06:43 — forked from haircut/tcc-reset.py
Completely reset TCC services database in macOS
#!/usr/bin/python3
"""
Completely reset TCC services database in macOS
Note: Both the system and individual users have TCC databases; run the script as both
a user and as root to completely reset TCC decisions at all levels.
2018-08-15: Resetting the 'Location' service fails; unknown cause
2018-08-16: Confirmed the 'All' service does not really reset _all_
services, so individual calls to each service is necessary.
2019-06-04: Still working in 10.15 beta :)
2019-08-16: Added new Catalina services (thanks @frogor)
@Gcenx
Gcenx / install_diablo2_on_mac.md
Created February 1, 2020 14:49 — forked from whipowill/install_diablo2_on_mac.md
Install Diablo II on Mac OSX

It appears that as of October 2019 Wine does not work at all on Mac OSX Catalina. This is due to an inability of the OS to run 32-bit applications. In order for this document to work you'll have to get Wine working, and for that you'll have to downgrade your machine to Mojave and you'll have to manually install Wine via the installer instead of using Homebrew. After you've successfully installed Wine you'll have to symlink the tools so they are available in your Terminal:

sudo ln -s /Applications/Wine\ Stable.app/Contents/Resources/wine/bin/wine /usr/local/bin/wine
sudo ln -s /Applications/Wine\ Stable.app/Contents/Resources/wine/bin/winecfg /usr/local/bin/winecfg
sudo ln -s /Applications/Wine\ Stable.app/Contents/Resources/wine/bin/msiexec /usr/local/bin/msiexec

Install Diablo II on Mac OSX

@Gcenx
Gcenx / readme.md
Created October 31, 2019 18:43 — forked from sv99/readme.md
OSX Regenerate text-based stub file for remove ld: warning: text-based stub file

Regenerate text-based stub files for frameworks

Example ld:warning

ld: warning: text-based stub file /System/Library/Frameworks//CoreFoundation.framework/CoreFoundation.tbd
and library file /System/Library/Frameworks//CoreFoundation.framework/CoreFoundation are out of sync.
Falling back to library file for linking.

Need "stubify" libs with utility tapi from default toolchain.

@Gcenx
Gcenx / enUS_Path of Diablo Install.sh
Created September 13, 2019 15:42 — forked from BaReinhard/enUS_Path of Diablo Install.sh
Simple install and download of Path of Diablo for Mac OS
#!/bin/bash
# Author: Brett Reinhard
# Date: 1/13/2019
# Description:
# Create Folder called 'd2' in your Home directory, aka /Users/profile_name/d2
# Download Windows Game Clients, Class and LOD. Rename the exe files as vanilla.exe and lod.exe respectively
mkdir ~/wine_cellar
locale_found=`defaults read .GlobalPreferences AppleLanguages | grep '"*"' | sed 's/"//g' | sed 's/-//g' | sed 's/ //g'`
/bin/mkdir ~/d2
@Gcenx
Gcenx / phoenicis-winebuild
Created December 30, 2018 16:14
phoenicis-winebuild errors
Last login: Sun Dec 30 11:07:35 on ttys001
Deans-MBP:~ gcenx$ cd /Users/gcenx/Documents/GitHub/phoenicis-winebuild
Deans-MBP:phoenicis-winebuild gcenx$ PYTHONPATH="$PWD" python3 examples/interactive_builder.py
Choices: wine-1.0, wine-1.0-rc1, wine-1.0-rc2, wine-1.0-rc3, wine-1.0-rc4, wine-1.0-rc5, wine-1.0.1, wine-1.1.0, wine-1.1.1, wine-1.1.10, wine-1.1.11, wine-1.1.12, wine-1.1.13, wine-1.1.14, wine-1.1.15, wine-1.1.16, wine-1.1.17, wine-1.1.18, wine-1.1.19, wine-1.1.2, wine-1.1.20, wine-1.1.21, wine-1.1.22, wine-1.1.23, wine-1.1.24, wine-1.1.25, wine-1.1.26, wine-1.1.27, wine-1.1.28, wine-1.1.29, wine-1.1.3, wine-1.1.30, wine-1.1.31, wine-1.1.32, wine-1.1.33, wine-1.1.34, wine-1.1.35, wine-1.1.36, wine-1.1.37, wine-1.1.38, wine-1.1.39, wine-1.1.4, wine-1.1.40, wine-1.1.41, wine-1.1.42, wine-1.1.43, wine-1.1.44, wine-1.1.5, wine-1.1.6, wine-1.1.7, wine-1.1.8, wine-1.1.9, wine-1.2, wine-1.2-rc1, wine-1.2-rc2, wine-1.2-rc3, wine-1.2-rc4, wine-1.2-rc5, wine-1.2-rc6, wine-1.2-rc7, wine-1.2.1, wine-1.2.2, wine-
@Gcenx
Gcenx / alwaysLAA.patch
Created August 25, 2018 03:30 — forked from exolyte/alwaysLAA.patch
wine patch to always use large address aware
diff --git a/dlls/kernel32/heap.c b/dlls/kernel32/heap.c
index e68420a55b..5bb721a217 100644
--- a/dlls/kernel32/heap.c
+++ b/dlls/kernel32/heap.c
@@ -1417,10 +1417,7 @@ VOID WINAPI GlobalMemoryStatus( LPMEMORYSTATUS lpBuffer )
/* page file sizes are not limited (Adobe Illustrator 8 depends on this) */
if (!(nt->FileHeader.Characteristics & IMAGE_FILE_LARGE_ADDRESS_AWARE))
{
- if (lpBuffer->dwTotalPhys > MAXLONG) lpBuffer->dwTotalPhys = MAXLONG;
- if (lpBuffer->dwAvailPhys > MAXLONG) lpBuffer->dwAvailPhys = MAXLONG;
@Gcenx
Gcenx / wsenginebuilder.sh
Created July 4, 2018 14:52 — forked from superzazu/wsenginebuilder.sh
Wineskin Engine Builder v1.0: create Wineskin engines from winehq.org
#!/usr/bin/env bash
# Wineskin Engine Builder v1.0: create Wineskin engines from winehq.org
set -e
if [[ $# -ne 3 ]]; then
echo "usage: wsenginebuilder version branch arch" >&2
echo "example 1: wsenginebuilder 3.11 devel osx64" >&2
echo "example 2: wsenginebuilder 3.0.1 stable osx" >&2
exit 1