Skip to content

Instantly share code, notes, and snippets.

View al3xtjames's full-sized avatar

Alex James al3xtjames

View GitHub Profile
#!/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.
@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

###Intel 7 Series/C210 Chipset Family:

Stock:

Intel 7 Series/C210 Chipset Family
├── USB 2.0 Enhanced Host Controller #1 (EHC1)
│   └── Internal Hub (PR01)
│       ├── Port 1 (PRT1)
│       ├── Port 2 (PRT2)
│ ├── Port 3 (PRT3)
@al3xtjames
al3xtjames / AppleSmBios.h
Created April 20, 2016 00:58
Apple-specific SMBIOS definitions
/** @file
This program and the accompanying materials are licensed and made available
under the terms and conditions of the BSD License that accompanies this
distribution. The full text of the license may be found at
http://opensource.org/licenses/bsd-license.php.
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
**/
@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
@al3xtjames
al3xtjames / xhc.md
Last active July 15, 2016 20:08
Haswell XHC Port Enable/Disable

Haswell DSDT excerpt:

Scope (_SB.PCI0.XHC.RHUB.HS01)
{
    Method (_UPC, 0, Serialized)  // _UPC: USB Port Capabilities
    {
        If (!PRTE (_ADR))
        {
            Return (UPCN) /* \_SB_.PCI0.XHC_.RHUB.UPCN */

}

@al3xtjames
al3xtjames / fstab.angler
Last active February 6, 2017 04:31
franco Kernel fstab for Nexus 6P (angler) with forceencrypt/verity enabled
# Android fstab file.
#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags>
# The filesystem that contains the filesystem checker binary (typically /system) cannot
# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK
/dev/block/platform/soc.0/f9824900.sdhci/by-name/system /system ext4 ro,barrier=1,inode_readahead_blks=8 wait,verify=/dev/block/platform/soc.0/f9824900.sdhci/by-name/metadata
/dev/block/platform/soc.0/f9824900.sdhci/by-name/vendor /vendor ext4 ro,barrier=1,inode_readahead_blks=8 wait,verify=/dev/block/platform/soc.0/f9824900.sdhci/by-name/metadata
/dev/block/platform/soc.0/f9824900.sdhci/by-name/userdata /data ext4 noatime,nosuid,nodev,barrier=1,data=ordered,nomblk_io_submit,noauto_da_alloc,discard,errors=panic,inode_readahead_blks=8 wait,check,forcefdeorfbe=/dev/
@al3xtjames
al3xtjames / marlin-o-build.prop
Created March 21, 2017 22:56
Pixel XL (marlin) Android O DP1
# begin build properties
# autogenerated by buildinfo.sh
ro.build.id=OPP1.170223.012
ro.build.display.id=OPP1.170223.012
ro.build.version.incremental=3793265
ro.build.version.sdk=25
ro.build.version.preview_sdk=1
ro.build.version.codename=O
ro.build.version.all_codenames=O
@al3xtjames
al3xtjames / fedora-25-dv7-4087cl.md
Last active May 24, 2017 18:24
Fedora 25 on HP Pavilion dv7 4087cl

Fedora 25 on HP Pavilion dv7 4087cl

Hardware specifications

  • CPU: Intel Core i5-430M @ 2.27 GHz (2 cores / 4 threads)
  • IGPU: Intel HD Graphics (Ironlake)
  • dGPU: AMD Radeon HD 5470M 512MB
  • WiFi: Intel Centrino Wireless-N 1000 (replaced with Intel Wireless-AC 7260)
  • Screen: 17.3" 1600x900 LCD

Post-installation tweaks

<?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>Ansi 0 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.15294118225574493</real>