This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import sys | |
import tempfile | |
import subprocess | |
import re | |
import uuid | |
import pprint | |
#import lldb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# joevt Jul 16, 2024 | |
alias icns2icns=/Volumes/Work/Programming/XcodeProjects/Icons/osxiconutils/joevt-osxiconutils/DerivedData/osxiconutils/Build/Products/Debug/icns2icns | |
alias icns2image=/Volumes/Work/Programming/XcodeProjects/Icons/osxiconutils/joevt-osxiconutils/DerivedData/osxiconutils/Build/Products/Debug/icns2image | |
alias image2icns=/Volumes/Work/Programming/XcodeProjects/Icons/osxiconutils/joevt-osxiconutils/DerivedData/osxiconutils/Build/Products/Debug/image2icns | |
patmatch () { | |
# substitute for [[ =~ ]] for Mac OS X 10.4 | |
perl -0777 -ne '<>; exit !( $_ =~ /'"$1"'/ )' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Get Partition Info from all disks | |
# | |
# Written by joevt updated March 16, 2024 | |
# Patches marked "rgh" July, 2010, to dump information beyond the | |
# four bios partitions | |
# | |
# sudo ./dumpvols.sh > dumpvols_result.txt 2>&1 | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# by joevt Jan 7/2021 | |
dodump=1 | |
if [[ "$1" == "-s" ]]; then | |
dodump=0 | |
shift | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# joevt Jun 12, 2024 | |
#10.3 Panther to 10.13 High Sierra | |
kextload=kextload | |
# Later macOS versions | |
command -v kextutil > /dev/null 2>&1 && kextload=kextutil | |
getkextidentifier () { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/perl | |
# by joevt Nov 18, 2021 | |
use 5.010; | |
use strict; | |
#use warnings; | |
use Data::Dumper qw(Dumper); | |
use JSON::PP; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# by joevt May 10, 2023 | |
directblesscmd="/Volumes/Work/Programming/XcodeProjects/bless/bless-204.40.27 joevt/DerivedData/bless/Build/Products/Debug/bless" | |
usedirectbless=0 | |
if [[ -d /System/Library/PrivateFrameworks/APFS.framework/Versions/A ]]; then | |
if [[ ! -f "$directblesscmd" ]]; then | |
echo "# Download and build bless from https://github.com/joevt/bless , then update the path of directbless defined in DiskUtil.sh" | |
else | |
usedirectbless=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# joevt Jun 13, 2023 | |
# https://forums.macrumors.com/threads/documentation-on-all-parameters-for-nvram.2239034/post-28518123 | |
gfxutilrepository="/Volumes/Work/Programming/EFIProjects/gfxutil/joevt-gfxutil" | |
for gfxutilcmd in \ | |
~/Downloads/gfxutil/gfxutil \ | |
~/Downloads/gfxutil \ | |
"$gfxutilrepository/build/Release/gfxutil" \ | |
"$gfxutilrepository/build/Debug/gfxutil" \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/zsh | |
# ThunderboltUtil.sh v1.7 | |
# by joevt Dec 5, 2024 | |
#========================================================================================= | |
# | |
# | |
# Thunderbolt DROM Notes: | |
# | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# by joevt Feb 6, 2024 | |
# Jan 22, 2023 - Updated to work in Mac OS X 10.4. | |
# Jan 30, 2023 - Fixed the method options. | |
# Apr 7, 2023 - Fixed parse of unknown prog-if and move temp files to separate tmp directory. | |
# Feb 6, 2024 - Fix column alignment. | |
#=================== | |
if [[ $EUID -ne 0 ]]; then |
NewerOlder