Skip to content

Instantly share code, notes, and snippets.

View al3xtjames's full-sized avatar

Alex James al3xtjames

View GitHub Profile

Keybase proof

I hereby claim:

  • I am al3xtjames on github.
  • I am alextjames (https://keybase.io/alextjames) on keybase.
  • I have a public key whose fingerprint is 596A 2627 9F82 5657 0296 530B 3A2A C7C0 12D6 5316

To claim this, I am signing this object:

@al3xtjames
al3xtjames / xserve_lspci.txt
Last active July 30, 2017 21:36
Xserve3,1 devices
00:00.0 Host bridge: Intel Corporation 5520 I/O Hub to ESI Port (rev 22)
00:01.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 1 (rev 22)
00:03.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 3 (rev 22)
00:07.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 7 (rev 22)
00:0d.0 Host bridge: Intel Corporation Device 343a (rev 22)
00:0d.1 Host bridge: Intel Corporation Device 343b (rev 22)
00:0d.2 Host bridge: Intel Corporation Device 343c (rev 22)
00:0d.3 Host bridge: Intel Corporation Device 343d (rev 22)
00:0d.4 Host bridge: Intel Corporation 7500/5520/5500/X58 Physical Layer Port 0 (rev 22)
00:0d.5 Host bridge: Intel Corporation 7500/5520/5500 Physical Layer Port 1 (rev 22)
@al3xtjames
al3xtjames / AppleRAIDCardFirmware.arcupdate.extracted.txt
Last active August 3, 2017 02:23
Apple RAID Card (Early 2009) stuff
_AppleRAIDCardFirmware.arcupdate.extracted ❯❯❯ tree
.
├── 18
├── 18261A5
├── 183D84F
├── 183D896
├── 183D896.gz
├── 197E7D7
├── 5A30
├── _18.extracted
diff --git a/VoodooPS2Trackpad/VoodooPS2SynapticsTouchPad.cpp b/VoodooPS2Trackpad/VoodooPS2SynapticsTouchPad.cpp
index 7e667da..8e5f535 100644
--- a/VoodooPS2Trackpad/VoodooPS2SynapticsTouchPad.cpp
+++ b/VoodooPS2Trackpad/VoodooPS2SynapticsTouchPad.cpp
@@ -1432,6 +1432,23 @@ void ApplePS2SynapticsTouchPad::dispatchEventsWithPacket(UInt8* packet, UInt32 p
yraw = yraw * xupmm / yupmm;
int z = packet[2];
int f = z>z_finger ? w>=4 ? 1 : w+2 : 0; // number of fingers
+
+ // theracermaster: When DynamicEWMode is set, enable EW mode for 3/4 finger gestures
@al3xtjames
al3xtjames / xps_9560_ifr.txt
Last active April 2, 2024 10:35
Dell XPS 15 9560 (1.2.5) NVRAM edits
# Set Intel(R) Speed Shift Technology to Enabled
setup_var 0x4BC 0x1
# Set CFG Lock to Disabled
setup_var 0x4ED 0x0
# Set Above 4GB MMIO BIOS assignment to Enabled
# setup_var 0x79A 0x1
# Set EHCI Hand-off to Disabled
# setup_var 0x2 0x0
# Set XHCI Hand-off to Disabled
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
DefinitionBlock ("", "SSDT", 1, "APPLE ", "Debug", 0x00001000)
{
/*
* Many OEM ACPI implementations have a ADBG function which is used for
* debug logging. In almost all cases, this function calls MDBG, which is
* supposed to be defined in a ACPI debug SSDT (but is usually missing).
* This should make ADBG functional.
*/
Method (MDBG, 1, NotSerialized)
{
--- 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;