Skip to content

Instantly share code, notes, and snippets.

View al3xtjames's full-sized avatar

Alex James al3xtjames

View GitHub Profile
diff --git a/../NullCPUPowerManagement-r11 2/Info.plist b/./Info.plist
index 77edcb2..e386f34 100644
--- a/../NullCPUPowerManagement-r11 2/Info.plist
+++ b/./Info.plist
@@ -6,14 +6,14 @@
<string>English</string>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
- <key>CFBundleName</key>
- <string>${PRODUCT_NAME}</string>
# lspci -nnnvvv
00:1f.3 Audio device [0403]: Intel Corporation CM238 HD Audio Controller [8086:a171] (rev 31) (prog-if 80)
Subsystem: Dell Device [1028:07be]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 64
Interrupt: pin B routed to IRQ 17
Region 0: Memory at 7f91028000 (64-bit, non-prefetchable)
Region 4: Memory at 7f91000000 (64-bit, non-prefetchable)
Capabilities: [50] Power Management version 3
--- misc/strings.c.orig
+++ misc/strings.c
@@ -335,7 +335,11 @@ void *cookie)
* If the ofile is not an object file then process it without reguard
* to sections.
*/
- if(ofile->object_addr == NULL || ofile->member_type == OFILE_LLVM_BITCODE){
+ if(ofile->object_addr == NULL
+#ifdef LTO_SUPPORT
+ || ofile->member_type == OFILE_LLVM_BITCODE
--- otool/main.c.orig
+++ otool/main.c
@@ -767,14 +767,17 @@ uint32_t narch_flags,
enum bool all_archs,
enum bool version)
{
- char *objdump;
+ char objdump[MAXPATHLEN];
struct stat stat_buf;
uint32_t i;
little_endian
requires 0 "50 53 56 00" ; # "PSV\0"
ascii 4 "Signature"
set version [uint32 "Version"]
set flags [uint32 "Flags"]
set key1 [hex 16 "Key 1"]
set key2 [hex 16 "Key 2"]
set signature [hex 20 "Signature"]
set hash [hex 32 "Image Hash"]
set image_size [uint64 "Image Size"]
@al3xtjames
al3xtjames / MB Specs.md
Last active November 13, 2020 22:38
HW specifications of some motherboards

Motherboard Hardware Specifications

Hardware specifications of various motherboards.

Gigabyte

Intel Z77 'Panther Point' Chipset:

  • GA-Z77X-D3H (rev 1.0, rev 1.1, rev 1.2)
    • Audio: VIA VT2021 Codec
  • Ethernet: Qualcomm Atheros AR8151 (rev 1.0) / AR8161 (rev 1.1, rev 1.2) GbE
From 0e8718ee00902ebcc5910ed953b45d67ed665cc5 Mon Sep 17 00:00:00 2001
From: Alex James <theracermaster@gmail.com>
Date: Sun, 14 Mar 2021 20:12:15 -0500
Subject: [PATCH] init: Fix shell prompts on Termux
Backport of https://github.com/sorin-ionescu/prezto/pull/1561
---
init.zsh | 11 +++++++++++
1 file changed, 11 insertions(+)
@al3xtjames
al3xtjames / intel_gpu.md
Last active April 24, 2021 16:35
Intel HD Graphics device/framebuffer information

Ivy Bridge

Devices

Device ID Model Name
8086:0152 Ivy Bridge GT1 Intel HD Graphics 2500
8086:0162 Ivy Bridge GT2 Intel HD Graphics 4000
8086:0166 Ivy Bridge Mobile GT2 Intel HD Graphics 4000
8086:016A Ivy Bridge GT2 Intel HD Graphics P4000
From 4d4919ba08fcf95e4d6e727f369737ac513b3540 Mon Sep 17 00:00:00 2001
From: Alex James <theracermaster@gmail.com>
Date: Sun, 11 Jul 2021 21:26:50 -0500
Subject: [PATCH] macOS build: add script to generate app bundle
---
packaging/macos/build_app_bundle.sh | 72 +++++++++++++++++++++++++++++
1 file changed, 72 insertions(+)
create mode 100755 packaging/macos/build_app_bundle.sh
#!/bin/bash
#
# Simple Main Logic Board (MLB) Serial Generator Script by TheRacerMaster
# Based off the work of Hanger1, AGuyWhoIsBored & Alien:X
# NOTE: This is a simple script that doesn't do any checking of other SMBIOS values. It needs valid SMBIOS data which includes the following:
# - Valid SmUUID value in Clover config.plist under SMBIOS (generated using uuidgen)
# - ROM value set to UseMacAddr0 in Clover config.plist (uses MAC address of your first NIC as ROM value)
# - Properly formatted serial number (doesn't have to be a real one, just formatted properly) in Clover config.plist under SMBIOS
# - Don't use a generic serial number (such as Clover's default)! It needs to be at least semi-unique.
# - Try using a generated serial number that isn't real (but formatted correctly) from Clover Configurator, Chameleon Wizard, etc.