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
# download the latest ‘Install macOS’ application to this Mac’s /Applications folder. | |
softwareupdate --fetch-full-installer | |
# download a specific macOS insatller version | |
softwareupdate --fetch-full-installer --full-installer-version 10.14.6 |
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
Mac OS Launch paths | |
~/Library/LaunchAgents | |
User Agents, Currently logged in user | |
/Library/LaunchAgents | |
Global Agents, Currently logged in user | |
/Library/LaunchDaemons | |
Global Daemons, root or the user specified with the key UserName |
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
Make a MacOS .iso from an installer | |
from https://www.geekrar.com/create-macos-catalina-iso-file/ | |
Catalina example | |
Create a DMG Disk Image | |
hdiutil create -o /tmp/Catalina -size 8500m -volname Catalina -layout SPUD -fs HFS+J | |
Mount it to your macOS | |
hdiutil attach /tmp/Catalina.dmg -noverify -mountpoint /Volumes/Catalina |
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
Installer activation: | |
The password is the CRC-32 hash of the username | |
i.e. | |
user | |
0x8D93D649 |
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
brew install gcc curl dfu-util gdb-multiarch git python python-pip | |
# install gcc-arm-none-eabi from | |
https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm/downloads | |
mkdir -p /usr/local && cd /usr/local | |
tar xjf gcc-arm-none-eabi-8-2019-q3-update-mac.tar.bz2 | |
PATH=$PATH:/usr/local/gcc-arm-none-eabi-8-2019-q3-update/bin | |
git clone https://github.com/jsnyder/stm32loader |
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
# Hit Cmd+Get in the Mac App Store | |
14, Sonoma, https://apps.apple.com/us/app/macos-sonoma/id6450717509 | |
13, Ventura, https://apps.apple.com/us/app/macos-ventura/id1638787999 | |
12, Monteray, https://apps.apple.com/us/app/macos-monterey/id1576738294 | |
11, Big Sur, https://apps.apple.com/us/app/macos-big-sur/id1526878132?mt=12 | |
10.15, Catalina, https://apps.apple.com/us/app/macos-catalina/id1466841314?mt=12 | |
10.14, Mojave, https://itunes.apple.com/us/app/macos-mojave/id1398502828?mt=12 | |
10.13, High Sierra, https://itunes.apple.com/us/app/macos-high-sierra/id1246284741?mt=12 | |
10.12, Sierra, https://itunes.apple.com/us/app/macos-sierra/id1127487414?mt=12 | |
10.11, El Capitan, https://itunes.apple.com/app/os-x-el-capitan/id1147835434?mt=12 |
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
LENOVO | |
F1 BIOS Setup | |
F12 Boot menu | |
HP | |
F1 | |
F2 Diagnostics | |
F9 Boot Menu | |
F10 BIOS Setup | |
F11 System Recovery |
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
#human readble size | |
tree -h > fsstruct.txt | |
#specify path | |
tree -h /path/ > fsstruct.txt | |
#du | |
sudo du -h /path/ 2>/dev/null |
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
Mac boot options | |
Hold keys at startup. | |
Startup Manager: Option (⌥) | |
Set boot source as default: Get to Startup manager then hold Control while selecting the disk | |
Boot from CD/DVD/USB: C | |
Target Disk Mode: T | |
Check for Option ROM firmware: Option-Shift-Command-Period | |
Safe Mode: Shift (⇧) |
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 | |
# Disable failed GPU on Macbook Pro (2011) | |
sudo nvram boot-args="-v" | |
sudo nvram fa4ce28d-b62f-4c99-9cc3-6815686e30f9:gpu-power-prefs=%01%00%00%00 | |
exit 0 |
NewerOlder