HackMac ๐Ÿš€

Description ๐Ÿ“

HackMac is a set of Ruby tools specifically designed for managing and customizing Hackintosh configurations. While primarily intended for users with Hackintosh setups, it may also be useful for ordinary Mac users who want to leverage its features for monitoring system performance using gfxmon.

Documentation

Complete API documentation is available at: GitHub.io

Tools ๐Ÿ› ๏ธ

efi - EFI Partition Management ๐Ÿ“

Manage OpenCore EFI partitions including: - Upgrading OpenCore and kernel extensions (kexts) ๐Ÿ”ง - Committing changes to git repositories ๐Ÿ’พ - Mounting/unmounting EFI volumes ๐Ÿ“Œ - Cloning EFI partitions between devices ๐Ÿ”„

usb - Bootable USB Creator ๐Ÿ–ฅ๏ธ

Create bootable USB drives for macOS installation with: - Format USB device with GPT partition scheme ๐Ÿ“Š - Create bootable installer using Appleโ€™s createinstallmedia โšก - Initialize git repository on EFI partition ๐Ÿ“ฆ

gfxmon - GPU Performance Monitor ๐ŸŽฎ

Display real-time performance statistics for your GPU in the terminal including: - Temperature, clock rates, fan rotations ๐ŸŒก๏ธ - Memory usage and power consumption โšก - Color-coded visualizations with ANSI terminal graphics ๐ŸŽจ

gfxmon Screenshot

Installation ๐Ÿ“ฆ

Using RubyGems ๐Ÿ’Ž

bash gem install hackmac

Using Bundler ๐Ÿ“ฆ

Add to your Gemfile: ruby gem 'hackmac'

Configuration โš™๏ธ

First run efi without arguments to display available commands and initialize the default configuration file at: ~/.config/hackmac/hackmac.yml

To use a custom configuration file, set the environment variable: bash export HACKMAC_CONFIG=~/config/hackmac/other.yml

Usage Examples ๐ŸŽฏ

EFI Management ๐Ÿ“

```bash # Mount EFI partition efi mount

Clone EFI partitions

efi clone /dev/disk0s1 /dev/disk1s1

Upgrade OpenCore

efi oc_upgrade

Show kext versions

efi kexts ```

GPU Monitoring ๐ŸŽฎ

```bash # Real-time monitoring with 2-second updates gfxmon -n 2

Monitor specific metric

gfxmon -m โ€œTemperature(C)โ€

Output as JSON for scripting

gfxmon -j ```

USB Creation ๐Ÿ–ฅ๏ธ

bash # Create bootable USB usb /dev/disk2

Download ๐ŸŒ

The homepage of this library is located at: https://github.com/flori/hackmac

Author ๐Ÿ‘จโ€๐Ÿ’ป

Florian Frank

License ๐Ÿ“„

This software is licensed under the MIT license. โœ